EXT4-fs (loop2): 1 truncate cleaned up EXT4-fs (loop2): mounted filesystem without journal. Opts: auto_da_alloc=0x0000000000000006,jqfmt=vfsv0,debug_want_extra_isize=0x0000000000000064,debug,i_version,quota,grpid,,errors=continue ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_rehash fs/ext4/xattr.c:3142 [inline] BUG: KASAN: slab-out-of-bounds in ext4_xattr_set_entry+0xde3/0x36c0 fs/ext4/xattr.c:1824 Read of size 4 at addr ffff88811708d048 by task syz.2.18/502 CPU: 0 PID: 502 Comm: syz.2.18 Not tainted 5.10.238-syzkaller-1007487-g59e9a7228857 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_rehash fs/ext4/xattr.c:3142 [inline] ext4_xattr_set_entry+0xde3/0x36c0 fs/ext4/xattr.c:1824 ext4_xattr_block_set+0x4d6/0x2a50 fs/ext4/xattr.c:1927 ext4_xattr_set_handle+0xbd5/0x12a0 fs/ext4/xattr.c:2412 ext4_xattr_set+0x1ec/0x320 fs/ext4/xattr.c:2513 ext4_xattr_trusted_set+0x3b/0x50 fs/ext4/xattr_trusted.c:37 __vfs_setxattr+0x42a/0x480 fs/xattr.c:177 __vfs_setxattr_noperm+0x11e/0x4e0 fs/xattr.c:208 __vfs_setxattr_locked+0x203/0x220 fs/xattr.c:266 vfs_setxattr+0x8d/0x1c0 fs/xattr.c:283 setxattr+0x1a9/0x370 fs/xattr.c:548 path_setxattr+0x110/0x210 fs/xattr.c:567 __do_sys_lsetxattr fs/xattr.c:589 [inline] __se_sys_lsetxattr fs/xattr.c:585 [inline] __x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:585 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f93cd72d969 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:00007f93cd19e038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f93cd954fa0 RCX: 00007f93cd72d969 RDX: 0000200000000040 RSI: 00002000000000c0 RDI: 0000200000000100 RBP: 00007f93cd7afab1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f93cd954fa0 R15: 00007ffccf1ccb28 Allocated by task 0: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] __kasan_slab_alloc+0xbd/0xf0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:583 slab_alloc_node mm/slub.c:2947 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x165/0x2e0 mm/slub.c:2960 dst_alloc+0x176/0x4f0 net/core/dst.c:93 ip6_dst_alloc net/ipv6/route.c:340 [inline] icmp6_dst_alloc+0xf5/0x560 net/ipv6/route.c:3169 mld_sendpack+0x4b0/0xa80 net/ipv6/mcast.c:1665 mld_send_initial_cr+0x246/0x2b0 net/ipv6/mcast.c:2093 mld_dad_timer_expire+0x30/0x410 net/ipv6/mcast.c:2112 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x639/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu kernel/rcu/tree.c:2976 [inline] call_rcu+0x105/0x1040 kernel/rcu/tree.c:3050 dst_release+0x123/0x190 net/core/dst.c:183 refdst_drop include/net/dst.h:253 [inline] skb_dst_drop include/net/dst.h:265 [inline] __dev_queue_xmit+0x8d2/0x2540 net/core/dev.c:4166 dev_queue_xmit+0x17/0x20 net/core/dev.c:4243 neigh_hh_output include/net/neighbour.h:501 [inline] neigh_output include/net/neighbour.h:515 [inline] ip6_finish_output2+0xe94/0x1500 net/ipv6/ip6_output.c:130 __ip6_finish_output+0x5ff/0x790 net/ipv6/ip6_output.c:201 ip6_finish_output+0x33/0x1f0 net/ipv6/ip6_output.c:211 NF_HOOK_COND include/linux/netfilter.h:288 [inline] ip6_output+0x1d1/0x3b0 net/ipv6/ip6_output.c:234 dst_output include/net/dst.h:451 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] mld_sendpack+0x5e6/0xa80 net/ipv6/mcast.c:1676 mld_send_initial_cr+0x246/0x2b0 net/ipv6/mcast.c:2093 mld_dad_timer_expire+0x30/0x410 net/ipv6/mcast.c:2112 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x639/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 The buggy address belongs to the object at ffff88811708d000 which belongs to the cache ip6_dst_cache of size 240 The buggy address is located 72 bytes inside of 240-byte region [ffff88811708d000, ffff88811708d0f0) The buggy address belongs to the page: page:ffffea00045c2340 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11708d flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff88810bb0ed80 raw: 0000000000000000 00000000000c000c 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 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 490, ts 53160856827, free_ts 53146575131 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5357 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1808 [inline] new_slab+0x84/0x3f0 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2791 __slab_alloc+0x63/0xa0 mm/slub.c:2831 slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x1af/0x2e0 mm/slub.c:2960 dst_alloc+0x176/0x4f0 net/core/dst.c:93 ip6_dst_alloc net/ipv6/route.c:340 [inline] icmp6_dst_alloc+0xf5/0x560 net/ipv6/route.c:3169 ndisc_send_skb+0x267/0xb40 net/ipv6/ndisc.c:493 ndisc_send_ns+0x842/0xaf0 net/ipv6/ndisc.c:655 addrconf_dad_work+0x9de/0x1410 net/ipv6/addrconf.c:4206 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page_list+0x12e/0x9b0 mm/page_alloc.c:3443 release_pages+0xe38/0xe80 mm/swap.c:1103 __pagevec_release+0x71/0xe0 mm/swap.c:1123 pagevec_release include/linux/pagevec.h:88 [inline] truncate_inode_pages_range+0x771/0x15b0 mm/truncate.c:367 truncate_inode_pages+0x24/0x30 mm/truncate.c:473 kill_bdev fs/block_dev.c:86 [inline] __blkdev_put+0x317/0x750 fs/block_dev.c:1795 blkdev_put+0x2d6/0x3c0 fs/block_dev.c:1863 kill_block_super+0xb8/0xf0 fs/super.c:1472 deactivate_locked_super+0xa0/0x100 fs/super.c:335 deactivate_super+0xaf/0xe0 fs/super.c:366 cleanup_mnt+0x446/0x500 fs/namespace.c:1114 __cleanup_mnt+0x19/0x20 fs/namespace.c:1121 task_work_run+0x127/0x190 kernel/task_work.c:189 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] syscall_exit_to_user_mode+0x68/0x90 kernel/entry/common.c:274 Memory state around the buggy address: ffff88811708cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811708cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811708d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811708d080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc ffff88811708d100: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ==================================================================