Hay
Date
June 25, 2025, 8:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   28.830155] ==================================================================
[   28.830259] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   28.830364] Read of size 1 at addr ffff800080a07c2a by task kunit_try_catch/261
[   28.830466] 
[   28.830508] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT 
[   28.830625] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.830662] Hardware name: linux,dummy-virt (DT)
[   28.830720] Call trace:
[   28.830747]  show_stack+0x20/0x38 (C)
[   28.830799]  dump_stack_lvl+0x8c/0xd0
[   28.830881]  print_report+0x310/0x608
[   28.830943]  kasan_report+0xdc/0x128
[   28.831016]  __asan_report_load1_noabort+0x20/0x30
[   28.831067]  kasan_stack_oob+0x238/0x270
[   28.831274]  kunit_try_run_case+0x170/0x3f0
[   28.831499]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.831573]  kthread+0x328/0x630
[   28.831620]  ret_from_fork+0x10/0x20
[   28.831672] 
[   28.831741] The buggy address belongs to stack of task kunit_try_catch/261
[   28.831929]  and is located at offset 138 in frame:
[   28.832089]  kasan_stack_oob+0x0/0x270
[   28.832358] 
[   28.832426] This frame has 4 objects:
[   28.832772]  [48, 49) '__assertion'
[   28.832819]  [64, 72) 'array'
[   28.832851]  [96, 112) '__assertion'
[   28.832894]  [128, 138) 'stack_array'
[   28.832940] 
[   28.833279] The buggy address belongs to the virtual mapping at
[   28.833279]  [ffff800080a00000, ffff800080a09000) created by:
[   28.833279]  kernel_clone+0x150/0x7a8
[   28.833450] 
[   28.833476] The buggy address belongs to the physical page:
[   28.833510] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078e7
[   28.833573] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   28.833807] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   28.834083] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   28.834236] page dumped because: kasan: bad access detected
[   28.834304] 
[   28.834326] Memory state around the buggy address:
[   28.834427]  ffff800080a07b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   28.834491]  ffff800080a07b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   28.834630] >ffff800080a07c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   28.834672]                                   ^
[   28.834707]  ffff800080a07c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   28.834918]  ffff800080a07d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   28.834960] ==================================================================

[   23.641369] ==================================================================
[   23.641983] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   23.642624] Read of size 1 at addr ffff888102c3fd02 by task kunit_try_catch/278
[   23.643004] 
[   23.643111] CPU: 1 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) 
[   23.643159] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.643173] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.643192] Call Trace:
[   23.643205]  <TASK>
[   23.643220]  dump_stack_lvl+0x73/0xb0
[   23.643248]  print_report+0xd1/0x650
[   23.643268]  ? __virt_addr_valid+0x1db/0x2d0
[   23.643291]  ? kasan_stack_oob+0x2b5/0x300
[   23.643309]  ? kasan_addr_to_slab+0x11/0xa0
[   23.643328]  ? kasan_stack_oob+0x2b5/0x300
[   23.643346]  kasan_report+0x141/0x180
[   23.643366]  ? kasan_stack_oob+0x2b5/0x300
[   23.643388]  __asan_report_load1_noabort+0x18/0x20
[   23.643410]  kasan_stack_oob+0x2b5/0x300
[   23.643429]  ? __pfx_kasan_stack_oob+0x10/0x10
[   23.643446]  ? finish_task_switch.isra.0+0x153/0x700
[   23.643468]  ? __switch_to+0x47/0xf50
[   23.643494]  ? __schedule+0x10cc/0x2b60
[   23.643519]  ? __pfx_read_tsc+0x10/0x10
[   23.643540]  ? ktime_get_ts64+0x86/0x230
[   23.643564]  kunit_try_run_case+0x1a5/0x480
[   23.643590]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.643611]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.643631]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.643655]  ? __kthread_parkme+0x82/0x180
[   23.643674]  ? preempt_count_sub+0x50/0x80
[   23.643695]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.643718]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.643739]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.643763]  kthread+0x337/0x6f0
[   23.643782]  ? trace_preempt_on+0x20/0xc0
[   23.643804]  ? __pfx_kthread+0x10/0x10
[   23.643871]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.643893]  ? calculate_sigpending+0x7b/0xa0
[   23.643916]  ? __pfx_kthread+0x10/0x10
[   23.643948]  ret_from_fork+0x116/0x1d0
[   23.643966]  ? __pfx_kthread+0x10/0x10
[   23.643985]  ret_from_fork_asm+0x1a/0x30
[   23.644016]  </TASK>
[   23.644027] 
[   23.651042] The buggy address belongs to stack of task kunit_try_catch/278
[   23.651529]  and is located at offset 138 in frame:
[   23.651754]  kasan_stack_oob+0x0/0x300
[   23.652149] 
[   23.652267] This frame has 4 objects:
[   23.652540]  [48, 49) '__assertion'
[   23.652561]  [64, 72) 'array'
[   23.652680]  [96, 112) '__assertion'
[   23.652830]  [128, 138) 'stack_array'
[   23.653017] 
[   23.653190] The buggy address belongs to the physical page:
[   23.653541] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c3f
[   23.654032] flags: 0x200000000000000(node=0|zone=2)
[   23.654197] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000
[   23.654416] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   23.654628] page dumped because: kasan: bad access detected
[   23.655024] 
[   23.655129] Memory state around the buggy address:
[   23.655349]  ffff888102c3fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   23.655657]  ffff888102c3fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   23.655983] >ffff888102c3fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   23.656287]                    ^
[   23.656421]  ffff888102c3fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   23.656627]  ffff888102c3fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.657130] ==================================================================