Hay
Date
June 20, 2025, 12:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   34.955030] ==================================================================
[   34.955791] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   34.956429] Read of size 1 at addr ffff800080a57c2a by task kunit_try_catch/260
[   34.956957] 
[   34.957300] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT 
[   34.958928] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.959009] Hardware name: linux,dummy-virt (DT)
[   34.959092] Call trace:
[   34.959693]  show_stack+0x20/0x38 (C)
[   34.960037]  dump_stack_lvl+0x8c/0xd0
[   34.960237]  print_report+0x310/0x608
[   34.960353]  kasan_report+0xdc/0x128
[   34.960541]  __asan_report_load1_noabort+0x20/0x30
[   34.960715]  kasan_stack_oob+0x238/0x270
[   34.960886]  kunit_try_run_case+0x170/0x3f0
[   34.961060]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.961383]  kthread+0x328/0x630
[   34.961482]  ret_from_fork+0x10/0x20
[   34.961605] 
[   34.962061] The buggy address belongs to stack of task kunit_try_catch/260
[   34.962783]  and is located at offset 138 in frame:
[   34.962952]  kasan_stack_oob+0x0/0x270
[   34.963933] 
[   34.964032] This frame has 4 objects:
[   34.964745]  [48, 49) '__assertion'
[   34.964862]  [64, 72) 'array'
[   34.964939]  [96, 112) '__assertion'
[   34.965307]  [128, 138) 'stack_array'
[   34.965534] 
[   34.966076] The buggy address belongs to the virtual mapping at
[   34.966076]  [ffff800080a50000, ffff800080a59000) created by:
[   34.966076]  kernel_clone+0x150/0x7a8
[   34.966306] 
[   34.966361] The buggy address belongs to the physical page:
[   34.966984] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105955
[   34.967141] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.967619] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   34.967762] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   34.968305] page dumped because: kasan: bad access detected
[   34.968625] 
[   34.968700] Memory state around the buggy address:
[   34.968800]  ffff800080a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   34.968891]  ffff800080a57b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   34.968971] >ffff800080a57c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   34.969041]                                   ^
[   34.969399]  ffff800080a57c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   34.969869]  ffff800080a57d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   34.970035] ==================================================================

[   27.684515] ==================================================================
[   27.685484] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   27.686065] Read of size 1 at addr ffff8881039afd02 by task kunit_try_catch/278
[   27.686316] 
[   27.686533] CPU: 0 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) 
[   27.686644] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.686673] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.686719] Call Trace:
[   27.686752]  <TASK>
[   27.686790]  dump_stack_lvl+0x73/0xb0
[   27.686860]  print_report+0xd1/0x650
[   27.686911]  ? __virt_addr_valid+0x1db/0x2d0
[   27.686959]  ? kasan_stack_oob+0x2b5/0x300
[   27.686996]  ? kasan_addr_to_slab+0x11/0xa0
[   27.687037]  ? kasan_stack_oob+0x2b5/0x300
[   27.687079]  kasan_report+0x141/0x180
[   27.687121]  ? kasan_stack_oob+0x2b5/0x300
[   27.687169]  __asan_report_load1_noabort+0x18/0x20
[   27.687217]  kasan_stack_oob+0x2b5/0x300
[   27.687259]  ? __pfx_kasan_stack_oob+0x10/0x10
[   27.687296]  ? finish_task_switch.isra.0+0x153/0x700
[   27.687349]  ? __switch_to+0x47/0xf50
[   27.687404]  ? __schedule+0x10cc/0x2b60
[   27.687497]  ? __pfx_read_tsc+0x10/0x10
[   27.687549]  ? ktime_get_ts64+0x86/0x230
[   27.687604]  kunit_try_run_case+0x1a5/0x480
[   27.687664]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.687713]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   27.687756]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   27.687796]  ? __kthread_parkme+0x82/0x180
[   27.687835]  ? preempt_count_sub+0x50/0x80
[   27.687884]  ? __pfx_kunit_try_run_case+0x10/0x10
[   27.687938]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.687979]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   27.688006]  kthread+0x337/0x6f0
[   27.688029]  ? trace_preempt_on+0x20/0xc0
[   27.688056]  ? __pfx_kthread+0x10/0x10
[   27.688078]  ? _raw_spin_unlock_irq+0x47/0x80
[   27.688101]  ? calculate_sigpending+0x7b/0xa0
[   27.688128]  ? __pfx_kthread+0x10/0x10
[   27.688175]  ret_from_fork+0x116/0x1d0
[   27.688208]  ? __pfx_kthread+0x10/0x10
[   27.688231]  ret_from_fork_asm+0x1a/0x30
[   27.688267]  </TASK>
[   27.688282] 
[   27.701461] The buggy address belongs to stack of task kunit_try_catch/278
[   27.702627]  and is located at offset 138 in frame:
[   27.702944]  kasan_stack_oob+0x0/0x300
[   27.703578] 
[   27.703720] This frame has 4 objects:
[   27.704122]  [48, 49) '__assertion'
[   27.704257]  [64, 72) 'array'
[   27.704624]  [96, 112) '__assertion'
[   27.704982]  [128, 138) 'stack_array'
[   27.705401] 
[   27.705894] The buggy address belongs to the physical page:
[   27.706385] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039af
[   27.706806] flags: 0x200000000000000(node=0|zone=2)
[   27.707343] raw: 0200000000000000 ffffea00040e6bc8 ffffea00040e6bc8 0000000000000000
[   27.707754] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   27.708172] page dumped because: kasan: bad access detected
[   27.708496] 
[   27.708648] Memory state around the buggy address:
[   27.708881]  ffff8881039afc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.709239]  ffff8881039afc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   27.709713] >ffff8881039afd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   27.710066]                    ^
[   27.710371]  ffff8881039afd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   27.710771]  ffff8881039afe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   27.711047] ==================================================================