Re: fs_context-related oops in mainline

From: Dominik Brodowski
Date: Fri Mar 15 2019 - 07:50:11 EST


On Fri, Mar 15, 2019 at 11:44:45AM +0000, David Howells wrote:
> Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> > [ 0.839322] RIP: 0010:sysfs_init_fs_context+0x82/0xd0
>
> Could you load your kernel into gdb and then do:
>
> i li *sysfs_init_fs_context+0x82

Doesn't seem necessary as per my mail to Al a few seconds ago:
kobj_ns_grab_current(KOBJ_NS_TYPE_NET) returns NULL, so

fc->user_ns = get_user_ns(netns->user_ns);

will try to dereference a null pointer.

Thanks,
Dominik