Re: linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread Al Viro
On Fri, May 15, 2020 at 09:13:57PM +0100, Al Viro wrote: > On Sat, May 16, 2020 at 12:36:28AM +0900, Tetsuo Handa wrote: > > On 2020/05/16 0:18, Tetsuo Handa wrote: [snip] > > A similar bug (racing inode destruction with open() on proc filesystem) was > > fixed as > > commit 6f7c41374b62fd80 ("tom

Re: linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread Eric W. Biederman
Al Viro writes: > On Sat, May 16, 2020 at 12:36:28AM +0900, Tetsuo Handa wrote: >> On 2020/05/16 0:18, Tetsuo Handa wrote: >> > This is >> > >> > if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { >> > char *ep; >> > const pid_t pid = (pid_t) simple_str

Re: linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread Al Viro
On Sat, May 16, 2020 at 12:36:28AM +0900, Tetsuo Handa wrote: > On 2020/05/16 0:18, Tetsuo Handa wrote: > > This is > > > > if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { > > char *ep; > > const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); >

Re: linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread Alexey Gladkov
On Fri, May 15, 2020 at 01:16:59PM -0500, Eric W. Biederman wrote: > Tetsuo Handa writes: > > > This is > > > > if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { > > char *ep; > > const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); > >

Re: linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread Eric W. Biederman
Tetsuo Handa writes: > This is > > if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { > char *ep; > const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); > struct pid_namespace *proc_pidns = > proc_pid_ns(d_inode(dentry)); // <= he

Re: linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread Tetsuo Handa
On 2020/05/16 0:18, Tetsuo Handa wrote: > This is > > if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { > char *ep; > const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); > struct pid_namespace *proc_pidns = > proc_pid_ns(d_inode(

Re: linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread Tetsuo Handa
This is if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { char *ep; const pid_t pid = (pid_t) simple_strtoul(pos + 1, &ep, 10); struct pid_namespace *proc_pidns = proc_pid_ns(d_inode(dentry)); // <= here if (*ep == '/' &

linux-next boot error: general protection fault in tomoyo_get_local_path

2020-05-15 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:bdecf38f Add linux-next specific files for 20200515 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=155a43b210 kernel config: https://syzkaller.appspot.com/x/.config?x=27a5e30c87a59937 dashboard