Re: [PATCH v4] proc_sysctl: fix oops caused by incorrect command parameters.

2021-01-18 Thread Vlastimil Babka
On 1/18/21 2:30 PM, Xiaoming Ni wrote: > The process_sysctl_arg() does not check whether val is empty before > invoking strlen(val). If the command line parameter () is incorrectly > configured and val is empty, oops is triggered. > > For example: > "hung_task_panic=1" is incorrectly written

[PATCH v4] proc_sysctl: fix oops caused by incorrect command parameters.

2021-01-18 Thread Xiaoming Ni
The process_sysctl_arg() does not check whether val is empty before invoking strlen(val). If the command line parameter () is incorrectly configured and val is empty, oops is triggered. For example: "hung_task_panic=1" is incorrectly written as "hung_task_panic", oops is triggered. The call