bisecting fixing commit since d7e78d08fa77acdea351c8f628f49ca9a0e1029a building syzkaller on 816e0689d7d9d8321f8bf360740f0e516aee15ca testing commit d7e78d08fa77acdea351c8f628f49ca9a0e1029a with gcc (GCC) 8.4.1 20210217 kernel signature: 6fc01c1e414ddaa9d2a4eae20a9911a83ae6111ab714492723db35d4c514b693 run #0: crashed: KASAN: use-after-free Read in __queue_work run #1: crashed: WARNING: ODEBUG bug in bt_host_release run #2: crashed: WARNING: ODEBUG bug in bt_host_release run #3: crashed: WARNING: ODEBUG bug in bt_host_release run #4: crashed: KASAN: use-after-free Read in __queue_work run #5: crashed: KASAN: use-after-free Read in __queue_work run #6: crashed: WARNING: ODEBUG bug in bt_host_release run #7: crashed: WARNING: ODEBUG bug in bt_host_release run #8: crashed: KASAN: use-after-free Read in __queue_work run #9: crashed: WARNING in __queue_work run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK testing current HEAD 670d6552eda8ff0c5f396d3d6f0174237917c66c testing commit 670d6552eda8ff0c5f396d3d6f0174237917c66c with gcc (GCC) 8.4.1 20210217 kernel signature: 44c7265d93e7c5a2aa7409cbfc5eca1bb18a2271c83e69bcc8e6dc5047e986b3 run #0: crashed: WARNING: ODEBUG bug in bt_host_release run #1: crashed: WARNING: ODEBUG bug in bt_host_release run #2: crashed: general protection fault in __queue_work run #3: crashed: INFO: task hung in hci_req_sync run #4: crashed: general protection fault in __queue_work run #5: crashed: WARNING: ODEBUG bug in bt_host_release run #6: OK run #7: OK run #8: OK run #9: OK revisions tested: 2, total time: 38m26.758374714s (build: 15m11.13162512s, test: 22m42.772424804s) the crash still happens on HEAD commit msg: Linux 4.14.227 crash: WARNING: ODEBUG bug in bt_host_release Bluetooth: hci1 command 0x0401 tx timeout Bluetooth: hci1 command 0x0401 tx timeout Bluetooth: hci1 command 0x0401 tx timeout ODEBUG: free active (active state 0) object type: timer_list hint: delayed_work_timer_fn+0x0/0x90 kernel/workqueue.c:4859 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 2342 at lib/debugobjects.c:290 debug_print_object.cold.8+0xa7/0xdb lib/debugobjects.c:287 Modules linked in: CPU: 0 PID: 2342 Comm: syz-executor.4 Not tainted 4.14.227-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881ecad22c0 task.stack: ffff88817a2d0000 RIP: 0010:debug_print_object.cold.8+0xa7/0xdb lib/debugobjects.c:287 RSP: 0018:ffff88817a2d7788 EFLAGS: 00010082 RAX: 0000000000000061 RBX: 0000000000000003 RCX: 0000000000000000 RDX: 0000000000000061 RSI: ffffffff86cbeca0 RDI: ffffed102f45aee8 RBP: ffff88817a2d77b0 R08: 0000000000000000 R09: 0000000000000000 R10: fffffbfff13446c9 R11: dffffc0000000000 R12: ffffffff86cb9f20 R13: ffffffff813a25f0 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f48764f9700(0000) GS:ffff8881f6600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559f2a4e99f0 CR3: 0000000007e6a003 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __debug_check_no_obj_freed lib/debugobjects.c:747 [inline] debug_check_no_obj_freed+0x4bc/0x890 lib/debugobjects.c:776 kfree+0xbd/0x270 mm/slab.c:3814 bt_host_release+0x10/0x20 net/bluetooth/hci_sysfs.c:86 device_release+0xd7/0x170 drivers/base/core.c:846 kobject_cleanup lib/kobject.c:646 [inline] kobject_release lib/kobject.c:675 [inline] kref_put include/linux/kref.h:70 [inline] kobject_put lib/kobject.c:692 [inline] kobject_put+0x10d/0x1b0 lib/kobject.c:685 put_device+0x12/0x20 drivers/base/core.c:2029 hci_free_dev+0x10/0x20 net/bluetooth/hci_core.c:3067 vhci_release+0x73/0xe0 drivers/bluetooth/hci_vhci.c:355 __fput+0x232/0x740 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0xe5/0x170 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x98b/0x2c90 kernel/exit.c:868 do_group_exit+0xf8/0x2c0 kernel/exit.c:965 get_signal+0x2f6/0x1a90 kernel/signal.c:2423 do_signal+0x7f/0x18b0 arch/x86/kernel/signal.c:792 exit_to_usermode_loop+0x11e/0x190 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x416/0x5b0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x465109 RSP: 002b:00007f48764f9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: fffffffffffffffc RBX: 000000000055d040 RCX: 0000000000465109 RDX: 0000000020000200 RSI: 00000000800448f0 RDI: 0000000000000004 RBP: 00000000004af711 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055d040 R13: 00007ffda7bb220f R14: 00007f48764f9300 R15: 0000000000022000 Code: 87 48 89 fa 48 c1 ea 03 80 3c 02 00 75 42 48 8b 14 dd 60 1a 04 87 4d 89 e9 4d 89 e0 44 89 f1 48 c7 c7 80 10 04 87 e8 f4 85 f9 ff <0f> 0b e9 a2 a9 a5 fc 48 89 75 d8 e8 16 86 27 fb 48 8b 75 d8 eb ---[ end trace 25887867cd9b63b5 ]--- ======================================================