bisecting fixing commit since c076c79e03c6094e578df5d210fde808b3ad32e6 building syzkaller on 0487ea6f5d997a8363eba0d2eb0ea7a925444555 testing commit c076c79e03c6094e578df5d210fde808b3ad32e6 with gcc (GCC) 8.1.0 kernel signature: ca842f69efca386dd461d24af0dcfd02835390f7aef62ee83c88a9e032ab0aa5 run #0: crashed: KASAN: use-after-free Read in l2cap_sock_release run #1: crashed: BUG: corrupted list in l2cap_chan_put run #2: crashed: BUG: corrupted list in l2cap_chan_put run #3: crashed: BUG: corrupted list in l2cap_chan_put run #4: crashed: BUG: corrupted list in l2cap_chan_put run #5: crashed: BUG: corrupted list in l2cap_chan_put run #6: crashed: BUG: corrupted list in l2cap_chan_put run #7: crashed: BUG: corrupted list in l2cap_chan_put run #8: crashed: BUG: corrupted list in l2cap_chan_put run #9: crashed: BUG: corrupted list in l2cap_chan_put testing current HEAD c37da90efff5f183bea6ae4c2af33571f61fe317 testing commit c37da90efff5f183bea6ae4c2af33571f61fe317 with gcc (GCC) 8.1.0 kernel signature: fef4c03ce51b2c0485e121ff6b54d177165991cc2187eadd04657972723cbc62 all runs: crashed: BUG: corrupted list in l2cap_chan_put revisions tested: 2, total time: 43m59.536598913s (build: 22m15.3318535s, test: 20m5.703005351s) the crash still happens on HEAD commit msg: Linux 4.19.143 crash: BUG: corrupted list in l2cap_chan_put Bluetooth: hci0: command 0x0409 tx timeout Bluetooth: hci0: command 0x041b tx timeout Bluetooth: hci0: command 0x040f tx timeout list_del corruption, ffff88809acea5c8->next is LIST_POISON1 (dead000000000100) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:47! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 1536 Comm: kworker/u5:0 Not tainted 4.19.143-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci0 hci_rx_work RIP: 0010:__list_del_entry_valid.cold.1+0x26/0x58 lib/list_debug.c:45 Code: 1d fe 0f 0b 4c 89 e2 48 89 de 48 c7 c7 a0 88 67 87 e8 d6 dc 1d fe 0f 0b 4c 89 ea 48 89 de 48 c7 c7 40 88 67 87 e8 c2 dc 1d fe <0f> 0b 48 89 de 48 c7 c7 60 89 67 87 e8 b1 dc 1d fe 0f 0b 48 89 de RSP: 0018:ffff8880a90af6f8 EFLAGS: 00010282 RAX: 000000000000004e RBX: ffff88809acea5c8 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff876785a0 RDI: ffffffff8a1a3a60 RBP: ffff8880a90af710 R08: ffffed1015d45081 R09: ffffed1015d45080 R10: ffffed1015d45080 R11: ffff8880aea28407 R12: dead000000000200 R13: dead000000000100 R14: ffff888094337980 R15: ffff888094337a00 FS: 0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000006e06c0 CR3: 000000000846d000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry include/linux/list.h:117 [inline] list_del include/linux/list.h:125 [inline] l2cap_chan_destroy net/bluetooth/l2cap_core.c:476 [inline] kref_put include/linux/kref.h:70 [inline] l2cap_chan_put+0x49/0x1a0 net/bluetooth/l2cap_core.c:493 l2cap_conless_channel net/bluetooth/l2cap_core.c:6976 [inline] l2cap_recv_frame+0xf29/0xa490 net/bluetooth/l2cap_core.c:7023 l2cap_recv_acldata+0x756/0x8a0 net/bluetooth/l2cap_core.c:7588 hci_acldata_packet net/bluetooth/hci_core.c:4178 [inline] hci_rx_work+0x5e1/0x8e0 net/bluetooth/hci_core.c:4364 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2155 worker_thread+0x85/0xb60 kernel/workqueue.c:2298 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Modules linked in: ---[ end trace 2045f6970a8e7eda ]--- RIP: 0010:__list_del_entry_valid.cold.1+0x26/0x58 lib/list_debug.c:45 Code: 1d fe 0f 0b 4c 89 e2 48 89 de 48 c7 c7 a0 88 67 87 e8 d6 dc 1d fe 0f 0b 4c 89 ea 48 89 de 48 c7 c7 40 88 67 87 e8 c2 dc 1d fe <0f> 0b 48 89 de 48 c7 c7 60 89 67 87 e8 b1 dc 1d fe 0f 0b 48 89 de RSP: 0018:ffff8880a90af6f8 EFLAGS: 00010282 RAX: 000000000000004e RBX: ffff88809acea5c8 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff876785a0 RDI: ffffffff8a1a3a60 RBP: ffff8880a90af710 R08: ffffed1015d45081 R09: ffffed1015d45080 R10: ffffed1015d45080 R11: ffff8880aea28407 R12: dead000000000200 R13: dead000000000100 R14: ffff888094337980 R15: ffff888094337a00 FS: 0000000000000000(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000006e06c0 CR3: 000000000846d000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400