EXT4-fs: Ignoring removed nobh option
EXT4-fs: Ignoring removed bh option
EXT4-fs (loop4): can't mount with data_err=abort, fs mounted w/o journal
==================================================================
BUG: KASAN: slab-use-after-free in sysfs_remove_file_ns+0x3d/0x70
Read of size 8 at addr ffff888106df6230 by task syz.4.2104/24726

CPU: 0 UID: 0 PID: 24726 Comm: syz.4.2104 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 sysfs_remove_file_ns+0x3d/0x70
 bus_remove_driver+0x198/0x2f0
 comedi_device_detach_locked+0x178/0x750
 comedi_unlocked_ioctl+0xcde/0x1020
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ffaab38ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffaac1f2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffaab5b5fa0 RCX: 00007ffaab38ebe9
RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000005
RBP: 00007ffaab411e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffaab5b6038 R14: 00007ffaab5b5fa0 R15: 00007ffdf7ba4708
 </TASK>

Allocated by task 24599:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x27a/0x4f0
 vb2_core_reqbufs+0x904/0x1420
 __vb2_init_fileio+0x318/0xff0
 vb2_core_poll+0x4c1/0x840
 vb2_fop_poll+0x168/0x380
 v4l2_poll+0x147/0x2c0
 __io_arm_poll_handler+0x372/0xbb0
 io_poll_add+0xcd/0x1f0
 __io_issue_sqe+0x181/0x4b0
 io_issue_sqe+0x165/0xfd0
 io_submit_sqes+0xa13/0x1d10
 __se_sys_io_uring_enter+0x2df/0x2b20
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 24599:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 vb2_core_reqbufs+0xd52/0x1420
 __vb2_init_fileio+0x318/0xff0
 vb2_core_poll+0x4c1/0x840
 vb2_fop_poll+0x168/0x380
 v4l2_poll+0x147/0x2c0
 __io_arm_poll_handler+0x372/0xbb0
 io_poll_add+0xcd/0x1f0
 __io_issue_sqe+0x181/0x4b0
 io_issue_sqe+0x165/0xfd0
 io_submit_sqes+0xa13/0x1d10
 __se_sys_io_uring_enter+0x2df/0x2b20
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888106df6200
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 48 bytes inside of
 freed 256-byte region [ffff888106df6200, ffff888106df6300)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106df6
head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff88801a441b40 ffffea0004446680 dead000000000004
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff88801a441b40 ffffea0004446680 dead000000000004
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000001 ffffea00041b7d81 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 12500115582, free_ts 5937674316
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x370
 ___slab_alloc+0xbeb/0x1410
 __kmalloc_cache_noprof+0x296/0x3d0
 usb_string+0x111/0x770
 usb_cache_string+0x80/0x140
 usb_new_device+0x2fe/0x16f0
 register_root_hub+0x275/0x590
 usb_add_hcd+0xba1/0x1050
 vhci_hcd_probe+0x1c1/0x380
 platform_probe+0xf9/0x190
 really_probe+0x26d/0x9e0
 __driver_probe_device+0x18c/0x2f0
page last free pid 10 tgid 10 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 vfree+0x25a/0x400
 delayed_vfree_work+0x55/0x80
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff888106df6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888106df6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888106df6200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                     ^
 ffff888106df6280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888106df6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
