Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   31.581997] ==================================================================
[   31.582143] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   31.582207] Read of size 1 at addr ffff800080be7b4a by task kunit_try_catch/285
[   31.582302] 
[   31.582336] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   31.582426] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.582645] Hardware name: linux,dummy-virt (DT)
[   31.582689] Call trace:
[   31.582776]  show_stack+0x20/0x38 (C)
[   31.582848]  dump_stack_lvl+0x8c/0xd0
[   31.582898]  print_report+0x310/0x5d0
[   31.582944]  kasan_report+0xdc/0x128
[   31.583204]  __asan_report_load1_noabort+0x20/0x30
[   31.583338]  kasan_alloca_oob_right+0x2dc/0x340
[   31.583422]  kunit_try_run_case+0x170/0x3f0
[   31.583500]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.583575]  kthread+0x328/0x630
[   31.583671]  ret_from_fork+0x10/0x20
[   31.583816] 
[   31.583889] The buggy address belongs to stack of task kunit_try_catch/285
[   31.583998] 
[   31.584063] The buggy address ffff800080be7b4a belongs to a vmalloc virtual mapping
[   31.584408] The buggy address belongs to the physical page:
[   31.584514] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107370
[   31.584753] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.584866] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   31.584923] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   31.584964] page dumped because: kasan: bad access detected
[   31.584998] 
[   31.585018] Memory state around the buggy address:
[   31.585430]  ffff800080be7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.585604]  ffff800080be7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.585742] >ffff800080be7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   31.585809]                                               ^
[   31.585949]  ffff800080be7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   31.586073]  ffff800080be7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   31.586387] ==================================================================

[   25.971684] ==================================================================
[   25.972210] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   25.972544] Read of size 1 at addr ffff888106217c4a by task kunit_try_catch/303
[   25.972859] 
[   25.973048] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   25.973107] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   25.973121] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.973143] Call Trace:
[   25.973159]  <TASK>
[   25.973179]  dump_stack_lvl+0x73/0xb0
[   25.973213]  print_report+0xd1/0x610
[   25.973236]  ? __virt_addr_valid+0x1db/0x2d0
[   25.973262]  ? kasan_alloca_oob_right+0x329/0x390
[   25.973284]  ? kasan_addr_to_slab+0x11/0xa0
[   25.973304]  ? kasan_alloca_oob_right+0x329/0x390
[   25.973326]  kasan_report+0x141/0x180
[   25.973348]  ? kasan_alloca_oob_right+0x329/0x390
[   25.973376]  __asan_report_load1_noabort+0x18/0x20
[   25.973400]  kasan_alloca_oob_right+0x329/0x390
[   25.973421]  ? __kasan_check_write+0x18/0x20
[   25.973444]  ? __pfx_sched_clock_cpu+0x10/0x10
[   25.973467]  ? finish_task_switch.isra.0+0x153/0x700
[   25.973489]  ? __ww_mutex_lock.constprop.0+0x148e/0x1e90
[   25.973517]  ? trace_hardirqs_on+0x37/0xe0
[   25.973542]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   25.973567]  ? __schedule+0x10cc/0x2b60
[   25.973589]  ? __pfx_read_tsc+0x10/0x10
[   25.973611]  ? ktime_get_ts64+0x86/0x230
[   25.973637]  kunit_try_run_case+0x1a5/0x480
[   25.973660]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.973680]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.973717]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.973741]  ? __kthread_parkme+0x82/0x180
[   25.973782]  ? preempt_count_sub+0x50/0x80
[   25.973805]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.973826]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.973851]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.973892]  kthread+0x337/0x6f0
[   25.973912]  ? trace_preempt_on+0x20/0xc0
[   25.973934]  ? __pfx_kthread+0x10/0x10
[   25.973955]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.973977]  ? calculate_sigpending+0x7b/0xa0
[   25.974001]  ? __pfx_kthread+0x10/0x10
[   25.974022]  ret_from_fork+0x116/0x1d0
[   25.974041]  ? __pfx_kthread+0x10/0x10
[   25.974061]  ret_from_fork_asm+0x1a/0x30
[   25.974093]  </TASK>
[   25.974105] 
[   25.982153] The buggy address belongs to stack of task kunit_try_catch/303
[   25.982405] 
[   25.982472] The buggy address belongs to the physical page:
[   25.982661] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106217
[   25.983223] flags: 0x200000000000000(node=0|zone=2)
[   25.983460] raw: 0200000000000000 ffffea00041885c8 ffffea00041885c8 0000000000000000
[   25.983822] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   25.984184] page dumped because: kasan: bad access detected
[   25.984407] 
[   25.984496] Memory state around the buggy address:
[   25.984650]  ffff888106217b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.984959]  ffff888106217b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.985227] >ffff888106217c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   25.985532]                                               ^
[   25.985789]  ffff888106217c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   25.986177]  ffff888106217d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   25.986431] ==================================================================