em28xx 1-1:0.130: Audio interface 130 found (Vendor Class) em28xx 1-1:0.130: unknown em28xx chip ID (0) em28xx 1-1:0.130: Config register raw data: 0xfffffffb em28xx 1-1:0.130: AC97 chip type couldn't be determined em28xx 1-1:0.130: No AC97 audio processor ================================================================== BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 lib/list_debug.c:26 Read of size 8 at addr ffff8881cd9ac240 by task kworker/1:2/94 CPU: 1 PID: 94 Comm: kworker/1:2 Not tainted 5.5.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.cold+0xd3/0x314 mm/kasan/report.c:374 __kasan_report.cold+0x37/0x77 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:641 __list_add_valid+0x93/0xa0 lib/list_debug.c:26 __list_add include/linux/list.h:67 [inline] list_add_tail include/linux/list.h:100 [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+0x310/0x800 drivers/usb/core/driver.c:361 really_probe+0x290/0xac0 drivers/base/dd.c:551 driver_probe_device+0x223/0x350 drivers/base/dd.c:724 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:831 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x217/0x390 drivers/base/dd.c:897 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0x1459/0x1bf0 drivers/base/core.c:2487 usb_set_configuration+0xe47/0x17d0 drivers/usb/core/message.c:2023 generic_probe+0x9d/0xd5 drivers/usb/core/generic.c:210 usb_probe_device+0xaf/0x140 drivers/usb/core/driver.c:266 really_probe+0x290/0xac0 drivers/base/dd.c:551 driver_probe_device+0x223/0x350 drivers/base/dd.c:724 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:831 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x217/0x390 drivers/base/dd.c:897 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0x1459/0x1bf0 drivers/base/core.c:2487 usb_new_device.cold+0x540/0xcd0 drivers/usb/core/hub.c:2538 hub_port_connect drivers/usb/core/hub.c:5185 [inline] hub_port_connect_change drivers/usb/core/hub.c:5325 [inline] port_event drivers/usb/core/hub.c:5471 [inline] hub_event+0x21cb/0x4300 drivers/usb/core/hub.c:5553 process_one_work+0x94b/0x1620 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 239: save_stack+0x1b/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:488 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2778 [inline] slab_alloc mm/slub.c:2786 [inline] kmem_cache_alloc+0xd8/0x300 mm/slub.c:2791 shmem_alloc_inode+0x18/0x40 mm/shmem.c:3739 alloc_inode+0x61/0x1e0 fs/inode.c:231 new_inode_pseudo+0x14/0xe0 fs/inode.c:927 new_inode+0x1b/0x40 fs/inode.c:956 shmem_get_inode+0x84/0x7e0 mm/shmem.c:2249 shmem_mknod+0x5a/0x1f0 mm/shmem.c:2885 lookup_open+0x11b1/0x1910 fs/namei.c:3309 do_last fs/namei.c:3401 [inline] path_openat+0xe87/0x32a0 fs/namei.c:3607 do_filp_open+0x192/0x260 fs/namei.c:3637 do_sys_openat2+0x54c/0x740 fs/open.c:1149 do_sys_open+0xc3/0x140 fs/open.c:1165 do_syscall_64+0xb6/0x5a0 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:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0x117/0x160 mm/kasan/common.c:476 slab_free_hook mm/slub.c:1444 [inline] slab_free_freelist_hook mm/slub.c:1477 [inline] slab_free mm/slub.c:3024 [inline] kmem_cache_free+0x9b/0x360 mm/slub.c:3040 i_callback+0x3f/0x70 fs/inode.c:220 rcu_do_batch kernel/rcu/tree.c:2186 [inline] rcu_core+0x5ae/0x1b00 kernel/rcu/tree.c:2410 __do_softirq+0x21e/0x950 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881cd9ac000 which belongs to the cache shmem_inode_cache of size 1184 The buggy address is located 576 bytes inside of 1184-byte region [ffff8881cd9ac000, ffff8881cd9ac4a0) The buggy address belongs to the page: page:ffffea0007366b00 refcount:1 mapcount:0 mapping:ffff8881da11d180 index:0x0 compound_mapcount: 0 flags: 0x200000000010200(slab|head) raw: 0200000000010200 dead000000000100 dead000000000122 ffff8881da11d180 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881cd9ac100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881cd9ac180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881cd9ac200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881cd9ac280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881cd9ac300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================