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 ffff8881112ca048 by task syz.2.22/514 CPU: 0 PID: 514 Comm: syz.2.22 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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:0x7f8155a62969 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:00007f81554d3038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f8155c89fa0 RCX: 00007f8155a62969 RDX: 0000200000000040 RSI: 00002000000000c0 RDI: 0000200000000100 RBP: 00007f8155ae4ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fe37 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8155c89fa0 R15: 00007fff2b6b5258 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff8881112ca000 which belongs to the cache bio-0 of size 216 The buggy address is located 72 bytes inside of 216-byte region [ffff8881112ca000, ffff8881112ca0d8) The buggy address belongs to the page: page:ffffea000444b280 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1112ca flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff888107fdc300 raw: 0000000000000000 00000000800c000c 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 0x192880(GFP_NOWAIT|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 417, ts 46035288857, free_ts 46026314218 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:5370 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x1af/0x2e0 mm/slub.c:2965 mempool_alloc_slab+0x1d/0x30 mm/mempool.c:513 mempool_alloc+0x110/0x450 mm/mempool.c:393 bio_alloc_bioset+0x18c/0x570 block/bio.c:486 bio_alloc include/linux/bio.h:412 [inline] mpage_alloc fs/mpage.c:115 [inline] do_mpage_readpage+0x1424/0x1a10 fs/mpage.c:342 mpage_readahead+0x242/0x4f0 fs/mpage.c:425 blkdev_readahead+0x1c/0x20 fs/block_dev.c:653 read_pages+0x16e/0xb50 mm/readahead.c:140 page_cache_ra_unbounded+0x67f/0x7d0 mm/readahead.c:248 do_page_cache_ra mm/readahead.c:277 [inline] force_page_cache_ra+0x3a9/0x400 mm/readahead.c:308 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 mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5429 [inline] __free_pages+0x14b/0x380 mm/page_alloc.c:5440 __vunmap+0x84d/0x9d0 mm/vmalloc.c:2307 free_work+0x5a/0x80 mm/vmalloc.c:69 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 Memory state around the buggy address: ffff8881112c9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881112c9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881112ca000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881112ca080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881112ca100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================