syzbot


BUG: corrupted list in hci_conn_del_sysfs

Status: upstream: reported C repro on 2022/10/13 16:32
Reported-by: syzbot+56ae4cda6da414c96ded@syzkaller.appspotmail.com
First crash: 799d, last: 701d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in hci_conn_del_sysfs bluetooth C 14 785d 797d 0/28 auto-obsoleted due to no activity on 2023/02/24 17:48

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
list_del corruption. prev->next should be ffff8880aba5d5a0, but was ffff8880b52bd578
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8099 Comm: syz-executor280 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51
Code: e8 25 43 f7 ff 0f 0b 48 89 f1 48 c7 c7 a0 e2 b3 88 4c 89 e6 e8 11 43 f7 ff 0f 0b 48 89 ee 48 c7 c7 40 e4 b3 88 e8 00 43 f7 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 80 e3 b3 88 e8 ec 42 f7 ff 0f 0b
RSP: 0018:ffff8880b15cf9d0 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10162b9f2c
RBP: ffff8880aba5d5a0 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b28134a0
R13: ffff8880b28134a0 R14: ffff8880b014aec0 R15: 0000000000000000
FS:  0000555556c5c300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c72a1f028 CR3: 0000000009e6d000 CR4: 00000000003406f0
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]
 klist_release lib/klist.c:190 [inline]
 kref_put include/linux/kref.h:70 [inline]
 klist_dec_and_del+0x97/0x480 lib/klist.c:207
 klist_put+0x7a/0x150 lib/klist.c:218
 device_del+0x162/0xaf0 drivers/base/core.c:2321
 hci_conn_del_sysfs+0xdc/0x180 net/bluetooth/hci_sysfs.c:78
 hci_conn_cleanup+0x24b/0x550 net/bluetooth/hci_conn.c:128
 hci_conn_del+0x2a0/0x780 net/bluetooth/hci_conn.c:611
 hci_conn_hash_flush+0x19c/0x260 net/bluetooth/hci_conn.c:1513
 hci_dev_do_close+0x6bc/0x1020 net/bluetooth/hci_core.c:1687
 hci_unregister_dev+0x14f/0x460 net/bluetooth/hci_core.c:3288
 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:354
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xbf3/0x2be0 kernel/exit.c:870
 do_group_exit+0x125/0x310 kernel/exit.c:967
 __do_sys_exit_group kernel/exit.c:978 [inline]
 __se_sys_exit_group kernel/exit.c:976 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:976
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1c729c8599
Code: Bad RIP value.
RSP: 002b:00007ffc13e8b3a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f1c72a53390 RCX: 00007f1c729c8599
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffb8 R09: 00007ffc13e8ae70
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1c72a53390
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Modules linked in:
---[ end trace cf4443c28ec3b832 ]---
RIP: 0010:__list_del_entry_valid.cold+0xf/0x4a lib/list_debug.c:51
Code: e8 25 43 f7 ff 0f 0b 48 89 f1 48 c7 c7 a0 e2 b3 88 4c 89 e6 e8 11 43 f7 ff 0f 0b 48 89 ee 48 c7 c7 40 e4 b3 88 e8 00 43 f7 ff <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 80 e3 b3 88 e8 ec 42 f7 ff 0f 0b
RSP: 0018:ffff8880b15cf9d0 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10162b9f2c
RBP: ffff8880aba5d5a0 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b28134a0
R13: ffff8880b28134a0 R14: ffff8880b014aec0 R15: 0000000000000000
FS:  0000555556c5c300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c729c856f CR3: 0000000009e6d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/20 06:01 linux-4.19.y 3f8a27f9e27b 71197f3a .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 BUG: corrupted list in hci_conn_del_sysfs
2023/01/11 23:35 linux-4.19.y 3f8a27f9e27b 96166539 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 BUG: corrupted list in hci_conn_del_sysfs
2022/12/29 09:54 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 BUG: corrupted list in hci_conn_del_sysfs
2022/12/29 09:21 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: corrupted list in hci_conn_del_sysfs
2022/12/05 06:16 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: corrupted list in hci_conn_del_sysfs
2022/10/29 21:41 linux-4.19.y 3f8a27f9e27b 2a71366b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: corrupted list in hci_conn_del_sysfs
2022/10/13 16:31 linux-4.19.y 3f8a27f9e27b adf90437 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: corrupted list in hci_conn_del_sysfs
* Struck through repros no longer work on HEAD.