Hay
Date
May 23, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   30.787388] ==================================================================
[   30.788217] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   30.788697] Read of size 1 at addr ffff800080ae7c2a by task kunit_try_catch/251
[   30.789019] 
[   30.789231] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT 
[   30.789833] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.790058] Hardware name: linux,dummy-virt (DT)
[   30.790221] Call trace:
[   30.790352]  show_stack+0x20/0x38 (C)
[   30.790797]  dump_stack_lvl+0x8c/0xd0
[   30.791181]  print_report+0x310/0x608
[   30.791330]  kasan_report+0xdc/0x128
[   30.791896]  __asan_report_load1_noabort+0x20/0x30
[   30.792212]  kasan_stack_oob+0x238/0x270
[   30.792403]  kunit_try_run_case+0x170/0x3f0
[   30.792624]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.792777]  kthread+0x328/0x630
[   30.792886]  ret_from_fork+0x10/0x20
[   30.793036] 
[   30.793190] The buggy address belongs to stack of task kunit_try_catch/251
[   30.793521]  and is located at offset 138 in frame:
[   30.793653]  kasan_stack_oob+0x0/0x270
[   30.793951] 
[   30.794035] This frame has 4 objects:
[   30.794462]  [48, 49) '__assertion'
[   30.794595]  [64, 72) 'array'
[   30.794702]  [96, 112) '__assertion'
[   30.794818]  [128, 138) 'stack_array'
[   30.795144] 
[   30.795569] The buggy address belongs to the virtual mapping at
[   30.795569]  [ffff800080ae0000, ffff800080ae9000) created by:
[   30.795569]  kernel_clone+0x150/0x7a8
[   30.796529] 
[   30.796627] The buggy address belongs to the physical page:
[   30.796723] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10779a
[   30.797313] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.797623] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   30.797775] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   30.797921] page dumped because: kasan: bad access detected
[   30.798069] 
[   30.798133] Memory state around the buggy address:
[   30.798268]  ffff800080ae7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.798419]  ffff800080ae7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   30.798604] >ffff800080ae7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   30.798765]                                   ^
[   30.798872]  ffff800080ae7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   30.799006]  ffff800080ae7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   30.799128] ==================================================================

[   14.416360] ==================================================================
[   14.417287] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.417924] Read of size 1 at addr ffff8881039d7d02 by task kunit_try_catch/268
[   14.418294] 
[   14.418414] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT(voluntary) 
[   14.418819] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.418835] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.418857] Call Trace:
[   14.418870]  <TASK>
[   14.418887]  dump_stack_lvl+0x73/0xb0
[   14.418928]  print_report+0xd1/0x650
[   14.418952]  ? __virt_addr_valid+0x1db/0x2d0
[   14.418976]  ? kasan_stack_oob+0x2b5/0x300
[   14.418997]  ? kasan_addr_to_slab+0x11/0xa0
[   14.419018]  ? kasan_stack_oob+0x2b5/0x300
[   14.419070]  kasan_report+0x141/0x180
[   14.419095]  ? kasan_stack_oob+0x2b5/0x300
[   14.419121]  __asan_report_load1_noabort+0x18/0x20
[   14.419141]  kasan_stack_oob+0x2b5/0x300
[   14.419162]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.419181]  ? finish_task_switch.isra.0+0x153/0x700
[   14.419205]  ? __switch_to+0x5d9/0xf60
[   14.419227]  ? dequeue_task_fair+0x166/0x4e0
[   14.419251]  ? __schedule+0x10cc/0x2b30
[   14.419274]  ? __pfx_read_tsc+0x10/0x10
[   14.419294]  ? ktime_get_ts64+0x86/0x230
[   14.419330]  kunit_try_run_case+0x1a5/0x480
[   14.419354]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.419376]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.419399]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.419422]  ? __kthread_parkme+0x82/0x180
[   14.419458]  ? preempt_count_sub+0x50/0x80
[   14.419483]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.419506]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.419528]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.419551]  kthread+0x337/0x6f0
[   14.419568]  ? trace_preempt_on+0x20/0xc0
[   14.419592]  ? __pfx_kthread+0x10/0x10
[   14.419610]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.419631]  ? calculate_sigpending+0x7b/0xa0
[   14.419652]  ? __pfx_kthread+0x10/0x10
[   14.419671]  ret_from_fork+0x41/0x80
[   14.419692]  ? __pfx_kthread+0x10/0x10
[   14.419710]  ret_from_fork_asm+0x1a/0x30
[   14.419741]  </TASK>
[   14.419753] 
[   14.432315] The buggy address belongs to stack of task kunit_try_catch/268
[   14.433134]  and is located at offset 138 in frame:
[   14.433403]  kasan_stack_oob+0x0/0x300
[   14.434111] 
[   14.434254] This frame has 4 objects:
[   14.434512]  [48, 49) '__assertion'
[   14.434538]  [64, 72) 'array'
[   14.434678]  [96, 112) '__assertion'
[   14.434807]  [128, 138) 'stack_array'
[   14.435026] 
[   14.435388] The buggy address belongs to the physical page:
[   14.435586] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039d7
[   14.436040] flags: 0x200000000000000(node=0|zone=2)
[   14.436370] raw: 0200000000000000 ffffea00040e75c8 ffffea00040e75c8 0000000000000000
[   14.436746] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.437147] page dumped because: kasan: bad access detected
[   14.437385] 
[   14.437531] Memory state around the buggy address:
[   14.437751]  ffff8881039d7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.438040]  ffff8881039d7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.438347] >ffff8881039d7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.438708]                    ^
[   14.438860]  ffff8881039d7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.439203]  ffff8881039d7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.439537] ==================================================================