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

Environment
qemu-arm64
qemu-x86_64

[   22.163847] ==================================================================
[   22.164467] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   22.164590] Read of size 1 at addr ffff800080ab7c2a by task kunit_try_catch/250
[   22.164714] 
[   22.165550] CPU: 1 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   22.166151] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.166226] Hardware name: linux,dummy-virt (DT)
[   22.166370] Call trace:
[   22.166443]  show_stack+0x20/0x38 (C)
[   22.166646]  dump_stack_lvl+0x8c/0xd0
[   22.166841]  print_report+0x310/0x608
[   22.167198]  kasan_report+0xdc/0x128
[   22.167574]  __asan_report_load1_noabort+0x20/0x30
[   22.167770]  kasan_stack_oob+0x238/0x270
[   22.167911]  kunit_try_run_case+0x170/0x3f0
[   22.168027]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.168153]  kthread+0x328/0x630
[   22.168248]  ret_from_fork+0x10/0x20
[   22.168595] 
[   22.169202] The buggy address belongs to stack of task kunit_try_catch/250
[   22.169520]  and is located at offset 138 in frame:
[   22.169590]  kasan_stack_oob+0x0/0x270
[   22.169862] 
[   22.169922] This frame has 4 objects:
[   22.170129]  [48, 49) '__assertion'
[   22.170211]  [64, 72) 'array'
[   22.170285]  [96, 112) '__assertion'
[   22.170402]  [128, 138) 'stack_array'
[   22.170495] 
[   22.170584] The buggy address belongs to the virtual mapping at
[   22.170584]  [ffff800080ab0000, ffff800080ab9000) created by:
[   22.170584]  kernel_clone+0x150/0x7a8
[   22.170855] 
[   22.170937] The buggy address belongs to the physical page:
[   22.171087] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105953
[   22.171228] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.171426] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.171639] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.171753] page dumped because: kasan: bad access detected
[   22.171837] 
[   22.171886] Memory state around the buggy address:
[   22.171991]  ffff800080ab7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.172152]  ffff800080ab7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   22.172310] >ffff800080ab7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   22.172431]                                   ^
[   22.172525]  ffff800080ab7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   22.172659]  ffff800080ab7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   22.172806] ==================================================================

[   14.452944] ==================================================================
[   14.453598] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.454213] Read of size 1 at addr ffff888103b57d02 by task kunit_try_catch/267
[   14.454490] 
[   14.454695] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.454741] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.454764] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.454784] Call Trace:
[   14.454796]  <TASK>
[   14.454812]  dump_stack_lvl+0x73/0xb0
[   14.454928]  print_report+0xd1/0x650
[   14.454953]  ? __virt_addr_valid+0x1db/0x2d0
[   14.454978]  ? kasan_stack_oob+0x2b5/0x300
[   14.454997]  ? kasan_addr_to_slab+0x11/0xa0
[   14.455018]  ? kasan_stack_oob+0x2b5/0x300
[   14.455039]  kasan_report+0x141/0x180
[   14.455061]  ? kasan_stack_oob+0x2b5/0x300
[   14.455094]  __asan_report_load1_noabort+0x18/0x20
[   14.455120]  kasan_stack_oob+0x2b5/0x300
[   14.455141]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.455160]  ? finish_task_switch.isra.0+0x153/0x700
[   14.455184]  ? __switch_to+0x47/0xf50
[   14.455211]  ? __schedule+0x10cc/0x2b60
[   14.455234]  ? __pfx_read_tsc+0x10/0x10
[   14.455256]  ? ktime_get_ts64+0x86/0x230
[   14.455282]  kunit_try_run_case+0x1a5/0x480
[   14.455310]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.455333]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.455357]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.455382]  ? __kthread_parkme+0x82/0x180
[   14.455403]  ? preempt_count_sub+0x50/0x80
[   14.455426]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.455451]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.455476]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.455501]  kthread+0x337/0x6f0
[   14.455521]  ? trace_preempt_on+0x20/0xc0
[   14.455545]  ? __pfx_kthread+0x10/0x10
[   14.455565]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.455588]  ? calculate_sigpending+0x7b/0xa0
[   14.455613]  ? __pfx_kthread+0x10/0x10
[   14.455634]  ret_from_fork+0x116/0x1d0
[   14.455694]  ? __pfx_kthread+0x10/0x10
[   14.455716]  ret_from_fork_asm+0x1a/0x30
[   14.455760]  </TASK>
[   14.455771] 
[   14.463761] The buggy address belongs to stack of task kunit_try_catch/267
[   14.464073]  and is located at offset 138 in frame:
[   14.464424]  kasan_stack_oob+0x0/0x300
[   14.464735] 
[   14.464872] This frame has 4 objects:
[   14.465129]  [48, 49) '__assertion'
[   14.465149]  [64, 72) 'array'
[   14.465331]  [96, 112) '__assertion'
[   14.465500]  [128, 138) 'stack_array'
[   14.465796] 
[   14.466051] The buggy address belongs to the physical page:
[   14.466322] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b57
[   14.466806] flags: 0x200000000000000(node=0|zone=2)
[   14.467080] raw: 0200000000000000 ffffea00040ed5c8 ffffea00040ed5c8 0000000000000000
[   14.467443] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.467834] page dumped because: kasan: bad access detected
[   14.468185] 
[   14.468320] Memory state around the buggy address:
[   14.468541]  ffff888103b57c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.469054]  ffff888103b57c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.469407] >ffff888103b57d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.469799]                    ^
[   14.470019]  ffff888103b57d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.470335]  ffff888103b57e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.470674] ==================================================================