================================================================== BUG: KASAN: use-after-free in string_nocheck lib/vsprintf.c:642 [inline] BUG: KASAN: use-after-free in string+0x20f/0x2a0 lib/vsprintf.c:724 Read of size 1 at addr ffff8881059d2cf8 by task syz.6.1191/4602 CPU: 0 PID: 4602 Comm: syz.6.1191 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 string_nocheck lib/vsprintf.c:642 [inline] string+0x20f/0x2a0 lib/vsprintf.c:724 vsnprintf+0xec5/0x1990 lib/vsprintf.c:2811 seq_vprintf fs/seq_file.c:407 [inline] seq_printf+0x185/0x280 fs/seq_file.c:422 show_interrupts+0x91d/0xa90 kernel/irq/proc.c:527 seq_read_iter+0x908/0xce0 fs/seq_file.c:272 proc_reg_read_iter+0x1be/0x290 fs/proc/inode.c:300 call_read_iter include/linux/fs.h:2206 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x6c0/0xc20 fs/read_write.c:485 ksys_read+0x14a/0x260 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:631 x64_sys_call+0x96d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1 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:0x7f0e08a29159 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:00007f0e07482028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f0e08cb0fa0 RCX: 00007f0e08a29159 RDX: 0000000000002020 RSI: 0000200000006a00 RDI: 000000000000000d RBP: 00007f0e08ac006b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0e08cb1038 R14: 00007f0e08cb0fa0 R15: 00007ffcbe3df3c8 Allocated by task 4562: 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_track_caller+0x13c/0x2c0 mm/slub.c:4959 kstrdup mm/util.c:64 [inline] kstrdup_const+0x55/0x90 mm/util.c:87 __kernfs_new_node+0xa6/0x670 fs/kernfs/dir.c:589 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:669 kernfs_create_dir_ns+0x47/0x130 fs/kernfs/dir.c:1017 sysfs_create_dir_ns+0x128/0x290 fs/sysfs/dir.c:59 create_dir lib/kobject.c:89 [inline] kobject_add_internal+0x774/0xde0 lib/kobject.c:263 kobject_add_varg lib/kobject.c:398 [inline] kobject_init_and_add+0x128/0x190 lib/kobject.c:481 netdev_queue_add_kobject net/core/net-sysfs.c:1666 [inline] netdev_queue_update_kobjects+0x18e/0x3e0 net/core/net-sysfs.c:1711 register_queue_kobjects net/core/net-sysfs.c:1772 [inline] netdev_register_kobject+0x281/0x330 net/core/net-sysfs.c:2018 register_netdevice+0xeaa/0x1490 net/core/dev.c:10431 __ip_tunnel_create+0x2c7/0x390 net/ipv4/ip_tunnel.c:267 ip_tunnel_init_net+0x2be/0x730 net/ipv4/ip_tunnel.c:1070 erspan_init_net+0x29/0x30 net/ipv4/ip_gre.c:1736 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:3249 __do_sys_unshare kernel/fork.c:3326 [inline] __se_sys_unshare kernel/fork.c:3324 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3324 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 1431: 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] kfree+0xc4/0x270 mm/slub.c:4588 kfree_const+0x39/0x40 mm/util.c:44 kernfs_put+0x1be/0x480 fs/kernfs/dir.c:538 sysfs_put include/linux/sysfs.h:641 [inline] __kobject_del+0xea/0x2c0 lib/kobject.c:629 kobject_cleanup lib/kobject.c:704 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1db/0x270 lib/kobject.c:761 netdev_queue_update_kobjects+0x37b/0x3e0 net/core/net-sysfs.c:1726 remove_queue_kobjects net/core/net-sysfs.c:1823 [inline] netdev_unregister_kobject+0x106/0x260 net/core/net-sysfs.c:1976 unregister_netdevice_many+0x14e4/0x1a00 net/core/dev.c:11203 ip_tunnel_delete_nets+0x343/0x390 net/ipv4/ip_tunnel.c:1123 erspan_exit_batch_net+0x22/0x30 net/ipv4/ip_gre.c:1742 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 ffff8881059d2cf8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff8881059d2cf8, ffff8881059d2d00) The buggy address belongs to the page: page:ffffea0004167480 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881059d22d0 pfn:0x1059d2 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea00048974c0 0000000f0000000f ffff888100042300 raw: ffff8881059d22d0 0000000080660059 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 1, ts 1618287129, 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] __kmalloc+0x16a/0x2c0 mm/slub.c:4432 kmalloc include/linux/slab.h:624 [inline] kzalloc include/linux/slab.h:750 [inline] acpi_os_allocate_zeroed include/acpi/platform/aclinuxex.h:57 [inline] acpi_ns_internalize_name+0x2cd/0x3b0 drivers/acpi/acpica/nsutils.c:331 acpi_ns_get_node_unlocked drivers/acpi/acpica/nsutils.c:666 [inline] acpi_ns_get_node+0x1a7/0x360 drivers/acpi/acpica/nsutils.c:726 acpi_get_handle+0x184/0x290 drivers/acpi/acpica/nsxfname.c:98 acpi_has_method+0x89/0xe0 drivers/acpi/utils.c:553 acpi_is_ioapic drivers/acpi/ioapic.c:74 [inline] handle_ioapic_add+0xaf/0x960 drivers/acpi/ioapic.c:106 acpi_ns_walk_namespace+0x243/0x660 drivers/acpi/acpica/nswalk.c:-1 acpi_walk_namespace+0xf6/0x140 drivers/acpi/acpica/nsxfeval.c:606 acpi_ioapic_add+0x96/0x110 drivers/acpi/ioapic.c:205 page_owner free stack trace missing Memory state around the buggy address: ffff8881059d2b80: fc fc 05 fc fc fc fc 05 fc fc fc fc 00 fc fc fc ffff8881059d2c00: fc 05 fc fc fc fc 05 fc fc fc fc 06 fc fc fc fc >ffff8881059d2c80: 00 fc fc fc fc 05 fc fc fc fc 00 fc fc fc fc fa ^ ffff8881059d2d00: fc fc fc fc 07 fc fc fc fc 05 fc fc fc fc 05 fc ffff8881059d2d80: fc fc fc 00 fc fc fc fc fa fc fc fc fc 07 fc fc ==================================================================