================================================================== BUG: KASAN: stack-out-of-bounds in symbol_string+0xb6/0x3b0 lib/vsprintf.c:987 Write of size 666 at addr ffffc900047d68e0 by task syz.1.138/6109 CPU: 0 UID: 0 PID: 6109 Comm: syz.1.138 Not tainted 6.11.0-rc4-next-20240822-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memset+0x23/0x50 mm/kasan/shadow.c:84 symbol_string+0xb6/0x3b0 lib/vsprintf.c:987 pointer+0x8cb/0x1210 lib/vsprintf.c:2422 vsnprintf+0xdb0/0x1da0 lib/vsprintf.c:2828 vscnprintf+0x42/0x90 lib/vsprintf.c:2930 panic+0x245/0x880 kernel/panic.c:342 rcu_is_watching_curr_cpu include/linux/context_tracking.h:126 [inline] rcu_is_watching+0x15/0xb0 kernel/rcu/tree.c:737 The buggy address belongs to stack of task syz.1.138/6109 and is located at offset 32 in frame: symbol_string+0x0/0x3b0 This frame has 1 object: [32, 698) 'sym' The buggy address belongs to the virtual mapping at [ffffc900047d0000, ffffc900047d9000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2203 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88807c6fae58 pfn:0x7c6fa memcg:ffff88802c823c82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88807c6fae58 0000000000000000 00000001ffffffff ffff88802c823c82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 2, tgid 2 (kthreadd), ts 76679268783, free_ts 76362201289 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1517 prep_new_page mm/page_alloc.c:1525 [inline] get_page_from_freelist+0x3131/0x3280 mm/page_alloc.c:3476 __alloc_pages_noprof+0x29e/0x780 mm/page_alloc.c:4743 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3600 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0xa40/0x1400 mm/vmalloc.c:3850 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d50 kernel/fork.c:2203 kernel_clone+0x226/0x8f0 kernel/fork.c:2784 kernel_thread+0x1bc/0x240 kernel/fork.c:2846 create_kthread kernel/kthread.c:412 [inline] kthreadd+0x60d/0x810 kernel/kthread.c:765 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 5315 tgid 5315 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_page+0xc07/0xd90 mm/page_alloc.c:2651 discard_slab mm/slub.c:2630 [inline] __put_partials+0xeb/0x130 mm/slub.c:3098 put_cpu_partial+0x17c/0x250 mm/slub.c:3173 __slab_free+0x2ea/0x3d0 mm/slub.c:4391 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4085 [inline] kmem_cache_alloc_node_noprof+0x16b/0x320 mm/slub.c:4128 __alloc_skb+0x1c3/0x440 net/core/skbuff.c:667 alloc_skb include/linux/skbuff.h:1320 [inline] alloc_skb_with_frags+0xc3/0x770 net/core/skbuff.c:6563 sock_alloc_send_pskb+0x91a/0xa60 net/core/sock.c:2815 sock_alloc_send_skb include/net/sock.h:1778 [inline] mld_newpack+0x1c3/0xa90 net/ipv6/mcast.c:1746 add_grhead net/ipv6/mcast.c:1849 [inline] add_grec+0x1492/0x19a0 net/ipv6/mcast.c:1987 mld_send_cr net/ipv6/mcast.c:2113 [inline] mld_ifc_work+0x691/0xd90 net/ipv6/mcast.c:2650 process_one_work kernel/workqueue.c:3232 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3313 worker_thread+0x86d/0xd10 kernel/workqueue.c:3390 Memory state around the buggy address: ffffc900047d6980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900047d6a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900047d6a80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 ^ ffffc900047d6b00: 00 00 00 f2 f2 f2 f2 f2 04 f3 f3 f3 00 00 00 02 ffffc900047d6b80: f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 f3 ==================================================================