Bug 4083 - lib/cmdline: avoid page fault in next_arg
Summary: lib/cmdline: avoid page fault in next_arg
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: 5.10.y-15
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: maqiao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-16 14:30 UTC by inspursand
Modified: 2023-02-28 19:38 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 inspursand inspur_group 2023-02-16 14:30:36 UTC
Description of problem:

An argument list like "arg=val arg2 \"" can trigger a page fault if the page pointed by 'args[0xffffffff]' is not mapped and potential memory corruption otherwise (unlikely but possible if the bogus address is mapped and contents happen to match the ascii value of the quote character).

Version-Release number of selected component (if applicable):
5.10

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 maqiao alibaba_cloud_group 2023-02-28 19:38:10 UTC
merged: https://gitee.com/anolis/cloud-kernel/pulls/1196