syzbot


general protection fault in wait_consider_task

Status: fixed on 2019/12/10 03:52
Reported-by: syzbot+c606e4aa40937cc76853@syzkaller.appspotmail.com
Fix commit: 4eb92a114834 RDMA/restrack: Protect from reentry to resource return path
First crash: 1886d, last: 1880d
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

  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in wait_consider_task kernel 3 1513d 1674d 0/28 auto-closed as invalid on 2021/01/27 15:56
linux-4.14 general protection fault in wait_consider_task 2 1660d 1686d 0/1 auto-closed as invalid on 2020/09/02 23:50
linux-4.19 general protection fault in wait_consider_task (2) C error 2 831d 1538d 0/1 upstream: reported C repro on 2020/09/04 22:53
linux-4.14 general protection fault in wait_consider_task (2) 1 1445d 1445d 0/1 auto-closed as invalid on 2021/04/06 02:34

Sample crash report:
audit: type=1400 audit(1569703936.883:36): avc:  denied  { map } for  pid=7508 comm="syz-executor572" path="/root/syz-executor572341624" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
IPVS: ftp: loaded support on port[0] = 21
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: 7508 Comm: syz-executor572 Not tainted 4.19.75 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:wait_task_zombie kernel/exit.c:1058 [inline]
RIP: 0010:wait_consider_task+0x140b/0x3910 kernel/exit.c:1391
Code: e0 74 49 87 c6 05 0a fc f7 07 01 e8 d6 f5 12 00 e8 fa 8d 2b 00 48 8d 7b 14 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 09 84 d2 74 05 e8
RSP: 0018:ffff88809458faa0 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff813fd453
RDX: 0000000000000002 RSI: ffffffff813fd486 RDI: 0000000000000014
RBP: ffff88809458fbc8 R08: ffff88808f95a680 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000001d55
R13: ffff88809458fcbc R14: ffff88809ad3e300 R15: ffff88809458fcb8
FS:  0000555556602880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cc0a0 CR3: 000000008a655000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 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:0x40142a
Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 8b 05 ce 22 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:00007ffd2646eb38 EFLAGS: 00000246 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 0000000000001d55 RCX: 000000000040142a
RDX: 0000000040000000 RSI: 00007ffd2646eb44 RDI: ffffffffffffffff
RBP: 00000000006cc018 R08: 0000000000000000 R09: 0000555556602880
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004023e0
R13: 0000000000402470 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 7739787472c20157 ]---
RIP: 0010:wait_task_zombie kernel/exit.c:1058 [inline]
RIP: 0010:wait_consider_task+0x140b/0x3910 kernel/exit.c:1391
Code: e0 74 49 87 c6 05 0a fc f7 07 01 e8 d6 f5 12 00 e8 fa 8d 2b 00 48 8d 7b 14 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 09 84 d2 74 05 e8
RSP: 0018:ffff88809458faa0 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff813fd453
RDX: 0000000000000002 RSI: ffffffff813fd486 RDI: 0000000000000014
RBP: ffff88809458fbc8 R08: ffff88808f95a680 R09: ffffed1015d24733
R10: ffffed1015d24732 R11: ffff8880ae923993 R12: 0000000000001d55
R13: ffff88809458fcbc R14: ffff88809ad3e300 R15: ffff88809458fcb8
FS:  0000555556602880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cc0a0 CR3: 000000008a655000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/28 20:55 linux-4.19.y d573e8a79f70 eb6b9855 .config console log report syz C ci2-linux-4-19
2019/09/26 18:39 linux-4.19.y d573e8a79f70 24d405a3 .config console log report syz C ci2-linux-4-19
2019/09/24 11:52 linux-4.19.y d573e8a79f70 f8368f99 .config console log report syz C ci2-linux-4-19
2019/09/24 00:49 linux-4.19.y d573e8a79f70 c68252d2 .config console log report syz C ci2-linux-4-19
2019/09/23 02:28 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report syz C ci2-linux-4-19
* Struck through repros no longer work on HEAD.