Skip to content
Commit d3ac65d2 authored by Leo Stone's avatar Leo Stone Committed by Andrew Morton
Browse files

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/20241216042752.257090-2-leocstone@gmail.com


Signed-off-by: default avatarLeo Stone <leocstone@gmail.com>
Reported-by: default avatar <syzbot+8a3da2f1bbf59227c289@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=8a3da2f1bbf59227c289


Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 60da7445
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment