Created attachment 276125 [details]
My kernel config contains:
My system is using systemd, which sysctls
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e
at the boot time.
Running a SEGFAULT-ing program triggers:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
Full dmesg log attached.
sysctl kernel.core_pattern = /tmp/core.%e.%p.%h.%t
makes the oops go away.
I understand that my kernel was configured incorrectly for use with systemd,
but it should not cause a kernel oops in any case.
A helpful error message would be much better.
Created attachment 288461 [details]
Sent patch as https://lkml.org/lkml/2020/4/15/116
Thanks for the patch and bug report! I provided an alternative patch. Let's review on the thread I replied to, I Cc'd other possible stakeholders.