Hay
Date
July 10, 2025, 11:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.188606] ==================================================================
[   18.188687] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   18.188751] Read of size 1 at addr ffff800080a87c2a by task kunit_try_catch/249
[   18.188801] 
[   18.188836] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   18.188921] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.188975] Hardware name: linux,dummy-virt (DT)
[   18.189007] Call trace:
[   18.189040]  show_stack+0x20/0x38 (C)
[   18.189107]  dump_stack_lvl+0x8c/0xd0
[   18.189160]  print_report+0x310/0x608
[   18.189207]  kasan_report+0xdc/0x128
[   18.189253]  __asan_report_load1_noabort+0x20/0x30
[   18.189306]  kasan_stack_oob+0x238/0x270
[   18.189441]  kunit_try_run_case+0x170/0x3f0
[   18.189493]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.189568]  kthread+0x328/0x630
[   18.189614]  ret_from_fork+0x10/0x20
[   18.189844] 
[   18.189915] The buggy address belongs to stack of task kunit_try_catch/249
[   18.190036]  and is located at offset 138 in frame:
[   18.190074]  kasan_stack_oob+0x0/0x270
[   18.190215] 
[   18.190248] This frame has 4 objects:
[   18.191236]  [48, 49) '__assertion'
[   18.191615]  [64, 72) 'array'
[   18.191731]  [96, 112) '__assertion'
[   18.192098]  [128, 138) 'stack_array'
[   18.192237] 
[   18.192564] The buggy address belongs to the virtual mapping at
[   18.192564]  [ffff800080a80000, ffff800080a89000) created by:
[   18.192564]  kernel_clone+0x150/0x7a8
[   18.192704] 
[   18.192784] The buggy address belongs to the physical page:
[   18.192964] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106444
[   18.193043] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.193495] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.193573] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.193946] page dumped because: kasan: bad access detected
[   18.194060] 
[   18.194151] Memory state around the buggy address:
[   18.194285]  ffff800080a87b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.194596]  ffff800080a87b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   18.194823] >ffff800080a87c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   18.194908]                                   ^
[   18.194943]  ffff800080a87c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   18.195280]  ffff800080a87d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.195450] ==================================================================

[   14.489232] ==================================================================
[   14.489895] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.490208] Read of size 1 at addr ffff888103927d02 by task kunit_try_catch/267
[   14.490528] 
[   14.490641] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.490685] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.490696] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.490718] Call Trace:
[   14.490730]  <TASK>
[   14.490747]  dump_stack_lvl+0x73/0xb0
[   14.490777]  print_report+0xd1/0x650
[   14.490799]  ? __virt_addr_valid+0x1db/0x2d0
[   14.490823]  ? kasan_stack_oob+0x2b5/0x300
[   14.490842]  ? kasan_addr_to_slab+0x11/0xa0
[   14.490861]  ? kasan_stack_oob+0x2b5/0x300
[   14.490881]  kasan_report+0x141/0x180
[   14.490902]  ? kasan_stack_oob+0x2b5/0x300
[   14.490927]  __asan_report_load1_noabort+0x18/0x20
[   14.490950]  kasan_stack_oob+0x2b5/0x300
[   14.490970]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.490989]  ? finish_task_switch.isra.0+0x153/0x700
[   14.491012]  ? __switch_to+0x47/0xf50
[   14.491038]  ? __schedule+0x10cc/0x2b60
[   14.491059]  ? __pfx_read_tsc+0x10/0x10
[   14.491079]  ? ktime_get_ts64+0x86/0x230
[   14.491103]  kunit_try_run_case+0x1a5/0x480
[   14.491126]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.491149]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.491172]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.491194]  ? __kthread_parkme+0x82/0x180
[   14.491214]  ? preempt_count_sub+0x50/0x80
[   14.491237]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.491260]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.491284]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.491308]  kthread+0x337/0x6f0
[   14.491325]  ? trace_preempt_on+0x20/0xc0
[   14.491348]  ? __pfx_kthread+0x10/0x10
[   14.491679]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.491703]  ? calculate_sigpending+0x7b/0xa0
[   14.491729]  ? __pfx_kthread+0x10/0x10
[   14.491751]  ret_from_fork+0x116/0x1d0
[   14.491769]  ? __pfx_kthread+0x10/0x10
[   14.491965]  ret_from_fork_asm+0x1a/0x30
[   14.492002]  </TASK>
[   14.492012] 
[   14.504462] The buggy address belongs to stack of task kunit_try_catch/267
[   14.504910]  and is located at offset 138 in frame:
[   14.505131]  kasan_stack_oob+0x0/0x300
[   14.505435] 
[   14.505631] This frame has 4 objects:
[   14.505875]  [48, 49) '__assertion'
[   14.505897]  [64, 72) 'array'
[   14.506058]  [96, 112) '__assertion'
[   14.506180]  [128, 138) 'stack_array'
[   14.506383] 
[   14.506732] The buggy address belongs to the physical page:
[   14.506989] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103927
[   14.507250] flags: 0x200000000000000(node=0|zone=2)
[   14.507478] raw: 0200000000000000 ffffea00040e49c8 ffffea00040e49c8 0000000000000000
[   14.508166] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.508895] page dumped because: kasan: bad access detected
[   14.509245] 
[   14.509340] Memory state around the buggy address:
[   14.509827]  ffff888103927c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.510124]  ffff888103927c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.510663] >ffff888103927d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.511158]                    ^
[   14.511327]  ffff888103927d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.511799]  ffff888103927e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.512092] ==================================================================