loop8: detected capacity change from 0 to 256 ================================================================== 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 ffff888101bef898 by task syz.8.494/2192 CPU: 0 PID: 2192 Comm: syz.8.494 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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 traverse+0x1f2/0x590 fs/seq_file.c:111 seq_read_iter+0xbcd/0xce0 fs/seq_file.c:195 proc_reg_read_iter+0x1be/0x290 fs/proc/inode.c:300 do_iter_readv_writev+0x477/0x5f0 fs/read_write.c:-1 do_iter_read+0x1fa/0x780 fs/read_write.c:790 vfs_readv fs/read_write.c:910 [inline] do_preadv+0x233/0x390 fs/read_write.c:1002 __do_sys_preadv fs/read_write.c:1052 [inline] __se_sys_preadv fs/read_write.c:1047 [inline] __x64_sys_preadv+0x9e/0xb0 fs/read_write.c:1047 x64_sys_call+0x4f8/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:296 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:0x7f38afc3a559 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:00007f38ae692028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f38afec0fa0 RCX: 00007f38afc3a559 RDX: 0000000000000001 RSI: 0000200000000280 RDI: 0000000000000008 RBP: 00007f38afcd1b20 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000400003 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f38afec1038 R14: 00007f38afec0fa0 R15: 00007fff777a3388 Allocated by task 912: 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_node include/linux/slab.h:487 [inline] kmalloc_node include/linux/slab.h:642 [inline] __vmalloc_area_node mm/vmalloc.c:2967 [inline] __vmalloc_node_range+0x384/0xad0 mm/vmalloc.c:3147 __vmalloc_node mm/vmalloc.c:3212 [inline] vzalloc+0x78/0x90 mm/vmalloc.c:3282 xt_counters_alloc+0x44/0x50 net/netfilter/x_tables.c:1402 __do_replace+0xa8/0x9f0 net/ipv6/netfilter/ip6_tables.c:1068 do_replace net/ipv6/netfilter/ip6_tables.c:1163 [inline] do_ip6t_set_ctl+0xa98/0xd80 net/ipv6/netfilter/ip6_tables.c:1648 nf_setsockopt+0x272/0x2a0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x258f/0x3750 net/ipv6/ipv6_sockglue.c:1011 tcp_setsockopt+0x22b/0x1e90 net/ipv4/tcp.c:3715 sock_common_setsockopt+0xa0/0xb0 net/core/sock.c:3475 __sys_setsockopt+0x2e9/0x470 net/socket.c:2203 __do_sys_setsockopt net/socket.c:2214 [inline] __se_sys_setsockopt net/socket.c:2211 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2211 x64_sys_call+0x982/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55 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 912: 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 kvfree+0x35/0x40 mm/util.c:661 __vunmap+0x8e6/0x980 mm/vmalloc.c:2666 __vfree mm/vmalloc.c:2709 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2740 __do_replace+0x891/0x9f0 net/ipv6/netfilter/ip6_tables.c:1112 do_replace net/ipv6/netfilter/ip6_tables.c:1163 [inline] do_ip6t_set_ctl+0xa98/0xd80 net/ipv6/netfilter/ip6_tables.c:1648 nf_setsockopt+0x272/0x2a0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x258f/0x3750 net/ipv6/ipv6_sockglue.c:1011 tcp_setsockopt+0x22b/0x1e90 net/ipv4/tcp.c:3715 sock_common_setsockopt+0xa0/0xb0 net/core/sock.c:3475 __sys_setsockopt+0x2e9/0x470 net/socket.c:2203 __do_sys_setsockopt net/socket.c:2214 [inline] __se_sys_setsockopt net/socket.c:2211 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2211 x64_sys_call+0x982/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55 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 The buggy address belongs to the object at ffff888101bef898 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff888101bef898, ffff888101bef8a0) The buggy address belongs to the page: page:ffffea000406fbc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bef flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea00042ac800 0000001c0000001c 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, ts 1866455499, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 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] acpi_os_allocate include/acpi/platform/aclinuxex.h:52 [inline] acpi_ex_allocate_name_string drivers/acpi/acpica/exnames.c:66 [inline] acpi_ex_get_name_string+0x5a9/0xca0 drivers/acpi/acpica/exnames.c:367 acpi_ds_create_operand+0x168/0x8b0 drivers/acpi/acpica/dsutils.c:446 acpi_ds_create_operands+0x271/0x410 drivers/acpi/acpica/dsutils.c:707 acpi_ds_exec_end_op+0x28a/0x1190 drivers/acpi/acpica/dswexec.c:385 acpi_ps_parse_loop+0xc49/0x1c50 drivers/acpi/acpica/psloop.c:553 acpi_ps_parse_aml+0x214/0x9a0 drivers/acpi/acpica/psparse.c:489 acpi_ps_execute_method+0x681/0x7b0 drivers/acpi/acpica/psxface.c:190 acpi_ns_evaluate+0x650/0xa20 drivers/acpi/acpica/nseval.c:205 page_owner free stack trace missing Memory state around the buggy address: ffff888101bef780: fa fc fc fc fc fa fc fc fc fc fa fc fc fc fc 05 ffff888101bef800: fc fc fc fc fa fc fc fc fc fa fc fc fc fc fa fc >ffff888101bef880: fc fc fc fa fc fc fc fc 05 fc fc fc fc 00 fc fc ^ ffff888101bef900: fc fc 06 fc fc fc fc 00 fc fc fc fc 05 fc fc fc ffff888101bef980: fc fa fc fc fc fc 07 fc fc fc fc fa fc fc fc fc ==================================================================