EXT4-fs (loop3): 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 (loop3): mounted filesystem without journal. Opts: grpquota,delalloc,resuid=0x0000000000000000,debug,dioread_nolock,bsddf,nomblk_io_submit,noauto_da_alloc,,errors=continue ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_get_inode_usage+0x3a1/0x520 fs/ext4/xattr.c:817 Read of size 4 at addr ffff888112662070 by task syz.3.48/486 CPU: 0 PID: 486 Comm: syz.3.48 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 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_get_inode_usage+0x3a1/0x520 fs/ext4/xattr.c:817 __dquot_transfer+0x192/0x20d0 fs/quota/dquot.c:2017 dquot_transfer+0x2f1/0x460 fs/quota/dquot.c:2169 ext4_setattr+0x715/0x1950 fs/ext4/inode.c:5577 notify_change+0xab3/0xe40 fs/attr.c:410 chown_common+0x335/0x500 fs/open.c:675 vfs_fchown fs/open.c:742 [inline] ksys_fchown+0xef/0x160 fs/open.c:753 __do_sys_fchown fs/open.c:761 [inline] __se_sys_fchown fs/open.c:759 [inline] __x64_sys_fchown+0x7a/0x90 fs/open.c:759 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f82ee2efe59 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:00007f82ecd4a028 EFLAGS: 00000246 ORIG_RAX: 000000000000005d RAX: ffffffffffffffda RBX: 00007f82ee568fa0 RCX: 00007f82ee2efe59 RDX: 000000000000ee01 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f82ee385d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f82ee569038 R14: 00007f82ee568fa0 R15: 00007ffcf2040dd8 Allocated by task 0: (stack is not available) The buggy address belongs to the object at ffff888112662060 which belongs to the cache kmalloc-16 of size 16 The buggy address is located 0 bytes to the right of 16-byte region [ffff888112662060, ffff888112662070) The buggy address belongs to the page: page:ffffea0004499880 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112662 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff888100043b00 raw: 0000000000000000 0000000000800080 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 285, ts 28171538601, free_ts 28171513441 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+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 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] __kmalloc+0x1fe/0x330 mm/slub.c:4034 __kmalloc_node include/linux/slab.h:421 [inline] kmalloc_node include/linux/slab.h:578 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:833 [inline] kvmalloc_array include/linux/mm.h:851 [inline] kvcalloc include/linux/mm.h:856 [inline] xt_alloc_entry_offsets+0x43/0x50 net/netfilter/x_tables.c:959 translate_table+0x18b/0x2090 net/ipv6/netfilter/ip6_tables.c:697 do_replace net/ipv6/netfilter/ip6_tables.c:1156 [inline] do_ip6t_set_ctl+0x961/0xd80 net/ipv6/netfilter/ip6_tables.c:1646 nf_setsockopt+0x272/0x2a0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x280b/0x3590 net/ipv6/ipv6_sockglue.c:1014 tcp_setsockopt+0x22b/0x1db0 net/ipv4/tcp.c:3500 sock_common_setsockopt+0xa0/0xb0 net/core/sock.c:3327 __sys_setsockopt+0x2fa/0x480 net/socket.c:2146 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:5443 [inline] __free_pages+0x146/0x3b0 mm/page_alloc.c:5454 __vunmap+0x86d/0x9f0 mm/vmalloc.c:2307 __vfree mm/vmalloc.c:2356 [inline] vfree+0x61/0x90 mm/vmalloc.c:2387 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:884 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1041 [inline] do_ip6t_get_ctl+0xe60/0x1110 net/ipv6/netfilter/ip6_tables.c:1679 nf_getsockopt+0x26d/0x290 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x1a2b/0x20e0 net/ipv6/ipv6_sockglue.c:1492 tcp_getsockopt+0x1d8/0x2020 net/ipv4/tcp.c:4048 sock_common_getsockopt+0x98/0xb0 net/core/sock.c:3299 __sys_getsockopt+0x201/0x370 net/socket.c:2187 __do_sys_getsockopt net/socket.c:2202 [inline] __se_sys_getsockopt net/socket.c:2199 [inline] __x64_sys_getsockopt+0xbf/0xd0 net/socket.c:2199 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff888112661f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888112661f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888112662000: fa fb fc fc fa fb fc fc fa fb fc fc 00 00 fc fc ^ ffff888112662080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff888112662100: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ==================================================================