syzbot


general protection fault in prepare_to_wait
Status: upstream: reported C repro on 2019/01/03 10:44
Reported-by: syzbot+55f9d3e51d49e20b2ce5@syzkaller.appspotmail.com
First crash: 1241d, last: 50d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: inconsistent lock state in nr_find_socket (log)
Repro: C syz .config

Fix bisection: failed (bisect log)
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in prepare_to_wait C error 7 462d 1077d 0/1 upstream: reported C repro on 2019/06/16 06:33
linux-4.19 general protection fault in prepare_to_wait C error 26 60d 1019d 0/1 upstream: reported C repro on 2019/08/12 18:19
android-5-10 KASAN: null-ptr-deref Write in prepare_to_wait C error 2 210d 210d 1/2 fixed on 2021/12/01 19:46
Patch testing requests:
Created Duration User Patch Repo Result
2020/10/20 13:09 18m anant.thazhemadam@gmail.com upstream report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 PID: 10864 Comm: syz-executor944 Not tainted 5.5.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3827
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e 60 37 bd 8a 0f 84 5f ee ff
RSP: 0018:ffffc90001e67a18 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90001e67b30 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff1505ce0 R11: ffff8880a7e1e300 R12: 0000000000000018
R13: 0000000000000000 R14: 0000000000000018 R15: 0000000000000001
FS:  00007fa530d37700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004ad780 CR3: 000000009f9f5000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4484
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:159
 prepare_to_wait+0x7c/0x300 kernel/sched/wait.c:244
 nr_accept+0x245/0x770 net/netrom/af_netrom.c:771
 __sys_accept4_file+0x3be/0x5e0 net/socket.c:1758
 __sys_accept4+0x5a/0xa0 net/socket.c:1809
 __do_sys_accept net/socket.c:1827 [inline]
 __se_sys_accept net/socket.c:1824 [inline]
 __x64_sys_accept+0x75/0xb0 net/socket.c:1824
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x447fb9
Code: e8 ec 14 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 8b 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fa530d36db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002b
RAX: ffffffffffffffda RBX: 00000000006ddc68 RCX: 0000000000447fb9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000006ddc60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006ddc6c
R13: 00007fffe120c1ff R14: 00007fa530d379c0 R15: 000000000000002d
Modules linked in:
---[ end trace 81a179622db7238a ]---
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3827
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e 60 37 bd 8a 0f 84 5f ee ff
RSP: 0018:ffffc90001e67a18 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90001e67b30 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff1505ce0 R11: ffff8880a7e1e300 R12: 0000000000000018
R13: 0000000000000000 R14: 0000000000000018 R15: 0000000000000001
FS:  00007fa530d37700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004ad780 CR3: 000000009f9f5000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (265):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2020/01/30 04:13 upstream b3a608222336 5ed23f9a .config log report syz C
ci-upstream-kasan-gce-root 2020/01/29 08:19 upstream c677124e631d c8e81ce4 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/01/27 09:24 upstream a45ea48e2bcd dd56146d .config log report syz C
ci-upstream-kasan-gce-root 2019/08/30 10:56 upstream 6525771f58cb fd37b39e .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/02/15 15:18 upstream cb5b020a8d38 f6f233c0 .config log report syz C
ci-upstream-kasan-gce-root 2019/02/15 05:42 upstream 23e93c9b2cde 76dd003f .config log report syz C
ci-upstream-net-this-kasan-gce 2020/01/27 08:54 net 2821e26f3a0a dd56146d .config log report syz C
ci-upstream-net-this-kasan-gce 2019/07/26 20:03 net 107e47cc80ec 3e5d1beb .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/02/14 18:00 linux-next 9f01828e9e16 5d7b90f1 .config log report syz C
ci-qemu-upstream 2020/06/06 22:01 upstream 435faf5c218a e6b89e4e .config log report syz
ci-upstream-kasan-gce-selinux-root 2019/08/30 11:21 upstream 6525771f58cb fd37b39e .config log report syz
ci-upstream-kasan-gce-smack-root 2019/08/30 11:19 upstream 6525771f58cb fd37b39e .config log report syz
ci-upstream-kasan-gce-smack-root 2019/08/20 19:54 upstream 5f97cbe22b76 cfc9868f .config log report syz
ci-upstream-kasan-gce-smack-root 2019/04/24 09:02 upstream 7142eaa58b49 4d3d6a50 .config log report syz
ci-upstream-kasan-gce-smack-root 2019/03/16 11:22 upstream 6c83d0d5eb62 bab43553 .config log report syz
ci-upstream-kasan-gce-smack-root 2019/02/15 05:23 upstream 23e93c9b2cde 76dd003f .config log report syz
ci-upstream-net-this-kasan-gce 2019/02/08 12:05 net ec7fd009e87c aa4feb03 .config log report syz
ci-upstream-net-kasan-gce 2020/01/27 08:59 net-next 14a1d2468ab3 dd56146d .config log report syz
ci-upstream-net-kasan-gce 2019/03/16 10:56 net-next 3b319ee220a8 bab43553 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2019/12/19 21:23 linux-next 9f8535c5f75f 36650b4b .config log report syz
ci-upstream-linux-next-kasan-gce-root 2019/07/26 22:22 linux-next fde50b96be82 3e5d1beb .config log report syz
ci-upstream-linux-next-kasan-gce-root 2019/03/16 11:41 linux-next cf08baa29613 bab43553 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2019/02/08 12:28 linux-next a46228f6598a aa4feb03 .config log report syz
ci-upstream-kasan-gce-smack-root 2022/04/07 20:13 upstream 3e732ebf7316 c6ff3e05 .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-root 2021/10/31 22:43 upstream 180eca540ae0 098b5d53 .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-selinux-root 2021/10/27 11:29 upstream d25f27432f80 d50eb50a .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-selinux-root 2021/06/04 08:35 upstream f88cd3fb9df2 0740de69 .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-root 2021/02/17 20:57 upstream f40ddce88593 14052202 .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-root 2021/02/14 13:42 upstream 358feceebbf6 98682e5e .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-root 2021/02/14 09:39 upstream ac30d8ce28d6 98682e5e .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-root 2021/02/13 12:24 upstream c6d8570e4d64 98682e5e .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-root 2021/02/12 21:29 upstream dcc0b49040c7 98682e5e .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-smack-root 2021/02/12 10:39 upstream dcc0b49040c7 a5f86b15 .config log report info general protection fault in prepare_to_wait
ci-upstream-kasan-gce-root 2021/02/12 01:35 upstream 291009f656e8 a5f86b15 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/12/29 18:45 net 9665e03a8de5 6cc879d4 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/08/05 23:49 net 6bb5318ce501 d2d6e680 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/31 05:59 net 8d67041228ac 6c236867 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/18 00:36 net 5b69874f74cc f115ae98 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/16 13:49 net 65875073eddd f115ae98 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/07 04:01 net be5d1b61a2ad cca78469 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/05 13:29 net dbe69e433722 55aa55c2 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/05 08:54 net dbe69e433722 55aa55c2 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/04 19:59 net dbe69e433722 55aa55c2 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/04 18:47 net dbe69e433722 55aa55c2 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/04 15:04 net dbe69e433722 55aa55c2 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/04 02:47 net dbe69e433722 55aa55c2 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/07/02 10:32 net dbe69e433722 658ebc66 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/26 23:00 net d6765985a42a 9d2ab5df .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/21 03:21 net dda2626b86c2 aba2b2fb .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/17 07:13 net 8f269102baf7 aba2b2fb .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/10 08:47 net 13c62f5371e3 1ba81399 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/09 02:29 net 7a6b1ab7475f 5c2fe346 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/06 07:04 net 3822d0670c9d 500c2339 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/04 09:53 net 261ba78cc364 0740de69 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/03 21:05 net ab00f3e051e8 0740de69 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/06/03 08:16 net ab00f3e051e8 0740de69 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/05/31 05:50 net 593f555fbc60 325a8dab .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/05/27 13:22 net 62f3415db237 858ea628 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/05/27 12:07 net 62f3415db237 858ea628 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/05/24 10:39 net 5eff1461a6de 3c7fef33 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/05/23 08:13 net e29f011e8fc0 3c7fef33 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/05/22 06:09 net 430bfe057612 3c7fef33 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-kasan-gce 2022/01/12 02:51 net-next fe8152b38d3a 44d1319a .config log report info general protection fault in prepare_to_wait
ci-upstream-net-kasan-gce 2021/11/26 05:56 net-next a0341b73d843 63eeac02 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-kasan-gce 2021/08/21 17:32 net-next 4af14dbaeae0 b599f2fc .config log report info general protection fault in prepare_to_wait
ci-upstream-net-kasan-gce 2021/04/29 19:22 net-next 95aafe911db6 77e2b668 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-kasan-gce 2021/03/02 18:11 net-next d310ec03a34e 92ead296 .config log report info general protection fault in prepare_to_wait
ci-upstream-linux-next-kasan-gce-root 2022/01/10 03:48 linux-next b8170452cd51 2ca0d385 .config log report info general protection fault in prepare_to_wait
ci-upstream-net-this-kasan-gce 2021/01/12 23:40 net 1ee527a79fa6 0cdd6185 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/19 13:03 net 1e72faedcd58 04201c06 .config log report info
ci-upstream-net-this-kasan-gce 2020/12/03 17:44 net 832e09798c26 e6b0d314 .config log report info
ci-upstream-net-this-kasan-gce 2019/01/02 21:32 net e888402789b9 f0491811 .config log report
ci-upstream-net-kasan-gce 2020/12/05 12:22 net-next bcd684aace34 50503117 .config log report info
ci-upstream-net-kasan-gce 2020/12/03 05:34 net-next cec85994c6b4 8c9190ef .config log report info
ci-upstream-net-kasan-gce 2020/11/04 20:22 net-next 3fb6928b56f6 cba33199 .config log report info
ci-upstream-net-kasan-gce 2019/01/02 20:22 net-next b71acb0e3721 f0491811 .config log report