bisecting fixing commit since cbfa1702aaf69b2311ea1b35e04f113c48368c67 building syzkaller on 1a3f94087169f62f9a5832828f62b4900e98b781 testing commit cbfa1702aaf69b2311ea1b35e04f113c48368c67 with gcc (GCC) 8.4.1 20210217 kernel signature: c2f33ca72c71fe90703fc02b99b4d6f042162ec2b561f16833f2c9a731f83837 run #0: crashed: BUG: unable to handle kernel NULL pointer dereference in vhci_shutdown_connection run #1: crashed: BUG: unable to handle kernel run #2: crashed: BUG: unable to handle kernel NULL pointer dereference in vhci_shutdown_connection run #3: crashed: BUG: unable to handle kernel run #4: crashed: BUG: unable to handle kernel run #5: crashed: BUG: unable to handle kernel NULL pointer dereference in vhci_shutdown_connection run #6: crashed: BUG: unable to handle kernel NULL pointer dereference in vhci_shutdown_connection run #7: crashed: BUG: unable to handle kernel NULL pointer dereference in vhci_shutdown_connection run #8: crashed: BUG: unable to handle kernel NULL pointer dereference in vhci_shutdown_connection run #9: crashed: INFO: task hung in hub_port_init run #10: crashed: INFO: task hung in hub_port_init run #11: crashed: INFO: task hung in hub_port_init run #12: crashed: INFO: task hung in hub_port_init run #13: crashed: INFO: task hung in hub_port_init run #14: crashed: INFO: task hung in hub_port_init run #15: crashed: INFO: task hung in hub_port_init run #16: crashed: INFO: task hung in hub_port_init run #17: crashed: INFO: task hung in hub_port_init run #18: crashed: INFO: task hung in hub_port_init run #19: crashed: INFO: task hung in hub_port_init testing current HEAD 670d6552eda8ff0c5f396d3d6f0174237917c66c testing commit 670d6552eda8ff0c5f396d3d6f0174237917c66c with gcc (GCC) 8.4.1 20210217 kernel signature: ef067107013bc450d5cff9e10684d66673d8b45f412477514b5b4f00813805b6 all runs: crashed: general protection fault in try_to_wake_up revisions tested: 2, total time: 29m12.209994828s (build: 15m20.135003935s, test: 13m29.3799888s) the crash still happens on HEAD commit msg: Linux 4.14.227 crash: general protection fault in try_to_wake_up vhci_hcd: connection closed vhci_hcd: stop threads kasan: CONFIG_KASAN_INLINE enabled vhci_hcd: release socket kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN vhci_hcd: disconnect device Modules linked in: CPU: 1 PID: 26204 Comm: syz-executor.0 Not tainted 4.14.227-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881d5aca2c0 task.stack: ffff8881f3340000 RIP: 0010:__lock_acquire+0x211/0x42d0 kernel/locking/lockdep.c:3369 RSP: 0018:ffff8881f3347610 EFLAGS: 00010006 vhci_hcd: stop threads RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000000000fc RSI: 0000000000000000 RDI: ffffffff87f15e80 RBP: ffff8881f33477d8 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: ffff8881d5aca2c0 R12: 00000000000007e0 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f98a601e700(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004780 CR3: 00000001d8748004 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vhci_hcd: release socket vhci_hcd: disconnect device lock_acquire+0x17e/0x3e0 kernel/locking/lockdep.c:3998 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:160 try_to_wake_up+0x82/0x1110 kernel/sched/core.c:1997 wake_up_process+0x10/0x20 kernel/sched/core.c:2160 store_attach+0x599/0x950 drivers/usb/usbip/vhci_sysfs.c:435 dev_attr_store+0x37/0x70 drivers/base/core.c:738 sysfs_kf_write+0xfd/0x150 fs/sysfs/file.c:142 kernfs_fop_write+0x255/0x410 fs/kernfs/file.c:316 __vfs_write+0xdb/0x840 fs/read_write.c:480 vfs_write+0x150/0x4f0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0x100/0x250 fs/read_write.c:582 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x41894f RSP: 002b:00007f98a601db90 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 000000000041894f RDX: 0000000000000007 RSI: 00007f98a601dbe0 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007f98a601db30 R10: 0000000000000000 R11: 0000000000000293 R12: 00000000004be3f0 R13: 00007f98a601dbe0 R14: 0000000000000000 R15: 0000000000022000 Code: 00 00 00 00 8b 84 24 98 00 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 ad 2a 00 00 49 81 3c 24 e0 04 e9 88 0f 84 30 RIP: __lock_acquire+0x211/0x42d0 kernel/locking/lockdep.c:3369 RSP: ffff8881f3347610 ---[ end trace 8fc8de1389f5effe ]---