================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1195/0x20b0 fs/ext4/xattr.c:1785 Read of size 18446744073709551572 at addr ffff888035930050 by task syz.5.9829/4865 CPU: 0 UID: 0 PID: 4865 Comm: syz.5.9829 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200 __asan_memmove+0x23/0x60 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0x1195/0x20b0 fs/ext4/xattr.c:1785 ext4_xattr_block_set+0x991/0x3660 fs/ext4/xattr.c:2032 ext4_xattr_move_to_block fs/ext4/xattr.c:2671 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2746 [inline] ext4_expand_extra_isize_ea+0x17c6/0x1d70 fs/ext4/xattr.c:2834 __ext4_expand_extra_isize+0x346/0x480 fs/ext4/inode.c:6434 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6477 [inline] __ext4_mark_inode_dirty+0x668/0x880 fs/ext4/inode.c:6555 ext4_setattr+0x14a4/0x2800 fs/ext4/inode.c:6069 notify_change+0xb25/0x1330 fs/attr.c:556 do_truncate+0x1df/0x240 fs/open.c:68 handle_truncate fs/namei.c:4305 [inline] do_open fs/namei.c:4704 [inline] path_openat+0x370f/0x4280 fs/namei.c:4859 do_file_open+0x20e/0x430 fs/namei.c:4888 do_sys_openat2+0x10f/0x1e0 fs/open.c:1395 do_sys_open fs/open.c:1401 [inline] __do_sys_open fs/open.c:1409 [inline] __se_sys_open fs/open.c:1405 [inline] __x64_sys_open+0xfe/0x1d0 fs/open.c:1405 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8bbc39ce59 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:00007f8bbd224028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f8bbc616090 RCX: 00007f8bbc39ce59 RDX: 00000000000000c1 RSI: 000000000008937e RDI: 0000200000000300 RBP: 00007f8bbc432d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8bbc616128 R14: 00007f8bbc616090 R15: 00007ffd4bbc7978 Allocated by task 4865: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5334 [inline] __kmalloc_node_track_caller_noprof+0x31e/0x890 mm/slub.c:5438 kmemdup_noprof+0x29/0x60 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:763 [inline] ext4_xattr_block_set+0x18d9/0x3660 fs/ext4/xattr.c:1980 ext4_xattr_move_to_block fs/ext4/xattr.c:2671 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2746 [inline] ext4_expand_extra_isize_ea+0x17c6/0x1d70 fs/ext4/xattr.c:2834 __ext4_expand_extra_isize+0x346/0x480 fs/ext4/inode.c:6434 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6477 [inline] __ext4_mark_inode_dirty+0x668/0x880 fs/ext4/inode.c:6555 ext4_setattr+0x14a4/0x2800 fs/ext4/inode.c:6069 notify_change+0xb25/0x1330 fs/attr.c:556 do_truncate+0x1df/0x240 fs/open.c:68 handle_truncate fs/namei.c:4305 [inline] do_open fs/namei.c:4704 [inline] path_openat+0x370f/0x4280 fs/namei.c:4859 do_file_open+0x20e/0x430 fs/namei.c:4888 do_sys_openat2+0x10f/0x1e0 fs/open.c:1395 do_sys_open fs/open.c:1401 [inline] __do_sys_open fs/open.c:1409 [inline] __se_sys_open fs/open.c:1405 [inline] __x64_sys_open+0xfe/0x1d0 fs/open.c:1405 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888035930000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 80 bytes inside of 1024-byte region [ffff888035930000, ffff888035930400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x35930 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 ffff88813fe31dc0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813fe31dc0 dead000000000100 dead000000000122 head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 00fff00000000003 fffffffffffffe01 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 745, tgid 745 (kworker/u8:6), ts 141908102502, free_ts 141877327439 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x812/0x3d20 mm/page_alloc.c:3941 __alloc_frozen_pages_noprof+0x27c/0x2b60 mm/page_alloc.c:5221 alloc_slab_page mm/slub.c:3289 [inline] allocate_slab mm/slub.c:3404 [inline] new_slab+0xa2/0x670 mm/slub.c:3447 refill_objects+0xe3/0x430 mm/slub.c:7241 refill_sheaf mm/slub.c:2827 [inline] __pcs_replace_empty_main+0x375/0x660 mm/slub.c:4692 alloc_from_pcs mm/slub.c:4790 [inline] slab_alloc_node mm/slub.c:4924 [inline] __do_kmalloc_node mm/slub.c:5333 [inline] __kmalloc_noprof+0x67e/0x840 mm/slub.c:5347 _kmalloc_noprof include/linux/slab.h:973 [inline] _kzalloc_noprof include/linux/slab.h:1286 [inline] ieee802_11_parse_elems_full+0x177/0x37f0 net/mac80211/parse.c:1058 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2518 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1565 [inline] ieee80211_ibss_rx_queued_mgmt+0xc8d/0x2f90 net/mac80211/ibss.c:1596 ieee80211_iface_process_skb net/mac80211/iface.c:1795 [inline] ieee80211_iface_work+0xbff/0x13e0 net/mac80211/iface.c:1849 cfg80211_wiphy_work+0x2b7/0x550 net/wireless/core.c:513 process_one_work+0xa23/0x1940 kernel/workqueue.c:3314 process_scheduled_works kernel/workqueue.c:3397 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3478 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 4974 tgid 4974 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1397 [inline] __free_frozen_pages+0x794/0x10a0 mm/page_alloc.c:2938 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4610 [inline] slab_alloc_node mm/slub.c:4939 [inline] kmem_cache_alloc_node_noprof+0x25a/0x6f0 mm/slub.c:4991 __alloc_skb+0x140/0x710 net/core/skbuff.c:704 alloc_skb include/linux/skbuff.h:1385 [inline] alloc_skb_with_frags+0xdd/0x760 net/core/skbuff.c:6768 sock_alloc_send_pskb+0x801/0x980 net/core/sock.c:3007 unix_dgram_sendmsg+0x3c7/0x1810 net/unix/af_unix.c:2141 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg net/socket.c:790 [inline] __sys_sendto+0x452/0x4a0 net/socket.c:2252 __do_sys_sendto net/socket.c:2259 [inline] __se_sys_sendto net/socket.c:2255 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2255 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88803592ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803592ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888035930000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888035930080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888035930100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================