dvb-usb: schedule remote query interval to 150 msecs. dw2102: su3000_power_ctrl: 0, initialized 1 dvb-usb: TeVii S632 USB successfully initialized and connected. usb 5-1: USB disconnect, device number 32 ================================================================== BUG: KASAN: use-after-free in dvb_usb_device_exit+0x274/0x280 drivers/media/usb/dvb-usb/dvb-usb-init.c:305 Read of size 8 at addr ffff8881357ba3e0 by task kworker/1:1/32 CPU: 1 PID: 32 Comm: kworker/1:1 Not tainted 5.12.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:79 [inline] dump_stack+0x143/0x1db lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436 dvb_usb_device_exit+0x274/0x280 drivers/media/usb/dvb-usb/dvb-usb-init.c:305 usb_unbind_interface+0x1d8/0x8d0 drivers/usb/core/driver.c:458 __device_release_driver+0x3bd/0x6f0 drivers/base/dd.c:1181 device_release_driver_internal drivers/base/dd.c:1212 [inline] device_release_driver+0x26/0x40 drivers/base/dd.c:1235 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:533 device_del+0x502/0xd40 drivers/base/core.c:3507 usb_disable_device+0x35b/0x7b0 drivers/usb/core/message.c:1413 usb_disconnect.cold+0x27d/0x791 drivers/usb/core/hub.c:2219 hub_port_connect drivers/usb/core/hub.c:5127 [inline] hub_port_connect_change drivers/usb/core/hub.c:5416 [inline] port_event drivers/usb/core/hub.c:5562 [inline] hub_event+0x1c9c/0x4320 drivers/usb/core/hub.c:5644 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275 process_scheduled_works kernel/workqueue.c:2337 [inline] worker_thread+0x82b/0x1120 kernel/workqueue.c:2423 kthread+0x38c/0x460 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 2642: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] ____kasan_kmalloc mm/kasan/common.c:506 [inline] __kasan_kmalloc+0x7a/0x90 mm/kasan/common.c:515 kmalloc include/linux/slab.h:554 [inline] kzalloc include/linux/slab.h:684 [inline] kernfs_iop_get_link fs/kernfs/symlink.c:135 [inline] kernfs_iop_get_link+0x61/0x6e0 fs/kernfs/symlink.c:126 vfs_readlink+0x1d7/0x390 fs/namei.c:4808 do_readlinkat+0x27e/0x2f0 fs/stat.c:429 __do_sys_readlinkat fs/stat.c:444 [inline] __se_sys_readlinkat fs/stat.c:441 [inline] __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:441 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Freed by task 32: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357 ____kasan_slab_free mm/kasan/common.c:360 [inline] ____kasan_slab_free mm/kasan/common.c:325 [inline] __kasan_slab_free+0xda/0x110 mm/kasan/common.c:367 kasan_slab_free include/linux/kasan.h:199 [inline] slab_free_hook mm/slub.c:1562 [inline] slab_free_freelist_hook+0x6b/0x160 mm/slub.c:1600 slab_free mm/slub.c:3161 [inline] kfree+0xdb/0x3b0 mm/slub.c:4213 dw2102_probe+0x782/0xb10 drivers/media/usb/dvb-usb/dw2102.c:2470 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396 really_probe+0x291/0xf60 drivers/base/dd.c:576 driver_probe_device+0x298/0x410 drivers/base/dd.c:763 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4b0 drivers/base/dd.c:938 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbe0/0x2100 drivers/base/core.c:3319 usb_set_configuration+0x113f/0x1910 drivers/usb/core/message.c:2164 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293 really_probe+0x291/0xf60 drivers/base/dd.c:576 driver_probe_device+0x298/0x410 drivers/base/dd.c:763 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4b0 drivers/base/dd.c:938 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbe0/0x2100 drivers/base/core.c:3319 usb_new_device.cold+0x721/0x1058 drivers/usb/core/hub.c:2556 hub_port_connect drivers/usb/core/hub.c:5276 [inline] hub_port_connect_change drivers/usb/core/hub.c:5416 [inline] port_event drivers/usb/core/hub.c:5562 [inline] hub_event+0x2357/0x4320 drivers/usb/core/hub.c:5644 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275 process_scheduled_works kernel/workqueue.c:2337 [inline] worker_thread+0x82b/0x1120 kernel/workqueue.c:2423 kthread+0x38c/0x460 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff8881357ba000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 992 bytes inside of 4096-byte region [ffff8881357ba000, ffff8881357bb000) The buggy address belongs to the page: page:ffffea0004d5ee00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1357b8 head:ffffea0004d5ee00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x200000000010200(slab|head) raw: 0200000000010200 0000000000000000 0000000100000001 ffff888100042140 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881357ba280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881357ba300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881357ba380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881357ba400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881357ba480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================