================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x6a7/0x7a0 fs/udf/inode.c:2104 Write of size 4 at addr ffff888061251bf8 by task syz.4.29/3729 CPU: 1 PID: 3729 Comm: syz.4.29 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 udf_write_aext+0x6a7/0x7a0 fs/udf/inode.c:2104 udf_add_entry+0x17b7/0x3350 fs/udf/namei.c:482 udf_mkdir+0x1a8/0xaa0 fs/udf/namei.c:681 vfs_mkdir+0x3b6/0x590 fs/namei.c:4065 do_mkdirat+0x260/0x520 fs/namei.c:4090 __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4103 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f7665876ff9 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:00007f7663cef038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f7665a2ef80 RCX: 00007f7665876ff9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000006 RBP: 00007f76658e9296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7665a2ef80 R15: 00007ffea0379c58 Allocated by task 1078: 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_kmalloc+0xba/0xf0 mm/kasan/common.c:513 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc_node_track_caller+0x195/0x390 mm/slub.c:4963 kmalloc_reserve net/core/skbuff.c:356 [inline] __alloc_skb+0x12c/0x590 net/core/skbuff.c:427 alloc_skb include/linux/skbuff.h:1167 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_ifa_notify net/ipv6/addrconf.c:5519 [inline] __ipv6_ifa_notify+0x2db/0x11d0 net/ipv6/addrconf.c:6162 ipv6_ifa_notify net/ipv6/addrconf.c:6214 [inline] addrconf_dad_completed+0x18a/0xc40 net/ipv6/addrconf.c:4239 addrconf_dad_work+0xdd0/0x1720 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888061251800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 504 bytes to the right of 512-byte region [ffff888061251800, ffff888061251a00) The buggy address belongs to the page: page:ffffea0001849400 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888061253800 pfn:0x61250 head:ffffea0001849400 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001849200 0000000200000002 ffff888017041c80 raw: ffff888061253800 000000008010000f 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1078, ts 59904326921, free_ts 59863858585 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] __kmalloc_node_track_caller+0x1f6/0x390 mm/slub.c:4958 kmalloc_reserve net/core/skbuff.c:356 [inline] __alloc_skb+0x12c/0x590 net/core/skbuff.c:427 alloc_skb include/linux/skbuff.h:1167 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_ifa_notify net/ipv6/addrconf.c:5519 [inline] __ipv6_ifa_notify+0x2db/0x11d0 net/ipv6/addrconf.c:6162 ipv6_ifa_notify net/ipv6/addrconf.c:6214 [inline] addrconf_dad_completed+0x18a/0xc40 net/ipv6/addrconf.c:4239 addrconf_dad_work+0xdd0/0x1720 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 stack_depot_save+0x3ef/0x440 lib/stackdepot.c:335 kasan_save_stack mm/kasan/common.c:40 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0xa5/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x53/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] lsm_inode_alloc security/security.c:595 [inline] security_inode_alloc+0x24/0x110 security/security.c:1033 inode_init_always+0x939/0xc70 fs/inode.c:207 alloc_inode fs/inode.c:243 [inline] new_inode_pseudo+0x8f/0x210 fs/inode.c:972 new_inode+0x25/0x1d0 fs/inode.c:1001 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0x147/0x500 fs/debugfs/inode.c:409 debugfs_hw_add+0x343/0x430 net/mac80211/debugfs.c:682 ieee80211_register_hw+0x29a6/0x39d0 net/mac80211/main.c:1310 mac80211_hwsim_new_radio+0x223d/0x4200 drivers/net/wireless/mac80211_hwsim.c:3374 hwsim_new_radio_nl+0xbae/0x1090 drivers/net/wireless/mac80211_hwsim.c:3950 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline] genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] genl_rcv_msg+0xfbd/0x14a0 net/netlink/genetlink.c:792 Memory state around the buggy address: ffff888061251a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061251b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888061251b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888061251c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888061251c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================