EXT4-fs (loop0): 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: use-after-free in ext4_xattr_list_entries fs/ext4/xattr.c:670 [inline] BUG: KASAN: use-after-free in ext4_xattr_ibody_list fs/ext4/xattr.c:740 [inline] BUG: KASAN: use-after-free in ext4_listxattr+0x4a9/0xc60 fs/ext4/xattr.c:765 Read of size 4 at addr ffff88813242c018 by task syz.0.17/394 CPU: 1 PID: 394 Comm: syz.0.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:0x7f932f74ce59 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:00007fffdefd1dc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007f932f9d4fa0 RCX: 00007f932f74ce59 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000200000000140 RBP: 00007f932f7e2e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f932f9d4fac R14: 00007f932f9d4fa0 R15: 00007f932f9d4fa0 Allocated by task 318: 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_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x13d/0x2c0 mm/slub.c:4436 kmalloc include/linux/slab.h:624 [inline] kzalloc include/linux/slab.h:750 [inline] new_dir fs/proc/proc_sysctl.c:961 [inline] get_subdir fs/proc/proc_sysctl.c:1006 [inline] __register_sysctl_table+0xa35/0x1240 fs/proc/proc_sysctl.c:1355 register_net_sysctl+0x21d/0x230 net/sysctl_net.c:169 __devinet_sysctl_register+0x2bd/0x390 net/ipv4/devinet.c:2604 devinet_sysctl_register+0x169/0x1e0 net/ipv4/devinet.c:2644 inetdev_init+0x2b2/0x500 net/ipv4/devinet.c:284 inetdev_event+0x1f4/0x1060 net/ipv4/devinet.c:1544 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2070 [inline] call_netdevice_notifiers_extack net/core/dev.c:2082 [inline] call_netdevice_notifiers+0x119/0x190 net/core/dev.c:2096 register_netdevice+0x110a/0x1490 net/core/dev.c:10462 register_netdev+0x3e/0x50 net/core/dev.c:10555 vti6_init_net+0x2dc/0x3a0 net/ipv6/ip6_vti.c:1175 ops_init+0x2c0/0x470 net/core/net_namespace.c:138 setup_net+0x331/0xa30 net/core/net_namespace.c:332 copy_net_ns+0x355/0x5c0 net/core/net_namespace.c:476 create_new_namespaces+0x3a8/0x660 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:226 ksys_unshare+0x4d7/0x810 kernel/fork.c:3247 __do_sys_unshare kernel/fork.c:3324 [inline] __se_sys_unshare kernel/fork.c:3322 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3322 x64_sys_call+0x442/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273 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 Freed by task 60: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kmem_cache_free_bulk+0x4f2/0x730 mm/slub.c:3669 kfree_bulk include/linux/slab.h:477 [inline] kfree_rcu_work+0x16f/0x870 kernel/rcu/tree.c:3334 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 kthread+0x3f5/0x4f0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 kvfree_call_rcu+0xb6/0x860 kernel/rcu/tree.c:3648 drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1687 drop_sysctl_table+0x2e4/0x430 fs/proc/proc_sysctl.c:1690 unregister_sysctl_table+0x7a/0x120 fs/proc/proc_sysctl.c:1725 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175 __devinet_sysctl_unregister net/ipv4/devinet.c:2627 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2655 [inline] inetdev_destroy net/ipv4/devinet.c:327 [inline] inetdev_event+0x788/0x1060 net/ipv4/devinet.c:1612 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2070 [inline] call_netdevice_notifiers_extack net/core/dev.c:2082 [inline] call_netdevice_notifiers net/core/dev.c:2096 [inline] unregister_netdevice_many+0x103d/0x1a00 net/core/dev.c:11176 vti6_exit_batch_net+0x273/0x2c0 net/ipv6/ip6_vti.c:1201 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x605/0xae0 net/core/net_namespace.c:599 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 kthread+0x3f5/0x4f0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff88813242c000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 24 bytes inside of 512-byte region [ffff88813242c000, ffff88813242c200) The buggy address belongs to the page: page:ffffea0004c90b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13242c head:ffffea0004c90b00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 318, ts 24990140334, free_ts 0 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_trace+0x146/0x270 mm/slub.c:3272 kmalloc include/linux/slab.h:619 [inline] kzalloc include/linux/slab.h:750 [inline] inetdev_init+0x81/0x500 net/ipv4/devinet.c:266 inetdev_event+0x1f4/0x1060 net/ipv4/devinet.c:1544 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2070 [inline] call_netdevice_notifiers_extack net/core/dev.c:2082 [inline] call_netdevice_notifiers+0x119/0x190 net/core/dev.c:2096 register_netdevice+0x110a/0x1490 net/core/dev.c:10462 __ip_tunnel_create+0x2c7/0x390 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x2be/0x730 net/ipv4/ip_tunnel.c:1070 vti_init_net+0x2f/0x140 net/ipv4/ip_vti.c:504 page_owner free stack trace missing Memory state around the buggy address: ffff88813242bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88813242bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88813242c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88813242c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88813242c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================