Bug 7624 - regmap: debugfs: Fix a erroneous check after snprintf()
Summary: regmap: debugfs: Fix a erroneous check after snprintf()
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: maqiao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-24 10:38 UTC by zhujun
Modified: 2023-11-24 10:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhujun cmss_group 2023-11-24 10:38:08 UTC
This error handling looks really strange.
Check if the string has been truncated instead.

Additional info:

社区有patch已经解决
llc: verify mac len before reading mac header

commit 80836b5859b725f9da8cc6ef90d6b5a99553f55a

Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=80836b5859b725f9da8cc6ef90d6b5a99553f55a

git cherry-pick -s 80836b585(with stable-v5.10.201 repo added)
Comment 1 小龙 admin 2023-11-24 10:40:58 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2460