syzbot


BUG: corrupted list in snd_info_free_entry

Status: closed as dup on 2019/04/16 14:06
Subsystems: usb sound
[Documentation on labels]
Reported-by: syzbot+90cf07b4a2473213d16b@syzkaller.appspotmail.com
First crash: 2052d, last: 2024d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in snd_info_free_entry usb sound C 47 2019d 2050d
Discussions (1)
Title Replies (including bot) Last reply
BUG: corrupted list in snd_info_free_entry 0 (2) 2019/04/16 00:29

Sample crash report:
snd_usb_toneport 6-1:0.0: Line 6 POD Studio UX2 now attached
usb 6-1: USB disconnect, device number 2
snd_usb_toneport 6-1:0.0: Line 6 POD Studio UX2 now disconnected
list_del corruption. prev->next should be ffff8880a7d4d368, but was ffff8880a7d43228
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 1 PID: 17 Comm: kworker/1:0 Not tainted 5.1.0-rc3-319004-g43151d6 #6
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:__list_del_entry_valid.cold+0xf/0x55 lib/list_debug.c:51
Code: e8 19 33 ea fd 0f 0b 48 89 f1 48 c7 c7 e0 93 b3 8e 4c 89 e6 e8 05 33 ea fd 0f 0b 48 89 ee 48 c7 c7 80 95 b3 8e e8 f4 32 ea fd <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 c0 94 b3 8e e8 e0 32 ea fd 0f 0b
RSP: 0018:ffff8880a84f7768 EFLAGS: 00010286
RAX: 0000000000000054 RBX: ffff8880a7d4d270 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815b2342 RDI: ffffed101509eedf
RBP: ffff8880a7d4d368 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a7d4d0e8
R13: ffff88821ba64e98 R14: ffff8880a7d4d270 R15: ffff8880a7d4d358
FS:  0000000000000000(0000) GS:ffff8880ad100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f12b63d7000 CR3: 00000000a0878000 CR4: 00000000001406e0
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]
 snd_info_free_entry+0x137/0x340 sound/core/info.c:795
 snd_info_card_free+0x43/0x90 sound/core/info.c:606
 snd_card_do_free sound/core/init.c:469 [inline]
 release_card_device+0x8b/0x100 sound/core/init.c:156
 device_release+0x7d/0x210 drivers/base/core.c:1064
 kobject_cleanup lib/kobject.c:662 [inline]
 kobject_release lib/kobject.c:691 [inline]
 kref_put include/linux/kref.h:67 [inline]
 kobject_put+0x1df/0x4f0 lib/kobject.c:708
 put_device+0x21/0x30 drivers/base/core.c:2205
 snd_card_free_when_closed+0x3a/0x50 sound/core/init.c:493
 line6_disconnect.cold+0xa3/0xbc sound/usb/line6/driver.c:833
 usb_unbind_interface+0x1c9/0x8b0 drivers/usb/core/driver.c:423
 __device_release_driver drivers/base/dd.c:1082 [inline]
 device_release_driver_internal+0x436/0x4f0 drivers/base/dd.c:1113
 bus_remove_device+0x302/0x5c0 drivers/base/bus.c:556
 device_del+0x467/0xb90 drivers/base/core.c:2269
 usb_disable_device+0x242/0x790 drivers/usb/core/message.c:1237
 usb_disconnect+0x298/0x870 drivers/usb/core/hub.c:2197
 hub_port_connect drivers/usb/core/hub.c:4940 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5204 [inline]
 port_event drivers/usb/core/hub.c:5350 [inline]
 hub_event+0xcd2/0x3b00 drivers/usb/core/hub.c:5432
 process_one_work+0x90f/0x1580 kernel/workqueue.c:2269
 process_scheduled_works kernel/workqueue.c:2331 [inline]
 worker_thread+0x7b0/0xe20 kernel/workqueue.c:2417
 kthread+0x313/0x420 kernel/kthread.c:253
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 20b01c4fa2eeb987 ]---
RIP: 0010:__list_del_entry_valid.cold+0xf/0x55 lib/list_debug.c:51
Code: e8 19 33 ea fd 0f 0b 48 89 f1 48 c7 c7 e0 93 b3 8e 4c 89 e6 e8 05 33 ea fd 0f 0b 48 89 ee 48 c7 c7 80 95 b3 8e e8 f4 32 ea fd <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 c0 94 b3 8e e8 e0 32 ea fd 0f 0b
RSP: 0018:ffff8880a84f7768 EFLAGS: 00010286
RAX: 0000000000000054 RBX: ffff8880a7d4d270 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815b2342 RDI: ffffed101509eedf
RBP: ffff8880a7d4d368 R08: 0000000000000054 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a7d4d0e8
R13: ffff88821ba64e98 R14: ffff8880a7d4d270 R15: ffff8880a7d4d358
FS:  0000000000000000(0000) GS:ffff8880ad100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f12b63d7000 CR3: 00000000a0878000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (44):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/26 13:54 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz C ci2-upstream-usb
2019/04/16 05:31 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz C ci2-upstream-usb
2019/04/16 00:28 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz C ci2-upstream-usb
2019/05/09 09:11 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 1ab4c999 .config console log report syz ci2-upstream-usb
2019/05/05 04:48 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce d28f4ce5 .config console log report syz ci2-upstream-usb
2019/05/03 05:03 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce e9039493 .config console log report syz ci2-upstream-usb
2019/05/03 01:03 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce e9039493 .config console log report syz ci2-upstream-usb
2019/05/01 23:30 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 7516d9fa .config console log report syz ci2-upstream-usb
2019/05/01 04:16 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 618456b4 .config console log report syz ci2-upstream-usb
2019/04/30 21:07 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 618456b4 .config console log report syz ci2-upstream-usb
2019/04/30 19:38 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 618456b4 .config console log report syz ci2-upstream-usb
2019/04/30 05:26 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/29 12:08 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/28 21:27 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/28 20:34 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/28 09:38 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/28 09:18 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/26 16:08 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/25 23:31 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce f46aabc8 .config console log report syz ci2-upstream-usb
2019/04/25 18:36 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce f46aabc8 .config console log report syz ci2-upstream-usb
2019/04/25 14:10 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/25 11:45 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/25 10:51 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/25 10:08 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/25 06:26 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/25 04:50 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/25 02:14 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/24 12:33 https://github.com/google/kasan.git usb-fuzzer d34f9519daaa 8e3c52b1 .config console log report syz ci2-upstream-usb
2019/04/16 23:16 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/16 01:53 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/15 12:14 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/15 10:24 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/15 09:02 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/15 07:40 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/14 22:36 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/14 20:02 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/14 13:35 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/14 13:13 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
2019/04/13 10:05 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb c402d8f1 .config console log report syz ci2-upstream-usb
2019/04/12 10:01 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 8916f5e1 .config console log report syz ci2-upstream-usb
2019/05/10 14:59 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 46caad94 .config console log report ci2-upstream-usb
2019/05/03 06:27 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 1bfa09b9 .config console log report ci2-upstream-usb
2019/04/30 05:51 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce 20f16bef .config console log report ci2-upstream-usb
2019/04/23 14:08 https://github.com/google/kasan.git usb-fuzzer d34f9519daaa 2398edea .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.