Commit d3ac65d
mm: huge_memory: handle strsep not finding delimiter
split_huge_pages_write() does not handle the case where strsep finds no
delimiter in the given string and sets the input buffer to NULL, which
allows this reproducer to trigger a protection fault.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Leo Stone <[email protected]>
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=8a3da2f1bbf59227c289
Signed-off-by: Andrew Morton <[email protected]>1 parent 60da744 commit d3ac65d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4169 | 4169 | | |
4170 | 4170 | | |
4171 | 4171 | | |
4172 | | - | |
| 4172 | + | |
4173 | 4173 | | |
4174 | 4174 | | |
4175 | 4175 | | |
| |||
0 commit comments