EXT4-fs (loop2): Ignoring removed oldalloc option EXT4-fs (loop2): Ignoring removed mblk_io_submit option EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread_nolock, O_DIRECT and fast_commit support! EXT4-fs (loop2): encrypted files will use data=ordered instead of data journaling mode EXT4-fs (loop2): 1 truncate cleaned up EXT4-fs (loop2): mounted filesystem without journal. Opts: errors=remount-ro,mblk_io_submit,mblk_io_submit,resgid=0x0000000000000000,oldalloc,mblk_io_submit,nogrpid,. Quota mode: none. ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_list_entries fs/ext4/xattr.c:670 [inline] BUG: KASAN: slab-out-of-bounds in ext4_xattr_ibody_list fs/ext4/xattr.c:740 [inline] BUG: KASAN: slab-out-of-bounds in ext4_listxattr+0x4a9/0xc60 fs/ext4/xattr.c:765 Read of size 4 at addr ffff8881245fb0b8 by task syz.2.17/373 CPU: 0 PID: 373 Comm: syz.2.17 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_list_entries fs/ext4/xattr.c:670 [inline] ext4_xattr_ibody_list fs/ext4/xattr.c:740 [inline] ext4_listxattr+0x4a9/0xc60 fs/ext4/xattr.c:765 vfs_listxattr fs/xattr.c:448 [inline] listxattr+0x28f/0x300 fs/xattr.c:783 path_listxattr+0xe1/0x1b0 fs/xattr.c:807 __do_sys_listxattr fs/xattr.c:819 [inline] __se_sys_listxattr fs/xattr.c:816 [inline] __x64_sys_listxattr+0x80/0x90 fs/xattr.c:816 x64_sys_call+0xd7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:195 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe5da551e59 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:00007ffcee50df68 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fe5da7d9fa0 RCX: 00007fe5da551e59 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000200000000140 RBP: 00007fe5da5e7e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe5da7d9fac R14: 00007fe5da7d9fa0 R15: 00007fe5da7d9fa0 Allocated by task 373: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0xb7/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550 slab_alloc_node mm/slub.c:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 kmem_cache_zalloc include/linux/slab.h:740 [inline] __kernfs_new_node+0xe1/0x670 fs/kernfs/dir.c:593 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:669 __kernfs_create_file+0x4e/0x270 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x29a/0x350 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x492/0xd00 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x58/0x120 fs/sysfs/group.c:215 create_dir lib/kobject.c:100 [inline] kobject_add_internal+0x8f1/0xde0 lib/kobject.c:263 kobject_add_varg lib/kobject.c:398 [inline] kobject_init_and_add+0x128/0x190 lib/kobject.c:481 ext4_register_sysfs+0xc3/0x2e0 fs/ext4/sysfs.c:533 ext4_fill_super+0x81f7/0x8bf0 fs/ext4/super.c:4972 mount_bdev+0x28d/0x3c0 fs/super.c:1400 ext4_mount+0x34/0x40 fs/ext4/super.c:6650 legacy_get_tree+0xed/0x190 fs/fs_context.c:611 vfs_get_tree+0x89/0x260 fs/super.c:1530 do_new_mount+0x251/0xb40 fs/namespace.c:3037 path_mount+0x640/0xff0 fs/namespace.c:3367 do_mount fs/namespace.c:3380 [inline] __do_sys_mount fs/namespace.c:3588 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3565 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3565 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff8881245fb000 which belongs to the cache kernfs_node_cache of size 136 The buggy address is located 48 bytes to the right of 136-byte region [ffff8881245fb000, ffff8881245fb088) The buggy address belongs to the page: page:ffffea0004917ec0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1245fb flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881001c4600 raw: 0000000000000000 0000000000140014 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 373, ts 25599857245, free_ts 25599739850 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3260 kmem_cache_zalloc include/linux/slab.h:740 [inline] __kernfs_new_node+0xe1/0x670 fs/kernfs/dir.c:593 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:669 __kernfs_create_file+0x4e/0x270 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x29a/0x350 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x492/0xd00 fs/sysfs/group.c:149 sysfs_create_group+0x1f/0x30 fs/sysfs/group.c:175 loop_sysfs_init drivers/block/loop.c:913 [inline] loop_configure+0x1095/0x1700 drivers/block/loop.c:1308 lo_ioctl+0x2eb/0x2350 drivers/block/loop.c:1856 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1474 [inline] free_pcp_prepare mm/page_alloc.c:1546 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3536 free_unref_page+0xae/0x540 mm/page_alloc.c:3618 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5900 free_pages+0x82/0x90 mm/page_alloc.c:5911 tlb_batch_list_free mm/mmu_gather.c:61 [inline] tlb_finish_mmu+0x258/0x310 mm/mmu_gather.c:341 unmap_region+0x344/0x3b0 mm/mmap.c:2692 __do_munmap+0xa99/0x1090 mm/mmap.c:2925 __vm_munmap+0x14e/0x280 mm/mmap.c:2978 __do_sys_munmap mm/mmap.c:3004 [inline] __se_sys_munmap mm/mmap.c:3000 [inline] __x64_sys_munmap+0x6b/0x80 mm/mmap.c:3000 x64_sys_call+0xc9/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:12 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff8881245faf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881245fb000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881245fb080: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 ^ ffff8881245fb100: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff8881245fb180: fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================