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:1730 Read of size 18446744073709551588 at addr ffff888026af5040 by task syz.9.2097/11656 CPU: 0 PID: 11656 Comm: syz.9.2097 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x965/0x1e90 fs/ext4/xattr.c:1730 ext4_xattr_block_set+0xae4/0x32b0 fs/ext4/xattr.c:1977 ext4_xattr_set_handle+0xe3b/0x1570 fs/ext4/xattr.c:2399 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2501 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x167/0x2e0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 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:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f6b7239bf79 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:00007f6b731db028 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f6b72615fa0 RCX: 00007f6b7239bf79 RDX: 00002000000013c0 RSI: 0000200000000140 RDI: 0000200000000100 RBP: 00007f6b724327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000700 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6b72616038 R14: 00007f6b72615fa0 R15: 00007ffdb502f288 Allocated by task 11656: 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 kmemdup+0x27/0x60 mm/util.c:129 kmemdup include/linux/fortify-string.h:585 [inline] ext4_xattr_block_set+0x9e6/0x32b0 fs/ext4/xattr.c:1925 ext4_xattr_set_handle+0xe3b/0x1570 fs/ext4/xattr.c:2399 ext4_xattr_set+0x242/0x320 fs/ext4/xattr.c:2501 __vfs_setxattr+0x3e0/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x129/0x5e0 fs/xattr.c:216 vfs_setxattr+0x167/0x2e0 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x346/0x360 fs/xattr.c:617 path_setxattr+0x147/0x290 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:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x103/0x870 kernel/rcu/tree.c:3405 batadv_hardif_release net/batman-adv/hard-interface.c:55 [inline] kref_put include/linux/kref.h:65 [inline] batadv_hardif_put net/batman-adv/hard-interface.h:95 [inline] batadv_hard_if_event+0x781/0x1550 net/batman-adv/hard-interface.c:1014 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] unregister_netdevice_many+0x1086/0x1930 net/core/dev.c:11003 default_device_exit_batch+0x9e6/0xa80 net/core/dev.c:11516 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x791/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 ffff888026af5000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 64 bytes inside of 1024-byte region [ffff888026af5000, ffff888026af5400) The buggy address belongs to the physical page: page:ffffea00009abc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x26af0 head:ffffea00009abc00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001dc9a00 dead000000000003 ffff888017441dc0 raw: 0000000000000000 0000000080100010 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 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 56, tgid 56 (kworker/u4:4), ts 9015639238, free_ts 0 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:5643 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_slab_page+0x4f/0x160 mm/slub.c:1801 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 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node+0xa0/0x240 mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] kzalloc_node include/linux/slab.h:710 [inline] blk_alloc_flush_queue+0xdd/0x250 block/blk-flush.c:484 blk_mq_alloc_hctx block/blk-mq.c:3805 [inline] blk_mq_alloc_and_init_hctx+0x7f9/0xd70 block/blk-mq.c:4256 blk_mq_realloc_hw_ctxs+0x183/0x420 block/blk-mq.c:4289 blk_mq_init_allocated_queue+0x566/0x17a0 block/blk-mq.c:4357 blk_mq_init_queue_data block/blk-mq.c:4160 [inline] blk_mq_init_queue+0xa5/0x120 block/blk-mq.c:4170 scsi_alloc_sdev+0x70e/0xae0 drivers/scsi/scsi_scan.c:335 scsi_probe_and_add_lun+0x1a1/0x44b0 drivers/scsi/scsi_scan.c:1186 __scsi_scan_target+0x1d4/0x1050 drivers/scsi/scsi_scan.c:1718 page_owner free stack trace missing Memory state around the buggy address: ffff888026af4f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888026af4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888026af5000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888026af5080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888026af5100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================