EXT4-fs: Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE [EXT4 FS bs=1024, gc=1, bpg=131072, ipg=32, mo=e855c01c, mo2=0003] System zones: 0-1, 3-36 EXT4-fs (loop2): mounted filesystem without journal. Quota mode: writeback. ================================================================== BUG: KASAN: use-after-free in ext4_get_inode_usage+0x39c/0x520 fs/ext4/xattr.c:821 Read of size 4 at addr ffff888114a7b070 by task syz.2.18/379 CPU: 1 PID: 379 Comm: syz.2.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 ext4_get_inode_usage+0x39c/0x520 fs/ext4/xattr.c:821 __dquot_transfer+0x1a0/0x2370 fs/quota/dquot.c:2015 dquot_transfer+0x620/0x7d0 fs/quota/dquot.c:2174 ext4_setattr+0xa01/0x1c80 fs/ext4/inode.c:5529 notify_change+0xd33/0x1030 fs/attr.c:499 chown_common+0x448/0x5f0 fs/open.c:737 vfs_fchown fs/open.c:805 [inline] ksys_fchown+0xef/0x160 fs/open.c:816 __do_sys_fchown fs/open.c:824 [inline] __se_sys_fchown fs/open.c:822 [inline] __x64_sys_fchown+0x7a/0x90 fs/open.c:822 x64_sys_call+0x132/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:94 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:0x7f8f2c59de99 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:00007f8f2d47d028 EFLAGS: 00000246 ORIG_RAX: 000000000000005d RAX: ffffffffffffffda RBX: 00007f8f2c825fa0 RCX: 00007f8f2c59de99 RDX: 000000000000ee01 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f8f2c633eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8f2c826038 R14: 00007f8f2c825fa0 R15: 00007ffc01ff7e28 Allocated by task 104: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:380 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:212 [inline] kmalloc_trace+0x40/0xb0 mm/slab_common.c:1033 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] kernfs_fop_open+0x35d/0xb80 fs/kernfs/file.c:690 do_dentry_open+0x885/0x11f0 fs/open.c:884 vfs_open+0x73/0x80 fs/open.c:1017 do_open fs/namei.c:3633 [inline] path_openat+0x2699/0x2f30 fs/namei.c:3790 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 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 Freed by task 104: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 kernfs_fop_release+0x269/0x2f0 fs/kernfs/file.c:828 __fput+0x1fd/0x8f0 fs/file_table.c:320 ____fput+0x15/0x20 fs/file_table.c:348 task_work_run+0x1e1/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888114a7b000 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 112 bytes inside of 192-byte region [ffff888114a7b000, ffff888114a7b0c0) The buggy address belongs to the physical page: page:ffffea0004529ec0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x114a7b flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea00044e30c0 dead000000000005 ffff888100042c00 raw: 0000000000000000 0000000000100010 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 110, tgid 110 (udevd), ts 7873591848, free_ts 7873538156 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3e0 mm/slub.c:2020 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423 kmalloc_trace+0x29/0xb0 mm/slab_common.c:1028 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] kernfs_fop_open+0x35d/0xb80 fs/kernfs/file.c:690 do_dentry_open+0x885/0x11f0 fs/open.c:884 vfs_open+0x73/0x80 fs/open.c:1017 do_open fs/namei.c:3633 [inline] path_openat+0x2699/0x2f30 fs/namei.c:3790 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1580 [inline] free_pcp_prepare mm/page_alloc.c:1654 [inline] free_unref_page_prepare+0x80c/0x820 mm/page_alloc.c:3621 free_unref_page+0x93/0x530 mm/page_alloc.c:3719 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6020 free_pages+0x82/0x90 mm/page_alloc.c:6031 selinux_genfs_get_sid+0x20b/0x250 security/selinux/hooks.c:1309 inode_doinit_with_dentry+0x884/0xd90 security/selinux/hooks.c:1504 selinux_d_instantiate+0x27/0x40 security/selinux/hooks.c:6396 security_d_instantiate+0xb3/0x110 security/security.c:2097 d_splice_alias+0x6d/0x390 fs/dcache.c:3155 kernfs_iop_lookup+0x2c2/0x310 fs/kernfs/dir.c:1204 __lookup_slow+0x2d5/0x410 fs/namei.c:1697 lookup_slow+0x57/0x70 fs/namei.c:1714 walk_component+0x2f5/0x430 fs/namei.c:2005 lookup_last fs/namei.c:2462 [inline] path_lookupat+0x155/0x430 fs/namei.c:2486 filename_lookup+0x229/0x580 fs/namei.c:2515 vfs_statx+0x11b/0x6b0 fs/stat.c:229 Memory state around the buggy address: ffff888114a7af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888114a7af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888114a7b000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888114a7b080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888114a7b100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================