loop9: detected capacity change from 0 to 1024 EXT4-fs (loop9): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x965/0x1e90 fs/ext4/xattr.c:1741 Read of size 18446744073709551588 at addr ffff888028b6e040 by task syz.9.2952/16773 CPU: 0 PID: 16773 Comm: syz.9.2952 Not tainted 6.1.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x22e 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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x965/0x1e90 fs/ext4/xattr.c:1741 ext4_xattr_block_set+0xadf/0x32a0 fs/ext4/xattr.c:1988 ext4_xattr_set_handle+0xbd5/0x12b0 fs/ext4/xattr.c:2413 ext4_xattr_set+0x22a/0x320 fs/ext4/xattr.c:2515 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x168/0x2f0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x2b2/0x2d0 fs/xattr.c:617 path_setxattr+0x142/0x280 fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __x64_sys_setxattr+0xb7/0xd0 fs/xattr.c:648 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f59b6b8ebe9 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:00007f59b7abb038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f59b6db5fa0 RCX: 00007f59b6b8ebe9 RDX: 00002000000013c0 RSI: 0000200000000140 RDI: 0000200000000100 RBP: 00007f59b6c11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000700 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f59b6db6038 R14: 00007f59b6db5fa0 R15: 00007ffe3c044b98 Allocated by task 16773: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:383 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 kmemdup+0x27/0x60 mm/util.c:129 kmemdup include/linux/fortify-string.h:585 [inline] ext4_xattr_block_set+0x9e1/0x32a0 fs/ext4/xattr.c:1936 ext4_xattr_set_handle+0xbd5/0x12b0 fs/ext4/xattr.c:2413 ext4_xattr_set+0x22a/0x320 fs/ext4/xattr.c:2515 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x168/0x2f0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x2b2/0x2d0 fs/xattr.c:617 path_setxattr+0x142/0x280 fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __x64_sys_setxattr+0xb7/0xd0 fs/xattr.c:648 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x108/0x870 kernel/rcu/tree.c:3405 cgroup_migrate_finish+0x19f/0x370 kernel/cgroup/cgroup.c:2731 cgroup_attach_task+0x563/0x840 kernel/cgroup/cgroup.c:2932 __cgroup1_procs_write+0x2e0/0x3e0 kernel/cgroup/cgroup-v1.c:522 cgroup_file_write+0x2f8/0x660 kernel/cgroup/cgroup.c:4077 kernfs_fop_write_iter+0x379/0x4c0 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x44c/0x960 fs/read_write.c:584 ksys_write+0x143/0x240 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888028b6e000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 64 bytes inside of 1024-byte region [ffff888028b6e000, ffff888028b6e400) The buggy address belongs to the physical page: page:ffffea0000a2da00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888028b6b800 pfn:0x28b68 head:ffffea0000a2da00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888017441dc0 raw: ffff888028b6b800 000000008010000f 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9122749350, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2115 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3437 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] dev_pm_qos_constraints_allocate+0x4f/0x3f0 drivers/base/power/qos.c:200 __dev_pm_qos_add_request+0x123/0x520 drivers/base/power/qos.c:344 dev_pm_qos_add_request+0x32/0x50 drivers/base/power/qos.c:394 usb_hub_create_port_device+0x457/0xb30 drivers/usb/core/port.c:719 hub_configure drivers/usb/core/hub.c:1708 [inline] hub_probe+0x2672/0x3750 drivers/usb/core/hub.c:1975 usb_probe_interface+0x5a0/0xaf0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2aa/0xc70 drivers/base/dd.c:639 page_owner free stack trace missing Memory state around the buggy address: ffff888028b6df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888028b6df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888028b6e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888028b6e080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888028b6e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================