netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 ================================================================== BUG: KASAN: slab-out-of-bounds in crc_itu_t+0x1ad/0x280 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88802415b0a8 by task syz-executor.0/4510 CPU: 1 PID: 4510 Comm: syz-executor.0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 crc_itu_t+0x1ad/0x280 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2057 [inline] udf_sync_fs+0x194/0x350 fs/udf/super.c:2413 sync_filesystem+0xe6/0x220 fs/sync.c:56 generic_shutdown_super+0x6b/0x300 fs/super.c:448 kill_block_super+0x7c/0xe0 fs/super.c:1427 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x418/0x4d0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f47ba6fbe57 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffc6879dd88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f47ba6fbe57 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffc6879de40 RBP: 00007ffc6879de40 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc6879ef00 R13: 00007f47ba7453b9 R14: 00000000000135ad R15: 0000000000000006 Allocated by task 4510: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 kmem_cache_zalloc include/linux/slab.h:728 [inline] __kernfs_new_node+0xd6/0x680 fs/kernfs/dir.c:593 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:669 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x2d4/0x3a0 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x489/0xcf0 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:215 device_add_groups drivers/base/core.c:2491 [inline] device_add_attrs+0x137/0x6a0 drivers/base/core.c:2650 device_add+0x64b/0xfb0 drivers/base/core.c:3363 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2014 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:317 [inline] nsim_create+0x32d/0x3e0 drivers/net/netdevsim/netdev.c:365 __nsim_dev_port_add+0x5c7/0x980 drivers/net/netdevsim/dev.c:1312 nsim_dev_port_add_all+0x37/0x100 drivers/net/netdevsim/dev.c:1372 nsim_dev_probe+0x754/0x9c0 drivers/net/netdevsim/dev.c:1513 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x284/0xc80 drivers/base/dd.c:595 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:755 driver_probe_device+0x4f/0x420 drivers/base/dd.c:785 __device_attach_driver+0x2b0/0x500 drivers/base/dd.c:907 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:429 __device_attach+0x29b/0x460 drivers/base/dd.c:979 bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489 device_add+0xa00/0xfb0 drivers/base/core.c:3412 nsim_bus_dev_new drivers/net/netdevsim/bus.c:435 [inline] new_device_store+0x3d8/0x740 drivers/net/netdevsim/bus.c:302 kernfs_fop_write_iter+0x379/0x4c0 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2173 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x712/0xd00 fs/read_write.c:594 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88802415b000 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 0 bytes to the right of 168-byte region [ffff88802415b000, ffff88802415b0a8) The buggy address belongs to the page: page:ffffea00009056c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2415b flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff8880169e9b40 raw: 0000000000000000 0000000000110011 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 4510, ts 78312989366, free_ts 78297479460 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3238 kmem_cache_zalloc include/linux/slab.h:728 [inline] __kernfs_new_node+0xd6/0x680 fs/kernfs/dir.c:593 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:669 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x2d4/0x3a0 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x489/0xcf0 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:215 device_add_groups drivers/base/core.c:2491 [inline] device_add_attrs+0x137/0x6a0 drivers/base/core.c:2650 device_add+0x64b/0xfb0 drivers/base/core.c:3363 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2014 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:317 [inline] nsim_create+0x32d/0x3e0 drivers/net/netdevsim/netdev.c:365 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x164/0x2e0 mm/mmu_gather.c:338 exit_mmap+0x3a6/0x5f0 mm/mmap.c:3218 __mmput+0x115/0x3b0 kernel/fork.c:1127 exit_mm+0x567/0x6c0 kernel/exit.c:550 do_exit+0x5a1/0x20a0 kernel/exit.c:870 do_group_exit+0x12e/0x300 kernel/exit.c:997 __do_sys_exit_group kernel/exit.c:1008 [inline] __se_sys_exit_group kernel/exit.c:1006 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1006 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88802415af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802415b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802415b080: 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 ^ ffff88802415b100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802415b180: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ==================================================================