Hay
Date
July 18, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.575929] ==================================================================
[   17.576096] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   17.576172] Read of size 1 at addr ffff800080a77c2a by task kunit_try_catch/249
[   17.576227] 
[   17.576263] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.576605] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.576696] Hardware name: linux,dummy-virt (DT)
[   17.576732] Call trace:
[   17.576802]  show_stack+0x20/0x38 (C)
[   17.577107]  dump_stack_lvl+0x8c/0xd0
[   17.577170]  print_report+0x310/0x5d0
[   17.577276]  kasan_report+0xdc/0x128
[   17.577369]  __asan_report_load1_noabort+0x20/0x30
[   17.577637]  kasan_stack_oob+0x238/0x270
[   17.577795]  kunit_try_run_case+0x170/0x3f0
[   17.577977]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.578143]  kthread+0x328/0x630
[   17.578190]  ret_from_fork+0x10/0x20
[   17.578596] 
[   17.579001] The buggy address belongs to stack of task kunit_try_catch/249
[   17.579509]  and is located at offset 138 in frame:
[   17.579559]  kasan_stack_oob+0x0/0x270
[   17.580477] 
[   17.580579] This frame has 4 objects:
[   17.581295]  [48, 49) '__assertion'
[   17.581424]  [64, 72) 'array'
[   17.581527]  [96, 112) '__assertion'
[   17.582062]  [128, 138) 'stack_array'
[   17.582181] 
[   17.582211] The buggy address ffff800080a77c2a belongs to a vmalloc virtual mapping
[   17.582267] The buggy address belongs to the physical page:
[   17.582301] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f67
[   17.582398] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.582465] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.582803] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.582901] page dumped because: kasan: bad access detected
[   17.582999] 
[   17.583126] Memory state around the buggy address:
[   17.583472]  ffff800080a77b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.583835]  ffff800080a77b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   17.583899] >ffff800080a77c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   17.584209]                                   ^
[   17.584351]  ffff800080a77c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   17.584430]  ffff800080a77d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.584756] ==================================================================

[   13.980276] ==================================================================
[   13.980965] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   13.981596] Read of size 1 at addr ffff88810392fd02 by task kunit_try_catch/268
[   13.982595] 
[   13.982741] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.982787] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.982823] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.982844] Call Trace:
[   13.982870]  <TASK>
[   13.982886]  dump_stack_lvl+0x73/0xb0
[   13.982916]  print_report+0xd1/0x610
[   13.982938]  ? __virt_addr_valid+0x1db/0x2d0
[   13.982962]  ? kasan_stack_oob+0x2b5/0x300
[   13.982981]  ? kasan_addr_to_slab+0x11/0xa0
[   13.983001]  ? kasan_stack_oob+0x2b5/0x300
[   13.983020]  kasan_report+0x141/0x180
[   13.983042]  ? kasan_stack_oob+0x2b5/0x300
[   13.983066]  __asan_report_load1_noabort+0x18/0x20
[   13.983092]  kasan_stack_oob+0x2b5/0x300
[   13.983111]  ? __pfx_kasan_stack_oob+0x10/0x10
[   13.983130]  ? finish_task_switch.isra.0+0x153/0x700
[   13.983153]  ? __switch_to+0x47/0xf50
[   13.983179]  ? __schedule+0x10cc/0x2b60
[   13.983201]  ? __pfx_read_tsc+0x10/0x10
[   13.983222]  ? ktime_get_ts64+0x86/0x230
[   13.983247]  kunit_try_run_case+0x1a5/0x480
[   13.983271]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.983309]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.983332]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.983356]  ? __kthread_parkme+0x82/0x180
[   13.983376]  ? preempt_count_sub+0x50/0x80
[   13.983400]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.983423]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.983447]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.983477]  kthread+0x337/0x6f0
[   13.983496]  ? trace_preempt_on+0x20/0xc0
[   13.983520]  ? __pfx_kthread+0x10/0x10
[   13.983540]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.983562]  ? calculate_sigpending+0x7b/0xa0
[   13.983586]  ? __pfx_kthread+0x10/0x10
[   13.983606]  ret_from_fork+0x116/0x1d0
[   13.983626]  ? __pfx_kthread+0x10/0x10
[   13.983645]  ret_from_fork_asm+0x1a/0x30
[   13.983677]  </TASK>
[   13.983688] 
[   13.994520] The buggy address belongs to stack of task kunit_try_catch/268
[   13.995136]  and is located at offset 138 in frame:
[   13.995371]  kasan_stack_oob+0x0/0x300
[   13.995969] 
[   13.996182] This frame has 4 objects:
[   13.996431]  [48, 49) '__assertion'
[   13.996501]  [64, 72) 'array'
[   13.996816]  [96, 112) '__assertion'
[   13.996987]  [128, 138) 'stack_array'
[   13.997263] 
[   13.997720] The buggy address belongs to the physical page:
[   13.998214] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10392f
[   13.998702] flags: 0x200000000000000(node=0|zone=2)
[   13.998961] raw: 0200000000000000 ffffea00040e4bc8 ffffea00040e4bc8 0000000000000000
[   13.999623] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.999950] page dumped because: kasan: bad access detected
[   14.000212] 
[   14.000303] Memory state around the buggy address:
[   14.000519]  ffff88810392fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.000820]  ffff88810392fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.001127] >ffff88810392fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.001955]                    ^
[   14.002110]  ffff88810392fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.002824]  ffff88810392fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.003158] ==================================================================