================================================================== BUG: KASAN: slab-out-of-bounds in crc_itu_t+0x21c/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88801f0880a8 by task syz-executor313/5027 CPU: 0 PID: 5027 Comm: syz-executor313 Not tainted 6.6.0-rc4-syzkaller-00012-gce36c8b14987 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 crc_itu_t+0x21c/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:1984 [inline] udf_sync_fs+0x1d2/0x380 fs/udf/super.c:2340 sync_filesystem+0xec/0x220 fs/sync.c:56 generic_shutdown_super+0x72/0x2c0 fs/super.c:666 kill_block_super+0x41/0x70 fs/super.c:1646 deactivate_locked_super+0xa4/0x110 fs/super.c:481 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1254 task_work_run+0x24a/0x300 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3fbb4e2847 Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe38344718 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3fbb4e2847 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffe383447d0 RBP: 00007ffe383447d0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffe38345840 R13: 00005555557dc6c0 R14: 431bde82d7b634db R15: 00007ffe38345860 Allocated by task 1: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x67/0x3d0 mm/slab.h:762 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x123/0x300 mm/slub.c:3502 kmem_cache_zalloc include/linux/slab.h:710 [inline] __kernfs_new_node+0xd8/0x870 fs/kernfs/dir.c:615 kernfs_new_node+0x99/0x170 fs/kernfs/dir.c:679 kernfs_create_link+0xa5/0x1f0 fs/kernfs/symlink.c:39 sysfs_do_create_link_sd+0x85/0x100 fs/sysfs/symlink.c:44 device_add_class_symlinks+0x143/0x250 drivers/base/core.c:3376 device_add+0x5c6/0xd30 drivers/base/core.c:3575 netdev_register_kobject+0x17a/0x310 net/core/net-sysfs.c:2044 register_netdevice+0xcd6/0x1510 net/core/dev.c:10136 ieee802154_if_add+0xbc9/0x1150 net/mac802154/iface.c:667 ieee802154_register_hw+0x636/0x8d0 net/mac802154/main.c:245 hwsim_add_one+0x489/0x11c0 drivers/net/ieee802154/mac802154_hwsim.c:965 hwsim_probe+0x4a/0x110 drivers/net/ieee802154/mac802154_hwsim.c:1022 platform_probe+0x135/0x1b0 drivers/base/platform.c:1404 really_probe+0x294/0xc30 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:800 driver_probe_device+0x50/0x420 drivers/base/dd.c:830 __driver_attach+0x45c/0x710 drivers/base/dd.c:1216 bus_for_each_dev+0x236/0x2b0 drivers/base/bus.c:368 bus_add_driver+0x343/0x620 drivers/base/bus.c:673 driver_register+0x23a/0x320 drivers/base/driver.c:246 hwsim_init_module+0x12e/0x1d0 drivers/net/ieee802154/mac802154_hwsim.c:1073 do_one_initcall+0x23d/0x7d0 init/main.c:1232 do_initcall_level+0x157/0x210 init/main.c:1294 do_initcalls+0x3f/0x80 init/main.c:1310 kernel_init_freeable+0x429/0x5c0 init/main.c:1547 kernel_init+0x1d/0x2a0 init/main.c:1437 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 The buggy address belongs to the object at ffff88801f088000 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 0 bytes to the right of allocated 168-byte region [ffff88801f088000, ffff88801f0880a8) The buggy address belongs to the physical page: page:ffffea00007c2200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1f088 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888015a6d000 dead000000000122 0000000000000000 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 10542029718, free_ts 10539250034 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170 __alloc_pages+0x255/0x670 mm/page_alloc.c:4426 alloc_page_interleave+0x22/0x1d0 mm/mempolicy.c:2130 alloc_slab_page+0x6a/0x160 mm/slub.c:1870 allocate_slab mm/slub.c:2017 [inline] new_slab+0x84/0x2f0 mm/slub.c:2070 ___slab_alloc+0xc85/0x1310 mm/slub.c:3223 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x1bf/0x300 mm/slub.c:3502 kmem_cache_zalloc include/linux/slab.h:710 [inline] __kernfs_new_node+0xd8/0x870 fs/kernfs/dir.c:615 kernfs_new_node+0x99/0x170 fs/kernfs/dir.c:679 kernfs_create_link+0xa5/0x1f0 fs/kernfs/symlink.c:39 sysfs_do_create_link_sd+0x85/0x100 fs/sysfs/symlink.c:44 device_add_class_symlinks+0x143/0x250 drivers/base/core.c:3376 device_add+0x5c6/0xd30 drivers/base/core.c:3575 netdev_register_kobject+0x17a/0x310 net/core/net-sysfs.c:2044 register_netdevice+0xcd6/0x1510 net/core/dev.c:10136 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x8c3/0x9f0 mm/page_alloc.c:2312 free_unref_page_list+0x596/0x830 mm/page_alloc.c:2451 release_pages+0x2113/0x23f0 mm/swap.c:1042 tlb_batch_pages_flush mm/mmu_gather.c:98 [inline] tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu+0x34c/0x4e0 mm/mmu_gather.c:300 tlb_finish_mmu+0xd4/0x1f0 mm/mmu_gather.c:392 exit_mmap+0x4d3/0xc50 mm/mmap.c:3223 __mmput+0x115/0x3c0 kernel/fork.c:1349 free_bprm+0x144/0x330 fs/exec.c:1492 kernel_execve+0x8f5/0xa10 fs/exec.c:2026 call_usermodehelper_exec_async+0x233/0x370 kernel/umh.c:110 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Memory state around the buggy address: ffff88801f087f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801f088000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801f088080: 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 ^ ffff88801f088100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801f088180: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ==================================================================