Hay
Date
July 23, 2025, 3:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.770753] ==================================================================
[   32.771140] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   32.771301] Read of size 1 at addr ffff800080b77b4a by task kunit_try_catch/286
[   32.771352] 
[   32.771387] CPU: 1 UID: 0 PID: 286 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   32.772124] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.772303] Hardware name: linux,dummy-virt (DT)
[   32.772343] Call trace:
[   32.772691]  show_stack+0x20/0x38 (C)
[   32.772766]  dump_stack_lvl+0x8c/0xd0
[   32.772815]  print_report+0x310/0x5e8
[   32.772862]  kasan_report+0xdc/0x128
[   32.772916]  __asan_report_load1_noabort+0x20/0x30
[   32.772965]  kasan_alloca_oob_right+0x2dc/0x340
[   32.773015]  kunit_try_run_case+0x170/0x3f0
[   32.773279]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.773519]  kthread+0x328/0x630
[   32.773569]  ret_from_fork+0x10/0x20
[   32.773762] 
[   32.773829] The buggy address belongs to stack of task kunit_try_catch/286
[   32.774150] 
[   32.774173] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080b70000 allocated at kernel_clone+0x150/0x7b0
[   32.774572] The buggy address belongs to the physical page:
[   32.774610] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109c18
[   32.774878] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.775058] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   32.775284] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   32.775333] page dumped because: kasan: bad access detected
[   32.775367] 
[   32.775635] Memory state around the buggy address:
[   32.775684]  ffff800080b77a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.775731]  ffff800080b77a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.776216] >ffff800080b77b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   32.776416]                                               ^
[   32.776585]  ffff800080b77b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   32.776677]  ffff800080b77c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   32.776815] ==================================================================

[   27.142515] ==================================================================
[   27.143031] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   27.143305] Read of size 1 at addr ffff888106227c4a by task kunit_try_catch/302
[   27.143740] 
[   27.143903] CPU: 1 UID: 0 PID: 302 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   27.143959] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.143972] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.143997] Call Trace:
[   27.144011]  <TASK>
[   27.144292]  dump_stack_lvl+0x73/0xb0
[   27.144334]  print_report+0xd1/0x640
[   27.144360]  ? __virt_addr_valid+0x1db/0x2d0
[   27.144434]  ? kasan_alloca_oob_right+0x329/0x390
[   27.144476]  ? kasan_addr_to_slab+0x11/0xa0
[   27.144497]  ? kasan_alloca_oob_right+0x329/0x390
[   27.144521]  kasan_report+0x141/0x180
[   27.144543]  ? kasan_alloca_oob_right+0x329/0x390
[   27.144571]  __asan_report_load1_noabort+0x18/0x20
[   27.144596]  kasan_alloca_oob_right+0x329/0x390
[   27.144617]  ? __kasan_check_write+0x18/0x20
[   27.144641]  ? __pfx_sched_clock_cpu+0x10/0x10
[   27.144665]  ? finish_task_switch.isra.0+0x153/0x700
[   27.144689]  ? __wait_for_common+0x1fe/0x440
[   27.144711]  ? trace_hardirqs_on+0x37/0xe0
[   27.144738]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   27.144773]  ? __schedule+0x10da/0x2b60
[   27.144798]  ? __pfx_read_tsc+0x10/0x10
[   27.144831]  ? ktime_get_ts64+0x86/0x230
[   27.144856]  kunit_try_run_case+0x1a5/0x480
[   27.144884]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.144906]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.144931]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.144968]  ? __kthread_parkme+0x82/0x180
[   27.144997]  ? preempt_count_sub+0x50/0x80
[   27.145021]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.145045]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.145079]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.145103]  kthread+0x337/0x6f0
[   27.145123]  ? trace_preempt_on+0x20/0xc0
[   27.145155]  ? __pfx_kthread+0x10/0x10
[   27.145176]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.145199]  ? calculate_sigpending+0x7b/0xa0
[   27.145224]  ? __pfx_kthread+0x10/0x10
[   27.145245]  ret_from_fork+0x116/0x1d0
[   27.145265]  ? __pfx_kthread+0x10/0x10
[   27.145286]  ret_from_fork_asm+0x1a/0x30
[   27.145318]  </TASK>
[   27.145329] 
[   27.159578] The buggy address belongs to stack of task kunit_try_catch/302
[   27.160367] 
[   27.160447] The buggy address belongs to the physical page:
[   27.160927] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106227
[   27.161632] flags: 0x200000000000000(node=0|zone=2)
[   27.161818] raw: 0200000000000000 ffffea00041889c8 ffffea00041889c8 0000000000000000
[   27.162308] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   27.163140] page dumped because: kasan: bad access detected
[   27.163677] 
[   27.163868] Memory state around the buggy address:
[   27.164259]  ffff888106227b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.164838]  ffff888106227b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.165091] >ffff888106227c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   27.165679]                                               ^
[   27.166226]  ffff888106227c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   27.166788]  ffff888106227d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.167034] ==================================================================