Hay
Date
June 17, 2025, 6:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   19.171591] ==================================================================
[   19.171692] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   19.171762] Read of size 1 at addr ffff800080a57c2a by task kunit_try_catch/258
[   19.171818] 
[   19.171856] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT 
[   19.171978] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.172009] Hardware name: linux,dummy-virt (DT)
[   19.172045] Call trace:
[   19.172074]  show_stack+0x20/0x38 (C)
[   19.172128]  dump_stack_lvl+0x8c/0xd0
[   19.172192]  print_report+0x310/0x608
[   19.172245]  kasan_report+0xdc/0x128
[   19.172294]  __asan_report_load1_noabort+0x20/0x30
[   19.172353]  kasan_stack_oob+0x238/0x270
[   19.172402]  kunit_try_run_case+0x170/0x3f0
[   19.172454]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.172512]  kthread+0x328/0x630
[   19.172568]  ret_from_fork+0x10/0x20
[   19.172621] 
[   19.172681] The buggy address belongs to stack of task kunit_try_catch/258
[   19.172811]  and is located at offset 138 in frame:
[   19.172851]  kasan_stack_oob+0x0/0x270
[   19.172991] 
[   19.173025] This frame has 4 objects:
[   19.173117]  [48, 49) '__assertion'
[   19.173154]  [64, 72) 'array'
[   19.173188]  [96, 112) '__assertion'
[   19.173234]  [128, 138) 'stack_array'
[   19.173633] 
[   19.173688] The buggy address belongs to the virtual mapping at
[   19.173688]  [ffff800080a50000, ffff800080a59000) created by:
[   19.173688]  kernel_clone+0x150/0x7a8
[   19.173778] 
[   19.173821] The buggy address belongs to the physical page:
[   19.173859] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1050af
[   19.173937] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.174006] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.174104] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.174308] page dumped because: kasan: bad access detected
[   19.174375] 
[   19.174415] Memory state around the buggy address:
[   19.174453]  ffff800080a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.174522]  ffff800080a57b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   19.174588] >ffff800080a57c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   19.174692]                                   ^
[   19.174763]  ffff800080a57c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   19.174883]  ffff800080a57d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.174961] ==================================================================

[   20.614649] ==================================================================
[   20.615760] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   20.616350] Read of size 1 at addr ffff888103ad7d02 by task kunit_try_catch/276
[   20.617156] 
[   20.617638] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) 
[   20.617864] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.617907] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.617969] Call Trace:
[   20.618055]  <TASK>
[   20.618114]  dump_stack_lvl+0x73/0xb0
[   20.618316]  print_report+0xd1/0x650
[   20.618402]  ? __virt_addr_valid+0x1db/0x2d0
[   20.618789]  ? kasan_stack_oob+0x2b5/0x300
[   20.619015]  ? kasan_addr_to_slab+0x11/0xa0
[   20.619053]  ? kasan_stack_oob+0x2b5/0x300
[   20.619084]  kasan_report+0x141/0x180
[   20.619117]  ? kasan_stack_oob+0x2b5/0x300
[   20.619152]  __asan_report_load1_noabort+0x18/0x20
[   20.619189]  kasan_stack_oob+0x2b5/0x300
[   20.619224]  ? __pfx_kasan_stack_oob+0x10/0x10
[   20.619290]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   20.619374]  ? __pfx_kasan_stack_oob+0x10/0x10
[   20.619412]  kunit_try_run_case+0x1a5/0x480
[   20.619450]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.619482]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   20.619511]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.619557]  ? __kthread_parkme+0x82/0x180
[   20.619588]  ? preempt_count_sub+0x50/0x80
[   20.619620]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.619652]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.619686]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.619720]  kthread+0x337/0x6f0
[   20.619748]  ? trace_preempt_on+0x20/0xc0
[   20.619783]  ? __pfx_kthread+0x10/0x10
[   20.619813]  ? _raw_spin_unlock_irq+0x47/0x80
[   20.619873]  ? calculate_sigpending+0x7b/0xa0
[   20.619912]  ? __pfx_kthread+0x10/0x10
[   20.619942]  ret_from_fork+0x116/0x1d0
[   20.619969]  ? __pfx_kthread+0x10/0x10
[   20.619997]  ret_from_fork_asm+0x1a/0x30
[   20.620038]  </TASK>
[   20.620053] 
[   20.638809] The buggy address belongs to stack of task kunit_try_catch/276
[   20.639713]  and is located at offset 138 in frame:
[   20.640090]  kasan_stack_oob+0x0/0x300
[   20.640846] 
[   20.641089] This frame has 4 objects:
[   20.641714]  [48, 49) '__assertion'
[   20.641781]  [64, 72) 'array'
[   20.642040]  [96, 112) '__assertion'
[   20.642374]  [128, 138) 'stack_array'
[   20.642692] 
[   20.643639] The buggy address belongs to the physical page:
[   20.644167] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ad7
[   20.644963] flags: 0x200000000000000(node=0|zone=2)
[   20.645564] raw: 0200000000000000 ffffea00040eb5c8 ffffea00040eb5c8 0000000000000000
[   20.646577] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   20.647131] page dumped because: kasan: bad access detected
[   20.647734] 
[   20.647909] Memory state around the buggy address:
[   20.648498]  ffff888103ad7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   20.649078]  ffff888103ad7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   20.649769] >ffff888103ad7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   20.650605]                    ^
[   20.650931]  ffff888103ad7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   20.651642]  ffff888103ad7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.652376] ==================================================================