Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Eric Biggers
Hi Goldwyn,

On Tue, Jan 30, 2018 at 09:52:02PM -0600, Goldwyn Rodrigues wrote:
> 
> 
> On 01/30/2018 04:13 PM, Eric Biggers wrote:
> > On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote:
> >> Hello,
> >>
> >> syzkaller hit the following crash on
> >> 6084b576dca2e898f5c101baef151f7bfdbb606d
> >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
> >> compiler: gcc (GCC) 7.1.1 20170620
> >> .config is attached
> >> Raw console output is attached.
> >>
> >> Unfortunately, I don't have any reproducer for this bug yet.
> >>
> >>
> >> BUG: unable to handle kernel NULL pointer dereference at 002f
> >> IP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> >> IP: free_pipe_info+0x75/0xd0 fs/pipe.c:674
> >> PGD 1e069b067 P4D 1e069b067 PUD 1e0d7f067 PMD 0
> >> Oops:  [#1] SMP
> >> Dumping ftrace buffer:
> >>(ftrace buffer empty)
> >> Modules linked in:
> >> CPU: 1 PID: 11658 Comm: syz-executor4 Not tainted 4.15.0-rc3-next-20171214+
> >> #67
> >> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> >> Google 01/01/2011
> >> RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> >> RIP: 0010:free_pipe_info+0x75/0xd0 fs/pipe.c:674
> >> RSP: 0018:c9e27ba8 EFLAGS: 00010293
> >> RAX: 8801dfa7e500 RBX: 8801dac70200 RCX: 81414817
> >> RDX:  RSI: 8802156b6800 RDI: 8801dac70200
> >> RBP: c9e27bc8 R08: 0001 R09: 
> >> R10:  R11:  R12: 
> >> R13: 8802156b6800 R14: 001f R15: 880213d99820
> >> FS:  7f81f5ada700() GS:88021fd0() 
> >> knlGS:
> >> CS:  0010 DS:  ES:  CR0: 80050033
> >> CR2: 002f CR3: 0001e05cc000 CR4: 001426e0
> >> Call Trace:
> >>  put_pipe_info+0x65/0x80 fs/pipe.c:561
> >>  pipe_release+0xda/0x110 fs/pipe.c:582
> >>  __fput+0x120/0x270 fs/file_table.c:209
> >>  fput+0x15/0x20 fs/file_table.c:243
> >>  task_work_run+0xa3/0xe0 kernel/task_work.c:113
> >>  exit_task_work include/linux/task_work.h:22 [inline]
> >>  do_exit+0x3e6/0x1050 kernel/exit.c:869
> >>  do_group_exit+0x60/0x100 kernel/exit.c:972
> >>  get_signal+0x36c/0xad0 kernel/signal.c:2337
> >>  do_signal+0x23/0x670 arch/x86/kernel/signal.c:809
> >>  exit_to_usermode_loop+0x13c/0x160 arch/x86/entry/common.c:161
> >>  prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
> >>  syscall_return_slowpath+0x1b4/0x1e0 arch/x86/entry/common.c:264
> >>  entry_SYSCALL_64_fastpath+0x94/0x96
> >> RIP: 0033:0x452a39
> >> RSP: 002b:7f81f5ad9ce8 EFLAGS: 0246 ORIG_RAX: 00ca
> >> RAX: fe00 RBX: 007581b8 RCX: 00452a39
> >> RDX:  RSI:  RDI: 007581b8
> >> RBP: 007581b8 R08: 001a R09: 00758190
> >> R10:  R11: 0246 R12: 
> >> R13: 00a6f7ff R14: 7f81f5ada9c0 R15: 000e
> >> Code: 48 8d 14 80 48 8b 83 08 01 00 00 4c 8d 2c d0 4d 8b 75 10 4d 85 f6 74
> >> 17 e8 29 5b ea ff 49 c7 45 10 00 00 00 00 4c 89 ee 48 89 df <41> ff 56 10 
> >> e8
> >> 12 5b ea ff 41 83 c4 01 44 39 a3 d0 00 00 00 77
> >> RIP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline] RSP:
> >> c9e27ba8
> >> RIP: free_pipe_info+0x75/0xd0 fs/pipe.c:674 RSP: c9e27ba8
> >> CR2: 002f
> >> ---[ end trace 7ae396f579301f25 ]---
> > 
> > Invalidating this bug since it hasn't been seen again, and it was reported 
> > while
> > KASAN was accidentally disabled in the syzbot kconfig due to a change to the
> > kconfig menus in linux-next (so this crash was possibly caused by slab
> > corruption elsewhere).
> > 
> 
> This crash looks similar to the ones discussed in
> https://lkml.org/lkml/2017/10/30/780
> 
> If this can be reproduced, please share how.
> 

syzkaller wasn't able to generate a reproducer for this.  If it had it would
have been provided in the report.

Thanks,

- Eric


Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Eric Biggers
Hi Goldwyn,

On Tue, Jan 30, 2018 at 09:52:02PM -0600, Goldwyn Rodrigues wrote:
> 
> 
> On 01/30/2018 04:13 PM, Eric Biggers wrote:
> > On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote:
> >> Hello,
> >>
> >> syzkaller hit the following crash on
> >> 6084b576dca2e898f5c101baef151f7bfdbb606d
> >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
> >> compiler: gcc (GCC) 7.1.1 20170620
> >> .config is attached
> >> Raw console output is attached.
> >>
> >> Unfortunately, I don't have any reproducer for this bug yet.
> >>
> >>
> >> BUG: unable to handle kernel NULL pointer dereference at 002f
> >> IP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> >> IP: free_pipe_info+0x75/0xd0 fs/pipe.c:674
> >> PGD 1e069b067 P4D 1e069b067 PUD 1e0d7f067 PMD 0
> >> Oops:  [#1] SMP
> >> Dumping ftrace buffer:
> >>(ftrace buffer empty)
> >> Modules linked in:
> >> CPU: 1 PID: 11658 Comm: syz-executor4 Not tainted 4.15.0-rc3-next-20171214+
> >> #67
> >> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> >> Google 01/01/2011
> >> RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> >> RIP: 0010:free_pipe_info+0x75/0xd0 fs/pipe.c:674
> >> RSP: 0018:c9e27ba8 EFLAGS: 00010293
> >> RAX: 8801dfa7e500 RBX: 8801dac70200 RCX: 81414817
> >> RDX:  RSI: 8802156b6800 RDI: 8801dac70200
> >> RBP: c9e27bc8 R08: 0001 R09: 
> >> R10:  R11:  R12: 
> >> R13: 8802156b6800 R14: 001f R15: 880213d99820
> >> FS:  7f81f5ada700() GS:88021fd0() 
> >> knlGS:
> >> CS:  0010 DS:  ES:  CR0: 80050033
> >> CR2: 002f CR3: 0001e05cc000 CR4: 001426e0
> >> Call Trace:
> >>  put_pipe_info+0x65/0x80 fs/pipe.c:561
> >>  pipe_release+0xda/0x110 fs/pipe.c:582
> >>  __fput+0x120/0x270 fs/file_table.c:209
> >>  fput+0x15/0x20 fs/file_table.c:243
> >>  task_work_run+0xa3/0xe0 kernel/task_work.c:113
> >>  exit_task_work include/linux/task_work.h:22 [inline]
> >>  do_exit+0x3e6/0x1050 kernel/exit.c:869
> >>  do_group_exit+0x60/0x100 kernel/exit.c:972
> >>  get_signal+0x36c/0xad0 kernel/signal.c:2337
> >>  do_signal+0x23/0x670 arch/x86/kernel/signal.c:809
> >>  exit_to_usermode_loop+0x13c/0x160 arch/x86/entry/common.c:161
> >>  prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
> >>  syscall_return_slowpath+0x1b4/0x1e0 arch/x86/entry/common.c:264
> >>  entry_SYSCALL_64_fastpath+0x94/0x96
> >> RIP: 0033:0x452a39
> >> RSP: 002b:7f81f5ad9ce8 EFLAGS: 0246 ORIG_RAX: 00ca
> >> RAX: fe00 RBX: 007581b8 RCX: 00452a39
> >> RDX:  RSI:  RDI: 007581b8
> >> RBP: 007581b8 R08: 001a R09: 00758190
> >> R10:  R11: 0246 R12: 
> >> R13: 00a6f7ff R14: 7f81f5ada9c0 R15: 000e
> >> Code: 48 8d 14 80 48 8b 83 08 01 00 00 4c 8d 2c d0 4d 8b 75 10 4d 85 f6 74
> >> 17 e8 29 5b ea ff 49 c7 45 10 00 00 00 00 4c 89 ee 48 89 df <41> ff 56 10 
> >> e8
> >> 12 5b ea ff 41 83 c4 01 44 39 a3 d0 00 00 00 77
> >> RIP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline] RSP:
> >> c9e27ba8
> >> RIP: free_pipe_info+0x75/0xd0 fs/pipe.c:674 RSP: c9e27ba8
> >> CR2: 002f
> >> ---[ end trace 7ae396f579301f25 ]---
> > 
> > Invalidating this bug since it hasn't been seen again, and it was reported 
> > while
> > KASAN was accidentally disabled in the syzbot kconfig due to a change to the
> > kconfig menus in linux-next (so this crash was possibly caused by slab
> > corruption elsewhere).
> > 
> 
> This crash looks similar to the ones discussed in
> https://lkml.org/lkml/2017/10/30/780
> 
> If this can be reproduced, please share how.
> 

syzkaller wasn't able to generate a reproducer for this.  If it had it would
have been provided in the report.

Thanks,

- Eric


Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Goldwyn Rodrigues


On 01/30/2018 04:13 PM, Eric Biggers wrote:
> On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote:
>> Hello,
>>
>> syzkaller hit the following crash on
>> 6084b576dca2e898f5c101baef151f7bfdbb606d
>> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
>> compiler: gcc (GCC) 7.1.1 20170620
>> .config is attached
>> Raw console output is attached.
>>
>> Unfortunately, I don't have any reproducer for this bug yet.
>>
>>
>> BUG: unable to handle kernel NULL pointer dereference at 002f
>> IP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
>> IP: free_pipe_info+0x75/0xd0 fs/pipe.c:674
>> PGD 1e069b067 P4D 1e069b067 PUD 1e0d7f067 PMD 0
>> Oops:  [#1] SMP
>> Dumping ftrace buffer:
>>(ftrace buffer empty)
>> Modules linked in:
>> CPU: 1 PID: 11658 Comm: syz-executor4 Not tainted 4.15.0-rc3-next-20171214+
>> #67
>> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
>> Google 01/01/2011
>> RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
>> RIP: 0010:free_pipe_info+0x75/0xd0 fs/pipe.c:674
>> RSP: 0018:c9e27ba8 EFLAGS: 00010293
>> RAX: 8801dfa7e500 RBX: 8801dac70200 RCX: 81414817
>> RDX:  RSI: 8802156b6800 RDI: 8801dac70200
>> RBP: c9e27bc8 R08: 0001 R09: 
>> R10:  R11:  R12: 
>> R13: 8802156b6800 R14: 001f R15: 880213d99820
>> FS:  7f81f5ada700() GS:88021fd0() knlGS:
>> CS:  0010 DS:  ES:  CR0: 80050033
>> CR2: 002f CR3: 0001e05cc000 CR4: 001426e0
>> Call Trace:
>>  put_pipe_info+0x65/0x80 fs/pipe.c:561
>>  pipe_release+0xda/0x110 fs/pipe.c:582
>>  __fput+0x120/0x270 fs/file_table.c:209
>>  fput+0x15/0x20 fs/file_table.c:243
>>  task_work_run+0xa3/0xe0 kernel/task_work.c:113
>>  exit_task_work include/linux/task_work.h:22 [inline]
>>  do_exit+0x3e6/0x1050 kernel/exit.c:869
>>  do_group_exit+0x60/0x100 kernel/exit.c:972
>>  get_signal+0x36c/0xad0 kernel/signal.c:2337
>>  do_signal+0x23/0x670 arch/x86/kernel/signal.c:809
>>  exit_to_usermode_loop+0x13c/0x160 arch/x86/entry/common.c:161
>>  prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
>>  syscall_return_slowpath+0x1b4/0x1e0 arch/x86/entry/common.c:264
>>  entry_SYSCALL_64_fastpath+0x94/0x96
>> RIP: 0033:0x452a39
>> RSP: 002b:7f81f5ad9ce8 EFLAGS: 0246 ORIG_RAX: 00ca
>> RAX: fe00 RBX: 007581b8 RCX: 00452a39
>> RDX:  RSI:  RDI: 007581b8
>> RBP: 007581b8 R08: 001a R09: 00758190
>> R10:  R11: 0246 R12: 
>> R13: 00a6f7ff R14: 7f81f5ada9c0 R15: 000e
>> Code: 48 8d 14 80 48 8b 83 08 01 00 00 4c 8d 2c d0 4d 8b 75 10 4d 85 f6 74
>> 17 e8 29 5b ea ff 49 c7 45 10 00 00 00 00 4c 89 ee 48 89 df <41> ff 56 10 e8
>> 12 5b ea ff 41 83 c4 01 44 39 a3 d0 00 00 00 77
>> RIP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline] RSP:
>> c9e27ba8
>> RIP: free_pipe_info+0x75/0xd0 fs/pipe.c:674 RSP: c9e27ba8
>> CR2: 002f
>> ---[ end trace 7ae396f579301f25 ]---
> 
> Invalidating this bug since it hasn't been seen again, and it was reported 
> while
> KASAN was accidentally disabled in the syzbot kconfig due to a change to the
> kconfig menus in linux-next (so this crash was possibly caused by slab
> corruption elsewhere).
> 

This crash looks similar to the ones discussed in
https://lkml.org/lkml/2017/10/30/780

If this can be reproduced, please share how.


-- 
Goldwyn


Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Goldwyn Rodrigues


On 01/30/2018 04:13 PM, Eric Biggers wrote:
> On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote:
>> Hello,
>>
>> syzkaller hit the following crash on
>> 6084b576dca2e898f5c101baef151f7bfdbb606d
>> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
>> compiler: gcc (GCC) 7.1.1 20170620
>> .config is attached
>> Raw console output is attached.
>>
>> Unfortunately, I don't have any reproducer for this bug yet.
>>
>>
>> BUG: unable to handle kernel NULL pointer dereference at 002f
>> IP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
>> IP: free_pipe_info+0x75/0xd0 fs/pipe.c:674
>> PGD 1e069b067 P4D 1e069b067 PUD 1e0d7f067 PMD 0
>> Oops:  [#1] SMP
>> Dumping ftrace buffer:
>>(ftrace buffer empty)
>> Modules linked in:
>> CPU: 1 PID: 11658 Comm: syz-executor4 Not tainted 4.15.0-rc3-next-20171214+
>> #67
>> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
>> Google 01/01/2011
>> RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
>> RIP: 0010:free_pipe_info+0x75/0xd0 fs/pipe.c:674
>> RSP: 0018:c9e27ba8 EFLAGS: 00010293
>> RAX: 8801dfa7e500 RBX: 8801dac70200 RCX: 81414817
>> RDX:  RSI: 8802156b6800 RDI: 8801dac70200
>> RBP: c9e27bc8 R08: 0001 R09: 
>> R10:  R11:  R12: 
>> R13: 8802156b6800 R14: 001f R15: 880213d99820
>> FS:  7f81f5ada700() GS:88021fd0() knlGS:
>> CS:  0010 DS:  ES:  CR0: 80050033
>> CR2: 002f CR3: 0001e05cc000 CR4: 001426e0
>> Call Trace:
>>  put_pipe_info+0x65/0x80 fs/pipe.c:561
>>  pipe_release+0xda/0x110 fs/pipe.c:582
>>  __fput+0x120/0x270 fs/file_table.c:209
>>  fput+0x15/0x20 fs/file_table.c:243
>>  task_work_run+0xa3/0xe0 kernel/task_work.c:113
>>  exit_task_work include/linux/task_work.h:22 [inline]
>>  do_exit+0x3e6/0x1050 kernel/exit.c:869
>>  do_group_exit+0x60/0x100 kernel/exit.c:972
>>  get_signal+0x36c/0xad0 kernel/signal.c:2337
>>  do_signal+0x23/0x670 arch/x86/kernel/signal.c:809
>>  exit_to_usermode_loop+0x13c/0x160 arch/x86/entry/common.c:161
>>  prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
>>  syscall_return_slowpath+0x1b4/0x1e0 arch/x86/entry/common.c:264
>>  entry_SYSCALL_64_fastpath+0x94/0x96
>> RIP: 0033:0x452a39
>> RSP: 002b:7f81f5ad9ce8 EFLAGS: 0246 ORIG_RAX: 00ca
>> RAX: fe00 RBX: 007581b8 RCX: 00452a39
>> RDX:  RSI:  RDI: 007581b8
>> RBP: 007581b8 R08: 001a R09: 00758190
>> R10:  R11: 0246 R12: 
>> R13: 00a6f7ff R14: 7f81f5ada9c0 R15: 000e
>> Code: 48 8d 14 80 48 8b 83 08 01 00 00 4c 8d 2c d0 4d 8b 75 10 4d 85 f6 74
>> 17 e8 29 5b ea ff 49 c7 45 10 00 00 00 00 4c 89 ee 48 89 df <41> ff 56 10 e8
>> 12 5b ea ff 41 83 c4 01 44 39 a3 d0 00 00 00 77
>> RIP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline] RSP:
>> c9e27ba8
>> RIP: free_pipe_info+0x75/0xd0 fs/pipe.c:674 RSP: c9e27ba8
>> CR2: 002f
>> ---[ end trace 7ae396f579301f25 ]---
> 
> Invalidating this bug since it hasn't been seen again, and it was reported 
> while
> KASAN was accidentally disabled in the syzbot kconfig due to a change to the
> kconfig menus in linux-next (so this crash was possibly caused by slab
> corruption elsewhere).
> 

This crash looks similar to the ones discussed in
https://lkml.org/lkml/2017/10/30/780

If this can be reproduced, please share how.


-- 
Goldwyn


Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Eric Biggers
On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote:
> Hello,
> 
> syzkaller hit the following crash on
> 6084b576dca2e898f5c101baef151f7bfdbb606d
> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
> compiler: gcc (GCC) 7.1.1 20170620
> .config is attached
> Raw console output is attached.
> 
> Unfortunately, I don't have any reproducer for this bug yet.
> 
> 
> BUG: unable to handle kernel NULL pointer dereference at 002f
> IP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> IP: free_pipe_info+0x75/0xd0 fs/pipe.c:674
> PGD 1e069b067 P4D 1e069b067 PUD 1e0d7f067 PMD 0
> Oops:  [#1] SMP
> Dumping ftrace buffer:
>(ftrace buffer empty)
> Modules linked in:
> CPU: 1 PID: 11658 Comm: syz-executor4 Not tainted 4.15.0-rc3-next-20171214+
> #67
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> RIP: 0010:free_pipe_info+0x75/0xd0 fs/pipe.c:674
> RSP: 0018:c9e27ba8 EFLAGS: 00010293
> RAX: 8801dfa7e500 RBX: 8801dac70200 RCX: 81414817
> RDX:  RSI: 8802156b6800 RDI: 8801dac70200
> RBP: c9e27bc8 R08: 0001 R09: 
> R10:  R11:  R12: 
> R13: 8802156b6800 R14: 001f R15: 880213d99820
> FS:  7f81f5ada700() GS:88021fd0() knlGS:
> CS:  0010 DS:  ES:  CR0: 80050033
> CR2: 002f CR3: 0001e05cc000 CR4: 001426e0
> Call Trace:
>  put_pipe_info+0x65/0x80 fs/pipe.c:561
>  pipe_release+0xda/0x110 fs/pipe.c:582
>  __fput+0x120/0x270 fs/file_table.c:209
>  fput+0x15/0x20 fs/file_table.c:243
>  task_work_run+0xa3/0xe0 kernel/task_work.c:113
>  exit_task_work include/linux/task_work.h:22 [inline]
>  do_exit+0x3e6/0x1050 kernel/exit.c:869
>  do_group_exit+0x60/0x100 kernel/exit.c:972
>  get_signal+0x36c/0xad0 kernel/signal.c:2337
>  do_signal+0x23/0x670 arch/x86/kernel/signal.c:809
>  exit_to_usermode_loop+0x13c/0x160 arch/x86/entry/common.c:161
>  prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
>  syscall_return_slowpath+0x1b4/0x1e0 arch/x86/entry/common.c:264
>  entry_SYSCALL_64_fastpath+0x94/0x96
> RIP: 0033:0x452a39
> RSP: 002b:7f81f5ad9ce8 EFLAGS: 0246 ORIG_RAX: 00ca
> RAX: fe00 RBX: 007581b8 RCX: 00452a39
> RDX:  RSI:  RDI: 007581b8
> RBP: 007581b8 R08: 001a R09: 00758190
> R10:  R11: 0246 R12: 
> R13: 00a6f7ff R14: 7f81f5ada9c0 R15: 000e
> Code: 48 8d 14 80 48 8b 83 08 01 00 00 4c 8d 2c d0 4d 8b 75 10 4d 85 f6 74
> 17 e8 29 5b ea ff 49 c7 45 10 00 00 00 00 4c 89 ee 48 89 df <41> ff 56 10 e8
> 12 5b ea ff 41 83 c4 01 44 39 a3 d0 00 00 00 77
> RIP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline] RSP:
> c9e27ba8
> RIP: free_pipe_info+0x75/0xd0 fs/pipe.c:674 RSP: c9e27ba8
> CR2: 002f
> ---[ end trace 7ae396f579301f25 ]---

Invalidating this bug since it hasn't been seen again, and it was reported while
KASAN was accidentally disabled in the syzbot kconfig due to a change to the
kconfig menus in linux-next (so this crash was possibly caused by slab
corruption elsewhere).

#syz invalid


Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Eric Biggers
On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote:
> Hello,
> 
> syzkaller hit the following crash on
> 6084b576dca2e898f5c101baef151f7bfdbb606d
> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
> compiler: gcc (GCC) 7.1.1 20170620
> .config is attached
> Raw console output is attached.
> 
> Unfortunately, I don't have any reproducer for this bug yet.
> 
> 
> BUG: unable to handle kernel NULL pointer dereference at 002f
> IP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> IP: free_pipe_info+0x75/0xd0 fs/pipe.c:674
> PGD 1e069b067 P4D 1e069b067 PUD 1e0d7f067 PMD 0
> Oops:  [#1] SMP
> Dumping ftrace buffer:
>(ftrace buffer empty)
> Modules linked in:
> CPU: 1 PID: 11658 Comm: syz-executor4 Not tainted 4.15.0-rc3-next-20171214+
> #67
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:136 [inline]
> RIP: 0010:free_pipe_info+0x75/0xd0 fs/pipe.c:674
> RSP: 0018:c9e27ba8 EFLAGS: 00010293
> RAX: 8801dfa7e500 RBX: 8801dac70200 RCX: 81414817
> RDX:  RSI: 8802156b6800 RDI: 8801dac70200
> RBP: c9e27bc8 R08: 0001 R09: 
> R10:  R11:  R12: 
> R13: 8802156b6800 R14: 001f R15: 880213d99820
> FS:  7f81f5ada700() GS:88021fd0() knlGS:
> CS:  0010 DS:  ES:  CR0: 80050033
> CR2: 002f CR3: 0001e05cc000 CR4: 001426e0
> Call Trace:
>  put_pipe_info+0x65/0x80 fs/pipe.c:561
>  pipe_release+0xda/0x110 fs/pipe.c:582
>  __fput+0x120/0x270 fs/file_table.c:209
>  fput+0x15/0x20 fs/file_table.c:243
>  task_work_run+0xa3/0xe0 kernel/task_work.c:113
>  exit_task_work include/linux/task_work.h:22 [inline]
>  do_exit+0x3e6/0x1050 kernel/exit.c:869
>  do_group_exit+0x60/0x100 kernel/exit.c:972
>  get_signal+0x36c/0xad0 kernel/signal.c:2337
>  do_signal+0x23/0x670 arch/x86/kernel/signal.c:809
>  exit_to_usermode_loop+0x13c/0x160 arch/x86/entry/common.c:161
>  prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
>  syscall_return_slowpath+0x1b4/0x1e0 arch/x86/entry/common.c:264
>  entry_SYSCALL_64_fastpath+0x94/0x96
> RIP: 0033:0x452a39
> RSP: 002b:7f81f5ad9ce8 EFLAGS: 0246 ORIG_RAX: 00ca
> RAX: fe00 RBX: 007581b8 RCX: 00452a39
> RDX:  RSI:  RDI: 007581b8
> RBP: 007581b8 R08: 001a R09: 00758190
> R10:  R11: 0246 R12: 
> R13: 00a6f7ff R14: 7f81f5ada9c0 R15: 000e
> Code: 48 8d 14 80 48 8b 83 08 01 00 00 4c 8d 2c d0 4d 8b 75 10 4d 85 f6 74
> 17 e8 29 5b ea ff 49 c7 45 10 00 00 00 00 4c 89 ee 48 89 df <41> ff 56 10 e8
> 12 5b ea ff 41 83 c4 01 44 39 a3 d0 00 00 00 77
> RIP: pipe_buf_release include/linux/pipe_fs_i.h:136 [inline] RSP:
> c9e27ba8
> RIP: free_pipe_info+0x75/0xd0 fs/pipe.c:674 RSP: c9e27ba8
> CR2: 002f
> ---[ end trace 7ae396f579301f25 ]---

Invalidating this bug since it hasn't been seen again, and it was reported while
KASAN was accidentally disabled in the syzbot kconfig due to a change to the
kconfig menus in linux-next (so this crash was possibly caused by slab
corruption elsewhere).

#syz invalid