BUG: corrupted list in hci_conn_del_sysfs

6 views
Skip to first unread message

syzbot

unread,
Oct 13, 2022, 12:32:42 PM10/13/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1798d5a4880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=56ae4cda6da414c96ded
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+56ae4c...@syzkaller.appspotmail.com

snd_dummy snd_dummy.0: control 2:7:799:syz0:3280 is already present
list_del corruption. prev->next should be ffff8880a7bccba0, but was ffff8880a90c69b8
FAT-fs (loop5): Invalid FSINFO signature: 0x41615252, 0x00000000 (sector = 1)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
FAT-fs (loop5): FAT read failed (blocknr 9864)
CPU: 0 PID: 8137 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
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
snd_dummy snd_dummy.0: control 2:7:799:syz0:3280 is already present
RSP: 0018:ffff8880b42bf9d0 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1016857f2c
RBP: ffff8880a7bccba0 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a7bcca60
R13: ffff8880a7bcca60 R14: ffff8880afbae200 R15: 0000000000000000
FS: 00005555566e4400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0cd33f2718 CR3: 00000000abf8b000 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:0x7feddf49a5a9
Code: Bad RIP value.
RSP: 002b:00007ffcaba99368 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000064 RCX: 00007feddf49a5a9
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 00007feddf4f4668 R08: 000000000000000c R09: 00005555566e43b8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000016
R13: 00007ffcaba9a640 R14: 00005555566e43b8 R15: 00007ffcaba9b740
Modules linked in:
---[ end trace c1e76604b97c398d ]---
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:ffff8880b42bf9d0 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1016857f2c
RBP: ffff8880a7bccba0 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a7bcca60
R13: ffff8880a7bcca60 R14: ffff8880afbae200 R15: 0000000000000000
FS: 00005555566e4400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007feddf49a57f CR3: 00000000abf8b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 29, 2022, 4:54:39 AM12/29/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=107ea212480000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=56ae4cda6da414c96ded
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14f40dc4480000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10b23dd8480000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+56ae4c...@syzkaller.appspotmail.com

IPVS: ftp: loaded support on port[0] = 21
list_del corruption. prev->next should be ffff8880b4c29ae0, but was ffff8880a833da38
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8123 Comm: syz-executor388 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
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:ffff888094d179d0 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10129a2f2c
RBP: ffff8880b4c29ae0 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b4c29c20
R13: ffff8880b4c29c20 R14: ffff8880afe8c900 R15: 0000000000000000
FS: 0000555556a5b300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5a863fb028 CR3: 0000000009e6d000 CR4: 00000000003406e0
RIP: 0033:0x7f5a863a4599
Code: Bad RIP value.
RSP: 002b:00007ffc2ac50bd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f5a8642f390 RCX: 00007f5a863a4599
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffb8 R09: 00007ffc2ac506a0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5a8642f390
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Modules linked in:
---[ end trace 91b5dedc6cbf83c6 ]---
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:ffff888094d179d0 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10129a2f2c
RBP: ffff8880b4c29ae0 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b4c29c20
R13: ffff8880b4c29c20 R14: ffff8880afe8c900 R15: 0000000000000000
FS: 0000555556a5b300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5a863a456f CR3: 0000000009e6d000 CR4: 00000000003406e0
Reply all
Reply to author
Forward
0 new messages