================================================================== BUG: KASAN: slab-out-of-bounds in udf_get_filelongad+0x152/0x1a0 fs/udf/directory.c:519 Read of size 4 at addr ffff888074d32330 by task syz.2.47/4669 CPU: 0 PID: 4669 Comm: syz.2.47 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 udf_get_filelongad+0x152/0x1a0 fs/udf/directory.c:519 udf_current_aext+0x54e/0xb00 fs/udf/inode.c:2132 udf_next_aext+0x101/0x450 fs/udf/inode.c:2057 udf_extend_file fs/udf/inode.c:549 [inline] udf_setsize+0xa0a/0x10b0 fs/udf/inode.c:1147 udf_setattr+0x404/0x560 fs/udf/file.c:279 notify_change+0xc74/0xf40 fs/attr.c:499 do_truncate+0x1ac/0x240 fs/open.c:65 vfs_truncate+0x262/0x2f0 fs/open.c:111 do_sys_truncate+0xf2/0x1c0 fs/open.c:134 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fd78cb9cdd9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd78da0b028 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007fd78ce16090 RCX: 00007fd78cb9cdd9 RDX: 0000000000000000 RSI: 000000400000f003 RDI: 0000200000000080 RBP: 00007fd78cc32d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd78ce16128 R14: 00007fd78ce16090 R15: 00007ffcf031ab88 Allocated by task 41: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xae/0x230 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x22a/0x7e0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1303 [inline] nlmsg_new include/net/netlink.h:998 [inline] inet6_ifa_notify net/ipv6/addrconf.c:5543 [inline] __ipv6_ifa_notify+0x203/0xe60 net/ipv6/addrconf.c:6201 addrconf_ifdown+0xeb3/0x1a50 net/ipv6/addrconf.c:3922 addrconf_notify+0x405/0xf40 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] dev_close_many+0x2a5/0x410 net/core/dev.c:1614 dev_close+0x154/0x210 net/core/dev.c:1636 cfg80211_shutdown_all_interfaces+0xb7/0x1c0 net/wireless/core.c:275 ieee80211_remove_interfaces+0x191/0x710 net/mac80211/iface.c:2372 ieee80211_unregister_hw+0x59/0x290 net/mac80211/main.c:1483 mac80211_hwsim_del_radio+0x285/0x480 drivers/net/wireless/mac80211_hwsim.c:4688 hwsim_exit_net+0x589/0x650 drivers/net/wireless/mac80211_hwsim.c:5475 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x706/0xba0 net/core/net_namespace.c:640 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 41: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2d/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x131/0x1a0 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xb6/0x1f0 mm/slub.c:3700 skb_free_head net/core/skbuff.c:762 [inline] skb_release_data+0x5db/0x7c0 net/core/skbuff.c:791 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb net/core/skbuff.c:870 [inline] consume_skb+0xa2/0x100 net/core/skbuff.c:1035 netlink_broadcast+0xfd6/0x10d0 net/netlink/af_netlink.c:1521 nlmsg_multicast include/net/netlink.h:1078 [inline] nlmsg_notify+0xe7/0x1a0 net/netlink/af_netlink.c:2554 inet6_ifa_notify net/ipv6/addrconf.c:5554 [inline] __ipv6_ifa_notify+0x24e/0xe60 net/ipv6/addrconf.c:6201 addrconf_ifdown+0xeb3/0x1a50 net/ipv6/addrconf.c:3922 addrconf_notify+0x405/0xf40 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:455 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] dev_close_many+0x2a5/0x410 net/core/dev.c:1614 dev_close+0x154/0x210 net/core/dev.c:1636 cfg80211_shutdown_all_interfaces+0xb7/0x1c0 net/wireless/core.c:275 ieee80211_remove_interfaces+0x191/0x710 net/mac80211/iface.c:2372 ieee80211_unregister_hw+0x59/0x290 net/mac80211/main.c:1483 mac80211_hwsim_del_radio+0x285/0x480 drivers/net/wireless/mac80211_hwsim.c:4688 hwsim_exit_net+0x589/0x650 drivers/net/wireless/mac80211_hwsim.c:5475 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x706/0xba0 net/core/net_namespace.c:640 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888074d32000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 304 bytes to the right of 512-byte region [ffff888074d32000, ffff888074d32200) The buggy address belongs to the physical page: page:ffffea0001d34c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x74d30 head:ffffea0001d34c00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888017441c80 raw: 0000000000000000 0000000000100010 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 3638, tgid 3638 (udevd), ts 87903596090, free_ts 87895082302 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5657 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] kernfs_fop_open+0x3f1/0xcc0 fs/kernfs/file.c:690 do_dentry_open+0x7e9/0x10d0 fs/open.c:882 do_open fs/namei.c:3634 [inline] path_openat+0x2635/0x2ee0 fs/namei.c:3791 do_filp_open+0x1f1/0x430 fs/namei.c:3818 do_sys_openat2+0x150/0x4b0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1486 [inline] free_pcp_prepare mm/page_alloc.c:1536 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3413 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3508 __stack_depot_save+0x435/0x460 lib/stackdepot.c:506 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_set_track+0x60/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 btrfs_truncate_inode_items+0x268/0x1fe0 fs/btrfs/inode-item.c:490 btrfs_evict_inode+0x8eb/0xee0 fs/btrfs/inode.c:5561 evict+0x4c9/0x8d0 fs/inode.c:705 do_unlinkat+0x388/0x580 fs/namei.c:4405 __do_sys_unlinkat fs/namei.c:4441 [inline] __se_sys_unlinkat fs/namei.c:4434 [inline] __x64_sys_unlinkat+0xd1/0xe0 fs/namei.c:4434 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888074d32200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888074d32280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888074d32300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888074d32380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888074d32400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================