syzbot


general protection fault in release_task

Status: fixed on 2019/12/10 03:52
Reported-by: syzbot+3f7f3937caf1adc5c814@syzkaller.appspotmail.com
Fix commit: 4eb92a114834 RDMA/restrack: Protect from reentry to resource return path
First crash: 1888d, last: 1881d
Fix bisection: fixed by (bisect log) :
commit 4eb92a1148342af1d6f82018d20cd862e1d3ab7e
Author: Leon Romanovsky <leonro@mellanox.com>
Date: Thu Oct 11 19:10:10 2018 +0000

  RDMA/restrack: Protect from reentry to resource return path

  

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready
IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready
8021q: adding VLAN 0 to HW filter on device batadv0
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7476 Comm: syz-executor564 Not tainted 4.19.75 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:release_task+0x100/0x1630 kernel/exit.c:193
Code: 1d 4e 25 f8 07 31 ff 89 de e8 7c b8 2b 00 84 db 0f 84 65 0f 00 00 e8 2f b7 2b 00 49 8d bc 24 90 00 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 9d 10 00 00 49 8b 9c 24 90 00 00 00 be 04 00
RSP: 0018:ffff8880971efa08 EFLAGS: 00010206
RAX: 0000000000000012 RBX: 0000000000000001 RCX: ffffffff813fbac6
RDX: 0000000000000000 RSI: ffffffff813fab51 RDI: 0000000000000090
RBP: ffff8880971efa90 R08: ffff888086df0240 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000000000
R13: 0000000000000010 R14: dffffc0000000000 R15: ffff8880a573e040
FS:  00005555570eb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005646f3e461b0 CR3: 00000000a16e5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 wait_task_zombie kernel/exit.c:1164 [inline]
 wait_consider_task+0x2c95/0x3910 kernel/exit.c:1391
 do_wait_thread kernel/exit.c:1454 [inline]
 do_wait+0x439/0x9d0 kernel/exit.c:1525
 kernel_wait4+0x171/0x290 kernel/exit.c:1668
 __do_sys_wait4+0x147/0x160 kernel/exit.c:1680
 __se_sys_wait4 kernel/exit.c:1676 [inline]
 __x64_sys_wait4+0x97/0xf0 kernel/exit.c:1676
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x40208a
Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 ae 8a 2d 00 85 c0 75 36 45 31 d2 48 63 d2 48 63 ff b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 d0 ff ff ff f7
RSP: 002b:00007fff8c734e38 EFLAGS: 00000246 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 0000000000001d35 RCX: 000000000040208a
RDX: 0000000040000000 RSI: 00007fff8c734e44 RDI: ffffffffffffffff
RBP: 00000000006d3018 R08: 0000000000000000 R09: 00005555570eb880
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403040
R13: 00000000004030d0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 361299dee640a08e ]---
RIP: 0010:release_task+0x100/0x1630 kernel/exit.c:193
Code: 1d 4e 25 f8 07 31 ff 89 de e8 7c b8 2b 00 84 db 0f 84 65 0f 00 00 e8 2f b7 2b 00 49 8d bc 24 90 00 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 9d 10 00 00 49 8b 9c 24 90 00 00 00 be 04 00
RSP: 0018:ffff8880971efa08 EFLAGS: 00010206
RAX: 0000000000000012 RBX: 0000000000000001 RCX: ffffffff813fbac6
RDX: 0000000000000000 RSI: ffffffff813fab51 RDI: 0000000000000090
RBP: ffff8880971efa90 R08: ffff888086df0240 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000000000
R13: 0000000000000010 R14: dffffc0000000000 R15: ffff8880a573e040
FS:  00005555570eb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005646f3e461b0 CR3: 00000000a16e5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/28 09:29 linux-4.19.y d573e8a79f70 d8074e0b .config console log report syz C ci2-linux-4-19
2019/09/24 06:20 linux-4.19.y d573e8a79f70 c68252d2 .config console log report syz C ci2-linux-4-19
2019/09/21 10:43 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report syz C ci2-linux-4-19
* Struck through repros no longer work on HEAD.