em28xx 1-1:128.97: Audio interface 97 found (Vendor Class) em28xx 1-1:128.97: unknown em28xx chip ID (0) em28xx 1-1:128.97: Config register raw data: 0xfffffffb em28xx 1-1:128.97: AC97 chip type couldn't be determined em28xx 1-1:128.97: No AC97 audio processor ================================================================== BUG: KASAN: use-after-free in __list_add_valid+0xd8/0xf0 lib/list_debug.c:26 Read of size 8 at addr ffff8881d0b70240 by task kworker/1:2/101 CPU: 1 PID: 101 Comm: kworker/1:2 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xef/0x16e lib/dump_stack.c:118 print_address_description.constprop.0+0x36/0x50 mm/kasan/report.c:374 __kasan_report.cold+0x1a/0x33 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:638 __list_add_valid+0xd8/0xf0 lib/list_debug.c:26 __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] em28xx_init_extension+0x44/0x1f0 drivers/media/usb/em28xx/em28xx-core.c:1125 em28xx_init_dev.isra.0+0xa7b/0x15d8 drivers/media/usb/em28xx/em28xx-cards.c:3540 em28xx_usb_probe.cold+0xcac/0x2515 drivers/media/usb/em28xx/em28xx-cards.c:3889 usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:361 really_probe+0x281/0x6d0 drivers/base/dd.c:548 driver_probe_device+0x104/0x210 drivers/base/dd.c:721 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:828 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:430 __device_attach+0x217/0x360 drivers/base/dd.c:894 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:490 device_add+0x1480/0x1c20 drivers/base/core.c:2487 usb_set_configuration+0xe67/0x1740 drivers/usb/core/message.c:2023 generic_probe+0x9d/0xd5 drivers/usb/core/generic.c:210 usb_probe_device+0x99/0x100 drivers/usb/core/driver.c:266 really_probe+0x281/0x6d0 drivers/base/dd.c:548 driver_probe_device+0x104/0x210 drivers/base/dd.c:721 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:828 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:430 __device_attach+0x217/0x360 drivers/base/dd.c:894 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:490 device_add+0x1480/0x1c20 drivers/base/core.c:2487 usb_new_device.cold+0x6a4/0xe79 drivers/usb/core/hub.c:2537 hub_port_connect drivers/usb/core/hub.c:5184 [inline] hub_port_connect_change drivers/usb/core/hub.c:5324 [inline] port_event drivers/usb/core/hub.c:5470 [inline] hub_event+0x1e59/0x3860 drivers/usb/core/hub.c:5552 process_one_work+0x92b/0x1530 kernel/workqueue.c:2264 process_scheduled_works kernel/workqueue.c:2326 [inline] worker_thread+0x7ab/0xe20 kernel/workqueue.c:2412 kthread+0x318/0x420 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 238: save_stack+0x1b/0x80 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:485 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2759 [inline] slab_alloc mm/slub.c:2767 [inline] kmem_cache_alloc+0xd8/0x2e0 mm/slub.c:2772 shmem_alloc_inode+0x18/0x40 mm/shmem.c:3738 alloc_inode+0x61/0x1e0 fs/inode.c:230 new_inode_pseudo+0x14/0xe0 fs/inode.c:919 new_inode+0x1b/0x40 fs/inode.c:948 shmem_get_inode+0x84/0x7e0 mm/shmem.c:2248 shmem_mknod+0x5a/0x1f0 mm/shmem.c:2884 lookup_open+0x11b1/0x1910 fs/namei.c:3228 do_last fs/namei.c:3318 [inline] path_openat+0x1040/0x4030 fs/namei.c:3529 do_filp_open+0x1a1/0x280 fs/namei.c:3559 do_sys_open+0x3c0/0x580 fs/open.c:1097 do_syscall_64+0xb7/0x5b0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: save_stack+0x1b/0x80 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] kasan_set_free_info mm/kasan/common.c:334 [inline] __kasan_slab_free+0x130/0x180 mm/kasan/common.c:473 slab_free_hook mm/slub.c:1425 [inline] slab_free_freelist_hook mm/slub.c:1458 [inline] slab_free mm/slub.c:3005 [inline] kmem_cache_free+0xb9/0x370 mm/slub.c:3021 i_callback+0x3f/0x70 fs/inode.c:219 __rcu_reclaim kernel/rcu/rcu.h:222 [inline] rcu_do_batch kernel/rcu/tree.c:2183 [inline] rcu_core+0x62b/0x1ce0 kernel/rcu/tree.c:2408 __do_softirq+0x221/0x912 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881d0b70000 which belongs to the cache shmem_inode_cache of size 1184 The buggy address is located 576 bytes inside of 1184-byte region [ffff8881d0b70000, ffff8881d0b704a0) The buggy address belongs to the page: page:ffffea000742dc00 refcount:1 mapcount:0 mapping:ffff8881da51d180 index:0x0 compound_mapcount: 0 raw: 0200000000010200 dead000000000100 dead000000000122 ffff8881da51d180 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d0b70100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d0b70180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881d0b70200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d0b70280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d0b70300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================