Hay
Date
July 12, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.667545] ==================================================================
[   18.667624] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   18.667678] Read of size 1 at addr ffff800080907c2a by task kunit_try_catch/249
[   18.667728] 
[   18.667759] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.667844] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.667949] Hardware name: linux,dummy-virt (DT)
[   18.667981] Call trace:
[   18.668022]  show_stack+0x20/0x38 (C)
[   18.668073]  dump_stack_lvl+0x8c/0xd0
[   18.668122]  print_report+0x310/0x5d0
[   18.668186]  kasan_report+0xdc/0x128
[   18.668234]  __asan_report_load1_noabort+0x20/0x30
[   18.668376]  kasan_stack_oob+0x238/0x270
[   18.668567]  kunit_try_run_case+0x170/0x3f0
[   18.668676]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.668876]  kthread+0x328/0x630
[   18.668923]  ret_from_fork+0x10/0x20
[   18.668973] 
[   18.669346] The buggy address belongs to stack of task kunit_try_catch/249
[   18.669717]  and is located at offset 138 in frame:
[   18.669857]  kasan_stack_oob+0x0/0x270
[   18.670517] 
[   18.670610] This frame has 4 objects:
[   18.671048]  [48, 49) '__assertion'
[   18.671337]  [64, 72) 'array'
[   18.671454]  [96, 112) '__assertion'
[   18.671575]  [128, 138) 'stack_array'
[   18.671753] 
[   18.671782] The buggy address ffff800080907c2a belongs to a vmalloc virtual mapping
[   18.672147] The buggy address belongs to the physical page:
[   18.672275] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065fb
[   18.672378] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.672821] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.673788] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.673886] page dumped because: kasan: bad access detected
[   18.674006] 
[   18.674029] Memory state around the buggy address:
[   18.674066]  ffff800080907b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.674123]  ffff800080907b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   18.674510] >ffff800080907c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   18.674710]                                   ^
[   18.674789]  ffff800080907c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   18.674941]  ffff800080907d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.675029] ==================================================================

[   14.825924] ==================================================================
[   14.827644] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.828336] Read of size 1 at addr ffff888103af7d02 by task kunit_try_catch/266
[   14.829158] 
[   14.829393] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.829450] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.829592] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.829614] Call Trace:
[   14.829627]  <TASK>
[   14.829642]  dump_stack_lvl+0x73/0xb0
[   14.829672]  print_report+0xd1/0x610
[   14.829696]  ? __virt_addr_valid+0x1db/0x2d0
[   14.829719]  ? kasan_stack_oob+0x2b5/0x300
[   14.829740]  ? kasan_addr_to_slab+0x11/0xa0
[   14.829761]  ? kasan_stack_oob+0x2b5/0x300
[   14.829783]  kasan_report+0x141/0x180
[   14.829805]  ? kasan_stack_oob+0x2b5/0x300
[   14.829832]  __asan_report_load1_noabort+0x18/0x20
[   14.829858]  kasan_stack_oob+0x2b5/0x300
[   14.829879]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.829900]  ? finish_task_switch.isra.0+0x153/0x700
[   14.829924]  ? __switch_to+0x47/0xf50
[   14.829952]  ? __schedule+0x10cc/0x2b60
[   14.829975]  ? __pfx_read_tsc+0x10/0x10
[   14.830016]  ? ktime_get_ts64+0x86/0x230
[   14.830069]  kunit_try_run_case+0x1a5/0x480
[   14.830095]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.830120]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.830144]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.830171]  ? __kthread_parkme+0x82/0x180
[   14.830192]  ? preempt_count_sub+0x50/0x80
[   14.830216]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.830242]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.830279]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.830306]  kthread+0x337/0x6f0
[   14.830326]  ? trace_preempt_on+0x20/0xc0
[   14.830351]  ? __pfx_kthread+0x10/0x10
[   14.830373]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.830396]  ? calculate_sigpending+0x7b/0xa0
[   14.830421]  ? __pfx_kthread+0x10/0x10
[   14.830445]  ret_from_fork+0x116/0x1d0
[   14.830465]  ? __pfx_kthread+0x10/0x10
[   14.830486]  ret_from_fork_asm+0x1a/0x30
[   14.830518]  </TASK>
[   14.830529] 
[   14.841491] The buggy address belongs to stack of task kunit_try_catch/266
[   14.842148]  and is located at offset 138 in frame:
[   14.842385]  kasan_stack_oob+0x0/0x300
[   14.842753] 
[   14.842876] This frame has 4 objects:
[   14.843321]  [48, 49) '__assertion'
[   14.843353]  [64, 72) 'array'
[   14.843554]  [96, 112) '__assertion'
[   14.843709]  [128, 138) 'stack_array'
[   14.843949] 
[   14.844358] The buggy address belongs to the physical page:
[   14.844612] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103af7
[   14.844958] flags: 0x200000000000000(node=0|zone=2)
[   14.845285] raw: 0200000000000000 ffffea00040ebdc8 ffffea00040ebdc8 0000000000000000
[   14.845621] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.845924] page dumped because: kasan: bad access detected
[   14.846339] 
[   14.846425] Memory state around the buggy address:
[   14.846580]  ffff888103af7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.846916]  ffff888103af7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.847445] >ffff888103af7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.847738]                    ^
[   14.847899]  ffff888103af7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.848243]  ffff888103af7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.848608] ==================================================================