Bug 8874 - hsr: Handle failures in module init
Summary: hsr: Handle failures in module init
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: net (show other bugs) net
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: XuanZhuo
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-24 10:44 UTC by zhujun
Modified: 2024-04-24 11:00 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhujun cmss_group 2024-04-24 10:44:21 UTC
A failure during registration of the netdev notifier was not handled at
all. A failure during netlink initialization did not unregister the netdev
notifier.

Handle failures of netdev notifier registration and netlink initialization.
Both functions should only return negative values on failure and thereby
lead to the hsr module not being loaded.

社区有patch已经解决

clk: Fix clk_core_get NULL dereference

commit f6c6ca618e93542f76093c69740e9ee4d3e4e938

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

git cherry-pick -s f6c6ca618(with stable-v5.10.215 repo added)
Comment 1 小龙 admin 2024-04-24 11:00:54 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3092