================================================================== BUG: KASAN: slab-use-after-free in string_nocheck lib/vsprintf.c:648 [inline] BUG: KASAN: slab-use-after-free in string+0x216/0x2d0 lib/vsprintf.c:730 Read of size 1 at addr ffff888026512040 by task syz.4.436/7595 CPU: 0 UID: 0 PID: 7595 Comm: syz.4.436 Tainted: G L Y syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP, [Y]=FORCED_BIND Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 string_nocheck lib/vsprintf.c:648 [inline] string+0x216/0x2d0 lib/vsprintf.c:730 vsnprintf+0x74a/0xef0 lib/vsprintf.c:2946 seq_vprintf fs/seq_file.c:392 [inline] seq_printf+0x188/0x290 fs/seq_file.c:407 irq_seq_show+0x5f3/0x860 kernel/irq/proc.c:601 seq_read_iter+0x8d5/0xca0 fs/seq_file.c:273 proc_reg_read_iter+0x1b7/0x280 fs/proc/inode.c:299 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x595/0xa80 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f488279e159 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:00007f48836c2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f4882a26180 RCX: 00007f488279e159 RDX: 00000000000003e8 RSI: 0000200000000400 RDI: 0000000000000005 RBP: 00007f488283506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4882a26218 R14: 00007f4882a26180 R15: 00007fff7c1b00d8 Allocated by task 5622: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_node_noprof+0x4b4/0x720 mm/slub.c:5543 _kmalloc_node_noprof include/linux/slab.h:1200 [inline] __vmalloc_area_node mm/vmalloc.c:3937 [inline] __vmalloc_node_range_noprof+0x5d1/0x16f0 mm/vmalloc.c:4159 __vmalloc_node_noprof mm/vmalloc.c:4220 [inline] vzalloc_noprof+0xb2/0xe0 mm/vmalloc.c:4298 alloc_counters+0x63/0x5d0 net/ipv6/netfilter/ip6_tables.c:820 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:842 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1042 [inline] do_ip6t_get_ctl+0xb17/0x12f0 net/ipv6/netfilter/ip6_tables.c:1683 nf_getsockopt+0x26e/0x290 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x213/0x2c0 net/ipv6/ipv6_sockglue.c:1371 do_sock_getsockopt+0x4aa/0x640 net/socket.c:2505 __sys_getsockopt net/socket.c:2536 [inline] __do_sys_getsockopt net/socket.c:2543 [inline] __se_sys_getsockopt net/socket.c:2540 [inline] __x64_sys_getsockopt+0x1a4/0x240 net/socket.c:2540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5622: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x1c5/0x650 mm/slub.c:6923 vfree+0x426/0x490 mm/vmalloc.c:3555 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:885 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1042 [inline] do_ip6t_get_ctl+0xf3e/0x12f0 net/ipv6/netfilter/ip6_tables.c:1683 nf_getsockopt+0x26e/0x290 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x213/0x2c0 net/ipv6/ipv6_sockglue.c:1371 do_sock_getsockopt+0x4aa/0x640 net/socket.c:2505 __sys_getsockopt net/socket.c:2536 [inline] __do_sys_getsockopt net/socket.c:2543 [inline] __se_sys_getsockopt net/socket.c:2540 [inline] __x64_sys_getsockopt+0x1a4/0x240 net/socket.c:2540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888026512040 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff888026512040, ffff888026512048) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888026512000 pfn:0x26512 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801b041500 ffffea0000aef610 ffffea0000a018d0 raw: ffff888026512000 000000000080007c 00000000f5000000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 4930799702 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1854 prep_new_page mm/page_alloc.c:1862 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3933 __alloc_frozen_pages_noprof+0x1fc/0x400 mm/page_alloc.c:5471 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_noprof+0x476/0x710 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] acpi_ns_internalize_name+0x2da/0x3f0 drivers/acpi/acpica/nsutils.c:331 acpi_ns_get_node_unlocked+0x186/0x480 drivers/acpi/acpica/nsutils.c:666 acpi_ns_get_node+0x76/0xc0 drivers/acpi/acpica/nsutils.c:726 acpi_ns_evaluate+0x28c/0x1320 drivers/acpi/acpica/nseval.c:62 acpi_evaluate_object+0x657/0xd70 drivers/acpi/acpica/nsxfeval.c:354 acpi_get_physical_device_location+0xa0/0x2d0 drivers/acpi/utils.c:504 dev_add_physical_location+0x10b/0x460 drivers/base/physical_location.c:21 device_add_attrs+0x49c/0x600 drivers/base/core.c:3008 device_add+0x488/0xb80 drivers/base/core.c:3715 page_owner free stack trace missing Memory state around the buggy address: ffff888026511f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888026511f80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888026512000: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ^ ffff888026512080: 05 fc fc fc 07 fc fc fc 07 fc fc fc 07 fc fc fc ffff888026512100: 07 fc fc fc 07 fc fc fc 07 fc fc fc 07 fc fc fc ==================================================================