Hay
Date
July 22, 2025, 2:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.371912] ==================================================================
[   19.372319] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   19.372418] Read of size 1 at addr ffff800080a17c2a by task kunit_try_catch/251
[   19.372482] 
[   19.372517] CPU: 1 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT 
[   19.372600] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.372627] Hardware name: linux,dummy-virt (DT)
[   19.372920] Call trace:
[   19.372980]  show_stack+0x20/0x38 (C)
[   19.373099]  dump_stack_lvl+0x8c/0xd0
[   19.373175]  print_report+0x310/0x5d0
[   19.373223]  kasan_report+0xdc/0x128
[   19.373349]  __asan_report_load1_noabort+0x20/0x30
[   19.373402]  kasan_stack_oob+0x238/0x270
[   19.373460]  kunit_try_run_case+0x170/0x3f0
[   19.373540]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.373838]  kthread+0x328/0x630
[   19.373909]  ret_from_fork+0x10/0x20
[   19.374041] 
[   19.374131] The buggy address belongs to stack of task kunit_try_catch/251
[   19.374335]  and is located at offset 138 in frame:
[   19.374377]  kasan_stack_oob+0x0/0x270
[   19.374961] 
[   19.375025] This frame has 4 objects:
[   19.375807]  [48, 49) '__assertion'
[   19.375949]  [64, 72) 'array'
[   19.375984]  [96, 112) '__assertion'
[   19.376176]  [128, 138) 'stack_array'
[   19.376243] 
[   19.376614] The buggy address ffff800080a17c2a belongs to a vmalloc virtual mapping
[   19.376682] The buggy address belongs to the physical page:
[   19.376735] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078eb
[   19.376843] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.376929] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.376993] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.377227] page dumped because: kasan: bad access detected
[   19.377407] 
[   19.377460] Memory state around the buggy address:
[   19.377588]  ffff800080a17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.377636]  ffff800080a17b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   19.377689] >ffff800080a17c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   19.377746]                                   ^
[   19.377781]  ffff800080a17c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   19.377822]  ffff800080a17d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.377860] ==================================================================

[   12.963893] ==================================================================
[   12.964437] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   12.965574] Read of size 1 at addr ffff888103d9fd02 by task kunit_try_catch/269
[   12.966407] 
[   12.966620] CPU: 1 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT(voluntary) 
[   12.966691] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.966703] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.966726] Call Trace:
[   12.966740]  <TASK>
[   12.966758]  dump_stack_lvl+0x73/0xb0
[   12.966787]  print_report+0xd1/0x610
[   12.966810]  ? __virt_addr_valid+0x1db/0x2d0
[   12.966866]  ? kasan_stack_oob+0x2b5/0x300
[   12.966888]  ? kasan_addr_to_slab+0x11/0xa0
[   12.966909]  ? kasan_stack_oob+0x2b5/0x300
[   12.966931]  kasan_report+0x141/0x180
[   12.966953]  ? kasan_stack_oob+0x2b5/0x300
[   12.966979]  __asan_report_load1_noabort+0x18/0x20
[   12.966999]  kasan_stack_oob+0x2b5/0x300
[   12.967021]  ? __pfx_kasan_stack_oob+0x10/0x10
[   12.967041]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   12.967069]  ? __pfx_kasan_stack_oob+0x10/0x10
[   12.967095]  kunit_try_run_case+0x1a5/0x480
[   12.967118]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.967137]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.967158]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.967182]  ? __kthread_parkme+0x82/0x180
[   12.967203]  ? preempt_count_sub+0x50/0x80
[   12.967242]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.967263]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.967286]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.967310]  kthread+0x337/0x6f0
[   12.967329]  ? trace_preempt_on+0x20/0xc0
[   12.967373]  ? __pfx_kthread+0x10/0x10
[   12.967391]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.967414]  ? calculate_sigpending+0x7b/0xa0
[   12.967435]  ? __pfx_kthread+0x10/0x10
[   12.967454]  ret_from_fork+0x41/0x80
[   12.967475]  ? __pfx_kthread+0x10/0x10
[   12.967493]  ret_from_fork_asm+0x1a/0x30
[   12.967524]  </TASK>
[   12.967535] 
[   12.979352] The buggy address belongs to stack of task kunit_try_catch/269
[   12.979746]  and is located at offset 138 in frame:
[   12.979978]  kasan_stack_oob+0x0/0x300
[   12.980322] 
[   12.980459] This frame has 4 objects:
[   12.980742]  [48, 49) '__assertion'
[   12.980765]  [64, 72) 'array'
[   12.980991]  [96, 112) '__assertion'
[   12.981171]  [128, 138) 'stack_array'
[   12.981421] 
[   12.981734] The buggy address belongs to the physical page:
[   12.981991] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103d9f
[   12.982294] flags: 0x200000000000000(node=0|zone=2)
[   12.982566] raw: 0200000000000000 ffffea00040f67c8 ffffea00040f67c8 0000000000000000
[   12.982854] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.983072] page dumped because: kasan: bad access detected
[   12.983244] 
[   12.983310] Memory state around the buggy address:
[   12.983553]  ffff888103d9fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.983924]  ffff888103d9fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   12.984248] >ffff888103d9fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.984584]                    ^
[   12.984817]  ffff888103d9fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   12.985076]  ffff888103d9fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.985313] ==================================================================