================================================================== BUG: KASAN: global-out-of-bounds in kernfs_root+0x132/0x230 fs/kernfs/kernfs-internal.h:79 Read of size 8 at addr ffffffff8f669358 by task syz.3.2219/14407 CPU: 0 UID: 0 PID: 14407 Comm: syz.3.2219 Not tainted 6.16.0-rc6-next-20250717-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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/0x230 mm/kasan/report.c:480 kasan_report+0x118/0x150 mm/kasan/report.c:593 kernfs_root+0x132/0x230 fs/kernfs/kernfs-internal.h:79 kernfs_remove_by_name_ns+0x2b/0x130 fs/kernfs/dir.c:1711 remove_bind_files drivers/base/bus.c:605 [inline] bus_remove_driver+0x198/0x2f0 drivers/base/bus.c:743 comedi_device_detach+0x134/0x720 drivers/comedi/drivers.c:207 do_devconfig_ioctl drivers/comedi/comedi_fops.c:833 [inline] comedi_unlocked_ioctl+0xbd2/0xfc0 drivers/comedi/comedi_fops.c:2156 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xf9/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:0x7fc0e0b8e929 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:00007fc0e19f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc0e0db5fa0 RCX: 00007fc0e0b8e929 RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000003 RBP: 00007fc0e0c10ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc0e0db5fa0 R15: 00007ffe6a12b0b8 The buggy address belongs to the variable: initial_table+0x78/0xa0 ebtable_broute.c:-1 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xf669 flags: 0xfff00000002000(reserved|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000002000 ffffea00003d9a48 ffffea00003d9a48 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: ffffffff8f669200: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff8f669280: 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 >ffffffff8f669300: 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 ^ ffffffff8f669380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff8f669400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================