================================================================== BUG: KASAN: global-out-of-bounds in kernfs_root+0xda/0x230 fs/kernfs/kernfs-internal.h:76 Read of size 8 at addr ffffffff8b0b0af0 by task syz.2.460/8416 CPU: 1 UID: 0 PID: 8416 Comm: syz.2.460 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 kernfs_root+0xda/0x230 fs/kernfs/kernfs-internal.h:76 kernfs_remove_by_name_ns+0x2b/0x130 fs/kernfs/dir.c:1711 remove_bind_files drivers/base/bus.c:605 [inline] bus_remove_driver+0x19b/0x300 drivers/base/bus.c:743 comedi_device_detach_locked+0x175/0x750 drivers/comedi/drivers.c:207 do_devconfig_ioctl drivers/comedi/comedi_fops.c:848 [inline] comedi_unlocked_ioctl+0xce4/0x1020 drivers/comedi/comedi_fops.c:2178 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5afa81eec9 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:00007f5af8a86038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5afaa75fa0 RCX: 00007f5afa81eec9 RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000006 RBP: 00007f5afa8a1f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5afaa76038 R14: 00007f5afaa75fa0 R15: 00007fff30fc07f8 The buggy address belongs to the variable: .str.8+0x30/0x40 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb0b0 flags: 0x80000000002000(reserved|node=0|zone=1) raw: 0080000000002000 ffffea00002c2c08 ffffea00002c2c08 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffffff8b0b0980: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 07 f9 f9 f9 ffffffff8b0b0a00: 00 00 05 f9 f9 f9 f9 f9 00 07 f9 f9 00 00 00 00 >ffffffff8b0b0a80: 00 00 00 f9 f9 f9 f9 f9 00 00 01 f9 f9 f9 f9 f9 ^ ffffffff8b0b0b00: 00 00 00 00 f9 f9 f9 f9 00 00 00 03 f9 f9 f9 f9 ffffffff8b0b0b80: 00 00 00 00 f9 f9 f9 f9 00 00 06 f9 f9 f9 f9 f9 ==================================================================