syzbot


general protection fault in prepare_to_wait

Status: auto-obsoleted due to no activity on 2023/05/27 16:21
Subsystems: hams
[Documentation on labels]
Reported-by: syzbot+55f9d3e51d49e20b2ce5@syzkaller.appspotmail.com
First crash: 1902d, last: 416d
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 (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
Reminder: 13 open syzbot bugs in "net/netrom" subsystem 2 (2) 2019/07/24 17:02
Reminder: 7 open syzbot bugs in "net/netrom" subsystem 1 (1) 2019/06/27 03:50
general protection fault in prepare_to_wait 0 (4) 2019/03/21 17:39
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in prepare_to_wait (2) hams syz inconclusive 4 175d 213d 23/26 fixed on 2023/10/12 12:47
linux-4.14 general protection fault in prepare_to_wait C error 11 488d 1737d 0/1 upstream: reported C repro on 2019/06/16 06:33
linux-4.19 general protection fault in prepare_to_wait C error 29 466d 1680d 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 871d 871d 1/2 fixed on 2021/12/01 19:46
Last patch testing requests (11)
Created Duration User Patch Repo Result
2023/05/08 02:16 18m retest repro linux-next OK log
2023/05/08 02:16 20m retest repro linux-next OK log
2023/05/08 01:54 21m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/05/08 00:47 19m retest repro linux-next OK log
2023/05/08 00:47 18m retest repro net-next OK log
2023/05/08 00:47 19m retest repro net-next OK log
2023/05/08 00:47 18m retest repro upstream OK log
2023/05/08 00:47 18m retest repro linux-next OK log
2023/05/07 23:24 22m retest repro upstream OK log
2023/05/07 23:24 25m retest repro upstream OK log
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 (285):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/30 04:13 upstream b3a608222336 5ed23f9a .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/01/29 08:19 upstream c677124e631d c8e81ce4 .config console log report syz C ci-upstream-kasan-gce-root
2020/01/27 09:24 upstream a45ea48e2bcd dd56146d .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/08/30 10:56 upstream 6525771f58cb fd37b39e .config console log report syz C ci-upstream-kasan-gce-root
2019/02/15 15:18 upstream cb5b020a8d38 f6f233c0 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/02/15 05:42 upstream 23e93c9b2cde 76dd003f .config console log report syz C ci-upstream-kasan-gce-root
2020/01/27 08:54 net-old 2821e26f3a0a dd56146d .config console log report syz C ci-upstream-net-this-kasan-gce
2019/07/26 20:03 net-old 107e47cc80ec 3e5d1beb .config console log report syz C ci-upstream-net-this-kasan-gce
2020/02/14 18:00 linux-next 9f01828e9e16 5d7b90f1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2022/07/28 14:37 upstream 6e7765cb477a fb95c74d .config console log report syz ci-upstream-kasan-gce-root general protection fault in prepare_to_wait
2022/06/17 12:17 net-old 48a23ec6ff2b 1719ee24 .config console log report syz ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2022/12/28 09:54 linux-next c76083fac3ba 44712fbc .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in prepare_to_wait
2020/06/06 22:01 upstream 435faf5c218a e6b89e4e .config console log report syz ci-qemu-upstream
2019/08/30 11:21 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/08/30 11:19 upstream 6525771f58cb fd37b39e .config console log report syz ci-upstream-kasan-gce-smack-root
2019/08/20 19:54 upstream 5f97cbe22b76 cfc9868f .config console log report syz ci-upstream-kasan-gce-smack-root
2019/04/24 09:02 upstream 7142eaa58b49 4d3d6a50 .config console log report syz ci-upstream-kasan-gce-smack-root
2019/03/16 11:22 upstream 6c83d0d5eb62 bab43553 .config console log report syz ci-upstream-kasan-gce-smack-root
2019/02/15 05:23 upstream 23e93c9b2cde 76dd003f .config console log report syz ci-upstream-kasan-gce-smack-root
2019/02/08 12:05 net-old ec7fd009e87c aa4feb03 .config console log report syz ci-upstream-net-this-kasan-gce
2020/01/27 08:59 net-next-old 14a1d2468ab3 dd56146d .config console log report syz ci-upstream-net-kasan-gce
2019/03/16 10:56 net-next-old 3b319ee220a8 bab43553 .config console log report syz ci-upstream-net-kasan-gce
2019/12/19 21:23 linux-next 9f8535c5f75f 36650b4b .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/07/26 22:22 linux-next fde50b96be82 3e5d1beb .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/03/16 11:41 linux-next cf08baa29613 bab43553 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2019/02/08 12:28 linux-next a46228f6598a aa4feb03 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2022/11/16 20:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 3a127a31 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in prepare_to_wait
2022/08/28 13:38 upstream 10d4879f9ef0 07177916 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in prepare_to_wait
2022/08/06 09:07 upstream 200e340f2196 e853abd9 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in prepare_to_wait
2022/07/06 06:54 upstream e35e5b6f695d bff65f44 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in prepare_to_wait
2022/06/09 06:55 upstream 6bfb56e93bce 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in prepare_to_wait
2022/06/08 05:08 upstream e71e60cd74df b2706118 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in prepare_to_wait
2022/06/07 11:03 upstream e71e60cd74df c8857892 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in prepare_to_wait
2022/06/02 08:03 upstream 8171acb8bc9b b4bc6a3d .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in prepare_to_wait
2022/04/07 20:13 upstream 3e732ebf7316 c6ff3e05 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in prepare_to_wait
2021/10/31 22:43 upstream 180eca540ae0 098b5d53 .config console log report info ci-upstream-kasan-gce-root general protection fault in prepare_to_wait
2021/10/27 11:29 upstream d25f27432f80 d50eb50a .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in prepare_to_wait
2021/06/04 08:35 upstream f88cd3fb9df2 0740de69 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in prepare_to_wait
2021/12/29 18:45 net-old 9665e03a8de5 6cc879d4 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/08/05 23:49 net-old 6bb5318ce501 d2d6e680 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/31 05:59 net-old 8d67041228ac 6c236867 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/18 00:36 net-old 5b69874f74cc f115ae98 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/16 13:49 net-old 65875073eddd f115ae98 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/07 04:01 net-old be5d1b61a2ad cca78469 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/05 13:29 net-old dbe69e433722 55aa55c2 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/05 08:54 net-old dbe69e433722 55aa55c2 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/04 19:59 net-old dbe69e433722 55aa55c2 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/04 18:47 net-old dbe69e433722 55aa55c2 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/04 15:04 net-old dbe69e433722 55aa55c2 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/04 02:47 net-old dbe69e433722 55aa55c2 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/07/02 10:32 net-old dbe69e433722 658ebc66 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/26 23:00 net-old d6765985a42a 9d2ab5df .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/21 03:21 net-old dda2626b86c2 aba2b2fb .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/17 07:13 net-old 8f269102baf7 aba2b2fb .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/10 08:47 net-old 13c62f5371e3 1ba81399 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/09 02:29 net-old 7a6b1ab7475f 5c2fe346 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/06 07:04 net-old 3822d0670c9d 500c2339 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/04 09:53 net-old 261ba78cc364 0740de69 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/03 21:05 net-old ab00f3e051e8 0740de69 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/06/03 08:16 net-old ab00f3e051e8 0740de69 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/05/31 05:50 net-old 593f555fbc60 325a8dab .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/05/27 13:22 net-old 62f3415db237 858ea628 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2021/05/27 12:07 net-old 62f3415db237 858ea628 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in prepare_to_wait
2023/01/27 16:21 net-next-old 0313afe8b83a 9dfcf09c .config console log report info ci-upstream-net-kasan-gce general protection fault in prepare_to_wait
2022/09/08 20:23 net-next-old 929d43421ee5 f3027468 .config console log report info ci-upstream-net-kasan-gce general protection fault in prepare_to_wait
2022/01/12 02:51 net-next-old fe8152b38d3a 44d1319a .config console log report info ci-upstream-net-kasan-gce general protection fault in prepare_to_wait
2021/11/26 05:56 net-next-old a0341b73d843 63eeac02 .config console log report info ci-upstream-net-kasan-gce general protection fault in prepare_to_wait
2021/08/21 17:32 net-next-old 4af14dbaeae0 b599f2fc .config console log report info ci-upstream-net-kasan-gce general protection fault in prepare_to_wait
2022/07/23 06:37 linux-next cb71b93c2dc3 22343af4 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in prepare_to_wait
2022/01/10 03:48 linux-next b8170452cd51 2ca0d385 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in prepare_to_wait
2021/01/12 23:40 net-old 1ee527a79fa6 0cdd6185 .config console log report info ci-upstream-net-this-kasan-gce
2019/01/02 21:32 net-old e888402789b9 f0491811 .config console log report ci-upstream-net-this-kasan-gce
2019/01/02 20:22 net-next-old b71acb0e3721 f0491811 .config console log report ci-upstream-net-kasan-gce
2022/11/21 17:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in prepare_to_wait
2022/11/16 18:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in prepare_to_wait
2022/10/26 10:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2159e4d2 .config console log report info ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in prepare_to_wait
2022/09/28 11:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 e2556bc3 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in prepare_to_wait
2022/09/27 23:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 75c78242 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in prepare_to_wait
2022/09/26 09:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 d59ba983 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in prepare_to_wait
* Struck through repros no longer work on HEAD.