Hay
Date
July 3, 2025, 3:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.736839] ==================================================================
[   17.736919] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   17.737012] Read of size 1 at addr ffff800080a07c2a by task kunit_try_catch/252
[   17.737068] 
[   17.737101] CPU: 0 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   17.737422] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.737464] Hardware name: linux,dummy-virt (DT)
[   17.737623] Call trace:
[   17.737649]  show_stack+0x20/0x38 (C)
[   17.737722]  dump_stack_lvl+0x8c/0xd0
[   17.737773]  print_report+0x310/0x608
[   17.737820]  kasan_report+0xdc/0x128
[   17.737865]  __asan_report_load1_noabort+0x20/0x30
[   17.737916]  kasan_stack_oob+0x238/0x270
[   17.738026]  kunit_try_run_case+0x170/0x3f0
[   17.738080]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.738134]  kthread+0x328/0x630
[   17.738305]  ret_from_fork+0x10/0x20
[   17.738361] 
[   17.738424] The buggy address belongs to stack of task kunit_try_catch/252
[   17.738531]  and is located at offset 138 in frame:
[   17.738674]  kasan_stack_oob+0x0/0x270
[   17.739070] 
[   17.739106] This frame has 4 objects:
[   17.739235]  [48, 49) '__assertion'
[   17.739458]  [64, 72) 'array'
[   17.740815]  ffff800080a07b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.746100]  dump_stack_lvl+0x8c/0xd0
[   17.747545] 
[   17.748454]  ffff800080a07a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.754455] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.755976] 
[   17.756040] The buggy address belongs to the physical page:
[   17.772576] page dumped because: kasan: bad access detected
[   17.773425] ==================================================================

[   12.990471] ==================================================================
[   12.991926] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   12.992174] Read of size 1 at addr ffff888103907d02 by task kunit_try_catch/268
[   12.992416] 
[   12.992513] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   12.992563] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.992575] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.992598] Call Trace:
[   12.992612]  <TASK>
[   12.992631]  dump_stack_lvl+0x73/0xb0
[   12.992659]  print_report+0xd1/0x650
[   12.992683]  ? __virt_addr_valid+0x1db/0x2d0
[   12.992706]  ? kasan_stack_oob+0x2b5/0x300
[   12.992726]  ? kasan_addr_to_slab+0x11/0xa0
[   12.992748]  ? kasan_stack_oob+0x2b5/0x300
[   12.993354]  kasan_report+0x141/0x180
[   12.993389]  ? kasan_stack_oob+0x2b5/0x300
[   12.993417]  __asan_report_load1_noabort+0x18/0x20
[   12.993438]  kasan_stack_oob+0x2b5/0x300
[   12.993459]  ? __pfx_kasan_stack_oob+0x10/0x10
[   12.993480]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   12.993514]  ? __pfx_kasan_stack_oob+0x10/0x10
[   12.993540]  kunit_try_run_case+0x1a5/0x480
[   12.993571]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.993595]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.993621]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.993645]  ? __kthread_parkme+0x82/0x180
[   12.993668]  ? preempt_count_sub+0x50/0x80
[   12.993695]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.993719]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.993743]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.993767]  kthread+0x337/0x6f0
[   12.993784]  ? trace_preempt_on+0x20/0xc0
[   12.993807]  ? __pfx_kthread+0x10/0x10
[   12.993826]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.993847]  ? calculate_sigpending+0x7b/0xa0
[   12.993869]  ? __pfx_kthread+0x10/0x10
[   12.993887]  ret_from_fork+0x41/0x80
[   12.993910]  ? __pfx_kthread+0x10/0x10
[   12.993927]  ret_from_fork_asm+0x1a/0x30
[   12.993958]  </TASK>
[   12.993970] 
[   13.004264] The buggy address belongs to stack of task kunit_try_catch/268
[   13.004690]  and is located at offset 138 in frame:
[   13.004899]  kasan_stack_oob+0x0/0x300
[   13.005220] 
[   13.005352] This frame has 4 objects:
[   13.005590]  [48, 49) '__assertion'
[   13.005613]  [64, 72) 'array'
[   13.005898]  [96, 112) '__assertion'
[   13.006026]  [128, 138) 'stack_array'
[   13.006172] 
[   13.006463] The buggy address belongs to the physical page:
[   13.006786] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103907
[   13.007116] flags: 0x200000000000000(node=0|zone=2)
[   13.007364] raw: 0200000000000000 ffffea00040e41c8 ffffea00040e41c8 0000000000000000
[   13.007643] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.008108] page dumped because: kasan: bad access detected
[   13.008410] 
[   13.008503] Memory state around the buggy address:
[   13.008671]  ffff888103907c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.008890]  ffff888103907c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   13.009206] >ffff888103907d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.009785]                    ^
[   13.009915]  ffff888103907d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   13.010393]  ffff888103907e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.010808] ==================================================================