================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x62d/0x7e0 fs/udf/inode.c:2088 Write of size 4 at addr ffff888085766ff0 by task syz-executor.5/2619 CPU: 1 PID: 2619 Comm: syz-executor.5 Not tainted 6.2.0-rc5-syzkaller-00199-g5af6ce704936 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x220 mm/kasan/report.c:417 kasan_report+0x139/0x170 mm/kasan/report.c:517 udf_write_aext+0x62d/0x7e0 fs/udf/inode.c:2088 udf_add_entry+0x199b/0x3320 fs/udf/namei.c:482 udf_mkdir+0x180/0xa00 fs/udf/namei.c:681 vfs_mkdir+0x3b3/0x590 fs/namei.c:4036 do_mkdirat+0x26b/0x540 fs/namei.c:4061 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4074 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5ccda8c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5cce84f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f5ccdbac050 RCX: 00007f5ccda8c0c9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: ffffffffffffff9c RBP: 00007f5ccdae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdb5f29ccf R14: 00007f5cce84f300 R15: 0000000000022000 Allocated by task 2610: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc_node_track_caller+0xad/0x190 mm/slab_common.c:988 kmalloc_reserve net/core/skbuff.c:492 [inline] __alloc_skb+0x12c/0x2c0 net/core/skbuff.c:565 skb_copy+0xe8/0x750 net/core/skbuff.c:1779 mac80211_hwsim_tx_frame_no_nl+0x11b1/0x1b00 drivers/net/wireless/mac80211_hwsim.c:1724 mac80211_hwsim_tx_frame+0x1cb/0x220 drivers/net/wireless/mac80211_hwsim.c:2053 mac80211_hwsim_beacon_tx+0x5e1/0xa60 drivers/net/wireless/mac80211_hwsim.c:2116 __iterate_interfaces+0x231/0x4a0 net/mac80211/util.c:763 ieee80211_iterate_active_interfaces_atomic+0x9b/0x120 net/mac80211/util.c:799 mac80211_hwsim_beacon+0xc8/0x1d0 drivers/net/wireless/mac80211_hwsim.c:2142 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x1a1/0x580 kernel/time/hrtimer.c:1766 __do_softirq+0x277/0x75b kernel/softirq.c:571 Freed by task 19322: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:518 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1807 slab_free mm/slub.c:3787 [inline] __kmem_cache_free+0x71/0x110 mm/slub.c:3800 skb_free_head net/core/skbuff.c:822 [inline] skb_release_data+0x4f6/0x710 net/core/skbuff.c:851 skb_release_all net/core/skbuff.c:916 [inline] __kfree_skb net/core/skbuff.c:930 [inline] kfree_skb_reason+0xfa/0x2c0 net/core/skbuff.c:956 kfree_skb include/linux/skbuff.h:1218 [inline] ieee80211_iface_work+0x26a/0xcf0 net/mac80211/iface.c:1639 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:488 insert_work+0x54/0x3e0 kernel/workqueue.c:1358 __queue_work+0xaaa/0xd60 kernel/workqueue.c:1517 call_timer_fn+0xf5/0x210 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1746 [inline] __run_timers+0x7a2/0x990 kernel/time/timer.c:2022 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2035 __do_softirq+0x277/0x75b kernel/softirq.c:571 Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:488 insert_work+0x54/0x3e0 kernel/workqueue.c:1358 __queue_work+0xaaa/0xd60 kernel/workqueue.c:1517 call_timer_fn+0xf5/0x210 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1746 [inline] __run_timers+0x7a2/0x990 kernel/time/timer.c:2022 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:2035 __do_softirq+0x277/0x75b kernel/softirq.c:571 The buggy address belongs to the object at ffff888085766c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 496 bytes to the right of 512-byte region [ffff888085766c00, ffff888085766e00) The buggy address belongs to the physical page: page:ffffea000215d900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x85764 head:ffffea000215d900 order:2 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 anon flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888012841c80 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080100010 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5093, tgid 5093 (syz-executor.0), ts 222510767732, free_ts 0 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 alloc_slab_page+0xbd/0x190 mm/slub.c:1851 allocate_slab+0x5e/0x3c0 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0x7f4/0xeb0 mm/slub.c:3193 __slab_alloc mm/slub.c:3292 [inline] __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] __kmem_cache_alloc_node+0x25b/0x340 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc+0x9e/0x190 mm/slab_common.c:981 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] fib6_info_alloc+0x2c/0xd0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x43d/0x12e0 net/ipv6/route.c:3749 ip6_route_add+0x22/0x120 net/ipv6/route.c:3843 addrconf_add_mroute+0x31b/0x450 net/ipv6/addrconf.c:2489 addrconf_add_dev+0x113/0x1a0 net/ipv6/addrconf.c:2507 inet6_addr_add+0x1ac/0xa00 net/ipv6/addrconf.c:2937 inet6_rtm_newaddr+0x839/0x1ff0 net/ipv6/addrconf.c:4927 rtnetlink_rcv_msg+0x7ca/0xec0 net/core/rtnetlink.c:6141 netlink_rcv_skb+0x1f0/0x470 net/netlink/af_netlink.c:2574 page_owner free stack trace missing Memory state around the buggy address: ffff888085766e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888085766f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888085766f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888085767000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888085767080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================