syzbot


BUG: corrupted list in snd_info_create_entry

Status: closed as dup on 2019/04/16 14:06
Subsystems: sound usb
[Documentation on labels]
Reported-by: syzbot+8016c844427ade041774@syzkaller.appspotmail.com
First crash: 2046d, last: 2034d
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 2017d 2047d
Discussions (1)
Title Replies (including bot) Last reply
BUG: corrupted list in snd_info_create_entry 0 (1) 2019/04/16 11:26

Sample crash report:
usb 5-1: New USB device found, idVendor=0e41, idProduct=4151, bcdDevice=7a.8f
usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 5-1: config 0 descriptor??
list_add corruption. prev->next should be next (ffff88821bb59858), but was ffff88808cc635e8. (prev=ffff888214f01868).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:26!
invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 PID: 572 Comm: kworker/0:2 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_add_valid.cold+0x3a/0x3c lib/list_debug.c:26
Code: 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 60 94 b3 8e 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
RSP: 0018:ffff88809d237110 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88821bb59780 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815b2342 RDI: ffffed1013a46e14
RBP: ffff888081a24368 R08: 0000000000000075 R09: ffffed1015a04fc9
R10: ffffed1015a04fc8 R11: ffff8880ad027e47 R12: ffff88821bb59858
R13: ffff888214f01868 R14: ffff888081a24370 R15: ffff88821bb59858
FS:  0000000000000000(0000) GS:ffff8880ad000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa3c1952000 CR3: 000000008e27e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_add include/linux/list.h:60 [inline]
 list_add_tail include/linux/list.h:93 [inline]
 snd_info_create_entry+0x25f/0x400 sound/core/info.c:717
 snd_info_create_module_entry sound/core/info.c:737 [inline]
 create_subdir+0x27/0xa0 sound/core/info.c:454
 snd_info_card_create+0xcf/0x230 sound/core/info.c:528
 snd_card_new+0x61d/0x920 sound/core/init.c:255
 line6_probe+0x135/0x1150 sound/usb/line6/driver.c:736
 usb_probe_interface+0x31d/0x820 drivers/usb/core/driver.c:361
 really_probe+0x2da/0xb10 drivers/base/dd.c:509
 driver_probe_device+0x21d/0x350 drivers/base/dd.c:671
 __device_attach_driver+0x1d8/0x290 drivers/base/dd.c:778
 bus_for_each_drv+0x163/0x1e0 drivers/base/bus.c:454
 __device_attach+0x223/0x3a0 drivers/base/dd.c:844
 bus_probe_device+0x1f1/0x2a0 drivers/base/bus.c:514
 device_add+0xad2/0x16e0 drivers/base/core.c:2106
 usb_set_configuration+0xdf7/0x1740 drivers/usb/core/message.c:2023
 generic_probe+0xa2/0xda drivers/usb/core/generic.c:210
 usb_probe_device+0xc0/0x150 drivers/usb/core/driver.c:266
 really_probe+0x2da/0xb10 drivers/base/dd.c:509
 driver_probe_device+0x21d/0x350 drivers/base/dd.c:671
 __device_attach_driver+0x1d8/0x290 drivers/base/dd.c:778
 bus_for_each_drv+0x163/0x1e0 drivers/base/bus.c:454
 __device_attach+0x223/0x3a0 drivers/base/dd.c:844
 bus_probe_device+0x1f1/0x2a0 drivers/base/bus.c:514
 device_add+0xad2/0x16e0 drivers/base/core.c:2106
 usb_new_device.cold+0x537/0xccf drivers/usb/core/hub.c:2534
 hub_port_connect drivers/usb/core/hub.c:5089 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5204 [inline]
 port_event drivers/usb/core/hub.c:5350 [inline]
 hub_event+0x138e/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 1734ac075db0d934 ]---
RIP: 0010:__list_add_valid.cold+0x3a/0x3c lib/list_debug.c:26
Code: 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 60 94 b3 8e 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
RSP: 0018:ffff88809d237110 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88821bb59780 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815b2342 RDI: ffffed1013a46e14
RBP: ffff888081a24368 R08: 0000000000000075 R09: ffffed1015a04fc9
R10: ffffed1015a04fc8 R11: ffff8880ad027e47 R12: ffff88821bb59858
R13: ffff888214f01868 R14: ffff888081a24370 R15: ffff88821bb59858
FS:  0000000000000000(0000) GS:ffff8880ad000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa3c1952000 CR3: 000000008e27e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/28 16:50 https://github.com/google/kasan.git usb-fuzzer 43151d6c3fce b617407b .config console log report syz ci2-upstream-usb
2019/04/15 19:11 https://github.com/google/kasan.git usb-fuzzer 9a33b36996cb 505ab413 .config console log report syz ci2-upstream-usb
* Struck through repros no longer work on HEAD.