syzbot


general protection fault in try_to_wake_up
Status: fixed on 2021/07/14 00:01
Reported-by: syzbot+3e7e8c857b28e3a7ed4d@syzkaller.appspotmail.com
Fix commit: d42c3ebb3156 can: bcm/raw/isotp: use per module netdevice notifier
First crash: 435d, last: 347d

Fix bisection: fixed by (bisect log) :
commit d42c3ebb315618ca536ef764e3f929ce1d5c3485
Author: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date: Sat Jun 5 10:26:35 2021 +0000

  can: bcm/raw/isotp: use per module netdevice notifier

similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in try_to_wake_up (2) C done done 3091 137d 454d 0/22 upstream: reported C repro on 2021/02/26 14:48
linux-4.14 general protection fault in try_to_wake_up C done 707 405d 435d 1/1 fixed on 2021/05/17 08:49
upstream KASAN: use-after-free Read in try_to_wake_up C unreliable 82 455d 455d 0/22 closed as invalid on 2021/02/25 16:53
upstream general protection fault in try_to_wake_up syz 1 1523d 1519d 6/22 fixed on 2018/04/06 16:37

Sample crash report:
vhci_hcd: connection closed
kasan: CONFIG_KASAN_INLINE enabled
vhci_hcd: release socket
kasan: GPF could be caused by NULL-ptr deref or user memory access
vhci_hcd: disconnect device
general protection fault: 0000 [#1] PREEMPT SMP KASAN
vhci_hcd: stop threads
CPU: 0 PID: 10676 Comm: syz-executor.5 Not tainted 4.19.186-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 d2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88808d1077d0 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 00000000000000fc RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880b5b00540 R14: 00000000000007e0 R15: 0000000000000001
FS:  00007fb6e84f0700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
vhci_hcd: release socket
CR2: 0000000000568000 CR3: 00000000a0730000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
vhci_hcd vhci_hcd.0: pdev(0) rhport(1) sockfd(3)
vhci_hcd vhci_hcd.0: devid(0) speed(4) speed_str(wireless)
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
vhci_hcd: disconnect device
vhci_hcd: connection closed
vhci_hcd: stop threads
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x8c/0xc0 kernel/locking/spinlock.c:152
 try_to_wake_up+0x7b/0x1050 kernel/sched/core.c:1961
 attach_store+0x65b/0xaa0 drivers/usb/usbip/vhci_sysfs.c:421
 dev_attr_store+0x56/0x80 drivers/base/core.c:966
 sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:140
 kernfs_fop_write+0x2b0/0x470 fs/kernfs/file.c:316
kasan: CONFIG_KASAN_INLINE enabled
 __vfs_write+0xf7/0x770 fs/read_write.c:485
kasan: GPF could be caused by NULL-ptr deref or user memory access
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x41913f
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48
RSP: 002b:00007fb6e84efb90 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 000000000041913f
RDX: 0000000000000008 RSI: 00007fb6e84efbe0 RDI: 0000000000000005
RBP: 0000000000000005 R08: 0000000000000000 R09: 00007fb6e84efb30
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000004afb38
R13: 00007fb6e84efbe0 R14: 0000000000000000 R15: 0000000000022000
Modules linked in:
---[ end trace 50a447dd2d0e4216 ]---
general protection fault: 0000 [#2] PREEMPT SMP KASAN
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 d2 66 8c 0f 84 65 ff ff
CPU: 1 PID: 10684 Comm: syz-executor.0 Tainted: G      D           4.19.186-syzkaller #0
RSP: 0018:ffff88808d1077d0 EFLAGS: 00010006
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline]
RIP: 0010:do_raw_spin_lock+0x22/0x220 kernel/locking/spinlock_debug.c:112
RDX: 00000000000000fc RSI: 0000000000000000 RDI: 0000000000000001
Code: 00 00 00 00 00 0f 1f 00 48 b8 00 00 00 00 00 fc ff df 41 55 41 54 55 48 89 fd 48 83 c7 04 48 89 fa 53 48 c1 ea 03 48 83 ec 08 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 97
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
RSP: 0018:ffff8880921579e0 EFLAGS: 00010082
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
RAX: dffffc0000000000 RBX: 1ffff1101242af4e RCX: 0000000000000000
R13: ffff8880b5b00540 R14: 00000000000007e0 R15: 0000000000000001
RDX: 00000000000000f9 RSI: 0000000000000000 RDI: 00000000000007cc
FS:  00007fb6e84f0700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
RBP: 00000000000007c8 R08: 0000000000000001 R09: 0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000568000 CR3: 00000000a0730000 CR4: 00000000001406f0
R10: 0000000000000005 R11: ffffffff8869f778 R12: 0000000000000286
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
R13: 0000000000000003 R14: 0000000000000000 R15: 00000000000007c8
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
FS:  00007f7f26034700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000

Crashes (229):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/04/13 18:33 linux-4.19.y 830a059cbba6 6a81331a .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 13:02 linux-4.19.y b4454811f122 6a81331a .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/07 19:59 linux-4.19.y b4454811f122 6a81331a .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/03 16:01 linux-4.19.y 2034d6f0838e 6a81331a .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/01 05:17 linux-4.19.y 2034d6f0838e 6a81331a .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/29 02:00 linux-4.19.y 78fec1611cbf a8529b82 .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/20 01:15 linux-4.19.y ac3af4beac43 3d01c4de .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/20 00:26 linux-4.19.y ac3af4beac43 3d01c4de .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/19 18:15 linux-4.19.y ac3af4beac43 2af9d324 .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/19 07:30 linux-4.19.y ac3af4beac43 380dcc3e .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 17:56 linux-4.19.y ac3af4beac43 7216542e .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 16:56 linux-4.19.y ac3af4beac43 7216542e .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 16:03 linux-4.19.y ac3af4beac43 7216542e .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 11:18 linux-4.19.y ac3af4beac43 7216542e .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 07:51 linux-4.19.y ac3af4beac43 fdb2bb2c .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 07:29 linux-4.19.y ac3af4beac43 fdb2bb2c .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 02:04 linux-4.19.y ac3af4beac43 fdb2bb2c .config log report syz general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/14 04:40 linux-4.19.y 830a059cbba6 a184b83e .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/14 03:32 linux-4.19.y 830a059cbba6 a184b83e .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/13 23:38 linux-4.19.y 830a059cbba6 a184b83e .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/13 20:11 linux-4.19.y 830a059cbba6 a184b83e .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/13 15:27 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/13 12:41 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/13 07:22 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/13 00:24 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/12 18:11 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/12 17:02 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/12 04:10 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/11 20:46 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/11 13:50 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/11 09:17 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/11 07:00 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/11 03:49 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/11 02:40 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/10 21:38 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/10 15:57 linux-4.19.y 830a059cbba6 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/10 07:03 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/10 02:10 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 22:58 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 22:44 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 20:54 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 17:16 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 15:39 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 11:32 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 09:29 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 08:08 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 07:02 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 05:17 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/09 00:45 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 23:03 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 20:47 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 17:30 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 13:34 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 12:43 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 11:38 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 07:17 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 06:06 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 05:03 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 03:54 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 01:59 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/08 00:49 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/07 21:31 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/07 14:21 linux-4.19.y b4454811f122 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/04/07 08:38 linux-4.19.y 2034d6f0838e 6a81331a .config log report info general protection fault in try_to_wake_up
ci2-linux-4-19 2021/03/18 00:53 linux-4.19.y ac3af4beac43 fdb2bb2c .config log report info general protection fault in try_to_wake_up