Bug 8876 - nbd: null check for nla_nest_start
Summary: nbd: null check for nla_nest_start
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: block/storage (show other bugs) block/storage
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: zhujun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-24 11:23 UTC by zhujun
Modified: 2024-04-24 13:55 UTC (History)
3 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 11:23:51 UTC
nla_nest_start() may fail and return NULL. Insert a check and set errno
based on other call sites within the same source code.

社区有patch已经解决

nbd: null check for nla_nest_start  

commit 4af837db0fd3679fabc7b7758397090b0c06dced

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

git cherry-pick -s 4af837db0f(with stable-v5.10.214 repo added)
Comment 1 小龙 admin 2024-04-24 11:25:30 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3094
Comment 2 Joseph Qi alibaba_cloud_group 2024-04-24 13:55:04 UTC
(In reply to 小龙 from comment #1)
> The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3094

merged