Message ID | 20200417040202.O_VbU09Pt%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + coredump-fix-null-pointer-dereference-on-coredump.patch added to -mm tree | expand |
--- a/fs/coredump.c~coredump-fix-null-pointer-dereference-on-coredump +++ a/fs/coredump.c @@ -211,6 +211,8 @@ static int format_corename(struct core_n return -ENOMEM; (*argv)[(*argc)++] = 0; ++pat_ptr; + if (!(*pat_ptr)) + return -ENOMEM; } /* Repeat as long as we have more pattern to process and more output