EXT4-fs: Ignoring removed bh option EXT4-fs (loop4): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1171/0x1f00 fs/ext4/xattr.c:1773 Read of size 18446744073709551604 at addr ffff888032d6c830 by task syz.4.2225/11344 CPU: 0 UID: 0 PID: 11344 Comm: syz.4.2225 Not tainted 6.16.0-rc3-syzkaller-00042-g78f4e737a53e #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xcd/0x680 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:189 __asan_memmove+0x23/0x60 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0x1171/0x1f00 fs/ext4/xattr.c:1773 ext4_xattr_block_set+0xf3a/0x3650 fs/ext4/xattr.c:2020 ext4_xattr_set_handle+0xd2e/0x1480 fs/ext4/xattr.c:2447 ext4_xattr_set+0x14d/0x360 fs/ext4/xattr.c:2549 __vfs_setxattr+0x175/0x1e0 fs/xattr.c:200 __vfs_setxattr_noperm+0x127/0x660 fs/xattr.c:234 __vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295 vfs_setxattr+0x145/0x360 fs/xattr.c:321 do_setxattr+0x145/0x180 fs/xattr.c:636 filename_setxattr+0x16b/0x1d0 fs/xattr.c:665 path_setxattrat+0x1de/0x2a0 fs/xattr.c:713 __do_sys_lsetxattr fs/xattr.c:754 [inline] __se_sys_lsetxattr fs/xattr.c:750 [inline] __x64_sys_lsetxattr+0xc9/0x140 fs/xattr.c:750 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa6e7f8e929 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:00007fa6e8dc9038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fa6e81b5fa0 RCX: 00007fa6e7f8e929 RDX: 00002000000001c0 RSI: 0000200000000180 RDI: 00002000000001c0 RBP: 00007fa6e8010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000361 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa6e81b5fa0 R15: 00007ffcdd2f2898 Allocated by task 11344: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4328 [inline] __kmalloc_node_track_caller_noprof+0x221/0x510 mm/slub.c:4347 kmemdup_noprof+0x29/0x60 mm/util.c:137 kmemdup_noprof include/linux/fortify-string.h:765 [inline] ext4_xattr_block_set+0x91f/0x3650 fs/ext4/xattr.c:1968 ext4_xattr_set_handle+0xd2e/0x1480 fs/ext4/xattr.c:2447 ext4_xattr_set+0x14d/0x360 fs/ext4/xattr.c:2549 __vfs_setxattr+0x175/0x1e0 fs/xattr.c:200 __vfs_setxattr_noperm+0x127/0x660 fs/xattr.c:234 __vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295 vfs_setxattr+0x145/0x360 fs/xattr.c:321 do_setxattr+0x145/0x180 fs/xattr.c:636 filename_setxattr+0x16b/0x1d0 fs/xattr.c:665 path_setxattrat+0x1de/0x2a0 fs/xattr.c:713 __do_sys_lsetxattr fs/xattr.c:754 [inline] __se_sys_lsetxattr fs/xattr.c:750 [inline] __x64_sys_lsetxattr+0xc9/0x140 fs/xattr.c:750 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888032d6c800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 48 bytes inside of 1024-byte region [ffff888032d6c800, ffff888032d6cc00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x32d68 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841dc0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841dc0 dead000000000100 dead000000000122 head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0000cb5a01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 12, tgid 12 (kworker/u8:0), ts 125280468583, free_ts 125264689157 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab mm/slub.c:2619 [inline] new_slab+0x23b/0x330 mm/slub.c:2673 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3859 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3949 __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4340 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ieee802_11_parse_elems_full+0x1d7/0x3780 net/mac80211/parse.c:1013 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2414 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2421 [inline] ieee80211_inform_bss+0x10b/0x1140 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8ea/0x1df0 net/wireless/scan.c:2367 cfg80211_inform_bss_data+0x224/0x3bc0 net/wireless/scan.c:3222 cfg80211_inform_bss_frame_data+0x26f/0x750 net/wireless/scan.c:3313 ieee80211_bss_info_update+0x310/0xab0 net/mac80211/scan.c:226 ieee80211_scan_rx+0x4cf/0xb30 net/mac80211/scan.c:355 __ieee80211_rx_handle_packet net/mac80211/rx.c:5183 [inline] ieee80211_rx_list+0x1bdb/0x2980 net/mac80211/rx.c:5420 page last free pid 5825 tgid 5825 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] __free_frozen_pages+0x7fe/0x1180 mm/page_alloc.c:2706 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4148 [inline] slab_alloc_node mm/slub.c:4197 [inline] kmem_cache_alloc_noprof+0x1cb/0x3b0 mm/slub.c:4204 getname_flags.part.0+0x4c/0x550 fs/namei.c:146 getname_flags include/linux/audit.h:322 [inline] getname include/linux/fs.h:2907 [inline] __do_sys_unlink fs/namei.c:4705 [inline] __se_sys_unlink fs/namei.c:4703 [inline] __x64_sys_unlink+0xb0/0x110 fs/namei.c:4703 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888032d6c700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888032d6c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888032d6c800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888032d6c880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888032d6c900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================