================================================================== BUG: KASAN: use-after-free in string_nocheck lib/vsprintf.c:643 [inline] BUG: KASAN: use-after-free in string+0x20f/0x2a0 lib/vsprintf.c:725 Read of size 1 at addr ffff88810b56e118 by task syz.7.3687/12680 CPU: 1 PID: 12680 Comm: syz.7.3687 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348 string_nocheck lib/vsprintf.c:643 [inline] string+0x20f/0x2a0 lib/vsprintf.c:725 vsnprintf+0xec5/0x1990 lib/vsprintf.c:2805 seq_vprintf fs/seq_file.c:391 [inline] seq_printf+0x185/0x280 fs/seq_file.c:406 show_interrupts+0x8f9/0xa00 kernel/irq/proc.c:527 traverse+0x215/0x5e0 fs/seq_file.c:111 seq_read_iter+0xc68/0xd80 fs/seq_file.c:195 proc_reg_read_iter+0x1e0/0x2b0 fs/proc/inode.c:305 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_read+0x64b/0xb30 fs/read_write.c:796 vfs_readv fs/read_write.c:916 [inline] do_preadv+0x233/0x390 fs/read_write.c:1008 __do_sys_preadv fs/read_write.c:1058 [inline] __se_sys_preadv fs/read_write.c:1053 [inline] __x64_sys_preadv+0x9e/0xb0 fs/read_write.c:1053 x64_sys_call+0x370/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:296 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:0x7fd0ae59f559 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:00007fd0af37f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007fd0ae825fa0 RCX: 00007fd0ae59f559 RDX: 0000000000000001 RSI: 0000200000000380 RDI: 0000000000000006 RBP: 00007fd0ae636b20 R08: 0000000000000004 R09: 0000000000000000 R10: 000000000000ffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd0ae826038 R14: 00007fd0ae825fa0 R15: 00007fff81c51bc8 Allocated by task 12122: 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_track_caller+0xb1/0x1e0 mm/slab_common.c:958 kmemdup+0x2b/0x60 mm/util.c:134 kmemdup include/linux/fortify-string.h:585 [inline] bpf_prog_store_orig_filter net/core/filter.c:1157 [inline] bpf_prog_create_from_user+0x284/0x420 net/core/filter.c:1441 seccomp_prepare_filter kernel/seccomp.c:671 [inline] seccomp_prepare_user_filter kernel/seccomp.c:708 [inline] seccomp_set_mode_filter kernel/seccomp.c:1869 [inline] do_seccomp+0x801/0xec0 kernel/seccomp.c:1989 __do_sys_seccomp kernel/seccomp.c:2008 [inline] __se_sys_seccomp kernel/seccomp.c:2005 [inline] __x64_sys_seccomp+0x7b/0x90 kernel/seccomp.c:2005 x64_sys_call+0x721/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:318 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 12122: 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 bpf_release_orig_filter net/core/filter.c:1172 [inline] __bpf_prog_release net/core/filter.c:1182 [inline] bpf_prog_destroy+0x9f/0xe0 net/core/filter.c:1462 seccomp_filter_free kernel/seccomp.c:521 [inline] __put_seccomp_filter kernel/seccomp.c:541 [inline] __seccomp_filter_release+0x15f/0x1e0 kernel/seccomp.c:550 seccomp_filter_release+0x8b/0xb0 kernel/seccomp.c:571 release_task+0x1147/0x1200 kernel/exit.c:285 exit_notify kernel/exit.c:773 [inline] do_exit+0x1a34/0x29f0 kernel/exit.c:908 do_group_exit+0x21b/0x2e0 kernel/exit.c:1040 get_signal+0x167c/0x1700 kernel/signal.c:2904 arch_do_signal_or_restart+0xd1/0x11c0 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x7a/0xb0 kernel/entry/common.c:174 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88810b56e118 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff88810b56e118, ffff88810b56e120) The buggy address belongs to the physical page: page:ffffea00042d5b80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10b56e flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000001 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 1, tgid 1 (swapper/0), ts 4606639073, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 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] kzalloc include/linux/slab.h:699 [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_ns_evaluate+0x35d/0xa20 drivers/acpi/acpica/nseval.c:62 acpi_rs_set_srs_method_data+0x294/0x380 drivers/acpi/acpica/rsutils.c:746 acpi_set_current_resources+0x128/0x150 drivers/acpi/acpica/rsxface.c:269 acpi_pci_link_set+0x50e/0xa80 drivers/acpi/pci_link.c:343 page_owner free stack trace missing Memory state around the buggy address: ffff88810b56e000: fa fc fc fc fc 05 fc fc fc fc 05 fc fc fc fc 06 ffff88810b56e080: fc fc fc fc 04 fc fc fc fc 05 fc fc fc fc 05 fc >ffff88810b56e100: fc fc fc fa fc fc fc fc 05 fc fc fc fc 06 fc fc ^ ffff88810b56e180: fc fc 00 fc fc fc fc 05 fc fc fc fc 05 fc fc fc ffff88810b56e200: fc 05 fc fc fc fc 06 fc fc fc fc 00 fc fc fc fc ==================================================================