EXT4-fs: Ignoring removed oldalloc option EXT4-fs: 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. Quota mode: none. ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_list_entries+0x2d8/0x380 fs/ext4/xattr.c:670 Read of size 4 at addr ffff888112863018 by task syz.2.17/375 CPU: 1 PID: 375 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/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_xattr_list_entries+0x2d8/0x380 fs/ext4/xattr.c:670 ext4_xattr_ibody_list fs/ext4/xattr.c:740 [inline] ext4_listxattr+0x20e/0x600 fs/ext4/xattr.c:765 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x2a8/0x310 fs/xattr.c:804 path_listxattr+0xe1/0x1b0 fs/xattr.c:828 __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __x64_sys_listxattr+0x80/0x90 fs/xattr.c:837 x64_sys_call+0xd7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:195 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:0x7f0e7139de59 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:00007ffdd8de6158 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007f0e71625fa0 RCX: 00007f0e7139de59 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000200000000140 RBP: 00007f0e71433e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0e71625fac R14: 00007f0e71625fa0 R15: 00007f0e71625fa0 Allocated by task 331: 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] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node+0xb2/0x1e0 mm/slab_common.c:945 kmalloc_node include/linux/slab.h:589 [inline] __vmalloc_area_node mm/vmalloc.c:3070 [inline] __vmalloc_node_range+0x564/0x1440 mm/vmalloc.c:3256 __vmalloc_node mm/vmalloc.c:3321 [inline] vzalloc+0x78/0x90 mm/vmalloc.c:3394 alloc_counters+0x66/0x520 net/ipv4/netfilter/ip_tables.c:801 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:823 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0xa7d/0x1190 net/ipv4/netfilter/ip_tables.c:1670 nf_getsockopt+0x27f/0x2a0 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x157/0x1e0 net/ipv4/ip_sockglue.c:1826 tcp_getsockopt+0xff/0x130 net/ipv4/tcp.c:4463 sock_common_getsockopt+0xaa/0xc0 net/core/sock.c:3680 __sys_getsockopt+0x215/0x490 net/socket.c:2321 __do_sys_getsockopt net/socket.c:2336 [inline] __se_sys_getsockopt net/socket.c:2333 [inline] __x64_sys_getsockopt+0xbf/0xd0 net/socket.c:2333 x64_sys_call+0x3d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:56 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 331: 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 kvfree+0x35/0x40 mm/util.c:639 __vunmap+0xb32/0xc00 mm/vmalloc.c:2745 __vfree mm/vmalloc.c:2788 [inline] vfree+0x61/0x90 mm/vmalloc.c:2819 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:868 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0xe78/0x1190 net/ipv4/netfilter/ip_tables.c:1670 nf_getsockopt+0x27f/0x2a0 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x157/0x1e0 net/ipv4/ip_sockglue.c:1826 tcp_getsockopt+0xff/0x130 net/ipv4/tcp.c:4463 sock_common_getsockopt+0xaa/0xc0 net/core/sock.c:3680 __sys_getsockopt+0x215/0x490 net/socket.c:2321 __do_sys_getsockopt net/socket.c:2336 [inline] __se_sys_getsockopt net/socket.c:2333 [inline] __x64_sys_getsockopt+0xbf/0xd0 net/socket.c:2333 x64_sys_call+0x3d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:56 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 The buggy address belongs to the object at ffff888112863000 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 16 bytes to the right of 8-byte region [ffff888112863000, ffff888112863008) The buggy address belongs to the physical page: page:ffffea00044a18c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112863 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea0004253c80 dead000000000002 ffff888100042300 raw: 0000000000000000 0000000000660066 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 104, tgid 104 (udevadm), ts 5751619871, free_ts 5751573866 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 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc+0xa4/0x1e0 mm/slab_common.c:951 kmalloc include/linux/slab.h:568 [inline] kernfs_fop_write_iter+0x152/0x470 fs/kernfs/file.c:329 call_write_iter include/linux/fs.h:2282 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x5ef/0xd00 fs/read_write.c:584 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 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_open fs/namei.c:3467 [inline] open_last_lookups fs/namei.c:3557 [inline] path_openat+0x13fe/0x2f30 fs/namei.c:3787 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 Memory state around the buggy address: ffff888112862f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888112862f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888112863000: fa fc fc fc fc fa fc fc fc fc fa fc fc fc fc fa ^ ffff888112863080: fc fc fc fc 05 fc fc fc fc fa fc fc fc fc fa fc ffff888112863100: fc fc fc fa fc fc fc fc 05 fc fc fc fc 06 fc fc ==================================================================