Hay
Date
July 9, 2025, 2:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.372469] ==================================================================
[   19.372560] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   19.372662] Read of size 1 at addr ffff800080a77c2a by task kunit_try_catch/249
[   19.372719] 
[   19.372760] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5 #1 PREEMPT 
[   19.372854] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   19.372887] Hardware name: linux,dummy-virt (DT)
[   19.372929] Call trace:
[   19.372962]  show_stack+0x20/0x38 (C)
[   19.373017]  dump_stack_lvl+0x8c/0xd0
[   19.373072]  print_report+0x310/0x608
[   19.373136]  kasan_report+0xdc/0x128
[   19.373184]  __asan_report_load1_noabort+0x20/0x30
[   19.373239]  kasan_stack_oob+0x238/0x270
[   19.373285]  kunit_try_run_case+0x170/0x3f0
[   19.373337]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.373396]  kthread+0x328/0x630
[   19.373441]  ret_from_fork+0x10/0x20
[   19.373496] 
[   19.373558] The buggy address belongs to stack of task kunit_try_catch/249
[   19.374611]  and is located at offset 138 in frame:
[   19.375732]  kasan_stack_oob+0x0/0x270
[   19.376064] 
[   19.376178] This frame has 4 objects:
[   19.377323]  [48, 49) '__assertion'
[   19.377518]  [64, 72) 'array'
[   19.377592]  [96, 112) '__assertion'
[   19.377802]  [128, 138) 'stack_array'
[   19.377877] 
[   19.377918] The buggy address belongs to the virtual mapping at
[   19.377918]  [ffff800080a70000, ffff800080a79000) created by:
[   19.377918]  kernel_clone+0x150/0x7a8
[   19.378465] 
[   19.378609] The buggy address belongs to the physical page:
[   19.378684] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106c15
[   19.378841] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.379071] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.379231] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.379316] page dumped because: kasan: bad access detected
[   19.379444] 
[   19.379473] Memory state around the buggy address:
[   19.379790]  ffff800080a77b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.379915]  ffff800080a77b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   19.380096] >ffff800080a77c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   19.380143]                                   ^
[   19.380460]  ffff800080a77c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   19.380596]  ffff800080a77d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.380673] ==================================================================

[   14.561681] ==================================================================
[   14.562346] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.562656] Read of size 1 at addr ffff888103aafd02 by task kunit_try_catch/266
[   14.562946] 
[   14.563069] CPU: 1 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.563115] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.563127] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.563149] Call Trace:
[   14.563161]  <TASK>
[   14.563177]  dump_stack_lvl+0x73/0xb0
[   14.563207]  print_report+0xd1/0x650
[   14.563229]  ? __virt_addr_valid+0x1db/0x2d0
[   14.563253]  ? kasan_stack_oob+0x2b5/0x300
[   14.563273]  ? kasan_addr_to_slab+0x11/0xa0
[   14.563294]  ? kasan_stack_oob+0x2b5/0x300
[   14.563315]  kasan_report+0x141/0x180
[   14.563336]  ? kasan_stack_oob+0x2b5/0x300
[   14.563362]  __asan_report_load1_noabort+0x18/0x20
[   14.563387]  kasan_stack_oob+0x2b5/0x300
[   14.563406]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.563426]  ? finish_task_switch.isra.0+0x153/0x700
[   14.563451]  ? __switch_to+0x47/0xf50
[   14.563479]  ? __schedule+0x10cc/0x2b60
[   14.563501]  ? __pfx_read_tsc+0x10/0x10
[   14.563523]  ? ktime_get_ts64+0x86/0x230
[   14.563547]  kunit_try_run_case+0x1a5/0x480
[   14.563573]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.563607]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.563631]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.563655]  ? __kthread_parkme+0x82/0x180
[   14.563678]  ? preempt_count_sub+0x50/0x80
[   14.563700]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.563725]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.563749]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.563775]  kthread+0x337/0x6f0
[   14.563793]  ? trace_preempt_on+0x20/0xc0
[   14.563817]  ? __pfx_kthread+0x10/0x10
[   14.563838]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.563860]  ? calculate_sigpending+0x7b/0xa0
[   14.563885]  ? __pfx_kthread+0x10/0x10
[   14.563906]  ret_from_fork+0x116/0x1d0
[   14.563935]  ? __pfx_kthread+0x10/0x10
[   14.563955]  ret_from_fork_asm+0x1a/0x30
[   14.563986]  </TASK>
[   14.563997] 
[   14.571576] The buggy address belongs to stack of task kunit_try_catch/266
[   14.572007]  and is located at offset 138 in frame:
[   14.572338]  kasan_stack_oob+0x0/0x300
[   14.572687] 
[   14.572851] This frame has 4 objects:
[   14.573122]  [48, 49) '__assertion'
[   14.573143]  [64, 72) 'array'
[   14.573289]  [96, 112) '__assertion'
[   14.573460]  [128, 138) 'stack_array'
[   14.573671] 
[   14.574112] The buggy address belongs to the physical page:
[   14.574296] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103aaf
[   14.574633] flags: 0x200000000000000(node=0|zone=2)
[   14.575067] raw: 0200000000000000 ffffea00040eabc8 ffffea00040eabc8 0000000000000000
[   14.575424] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.575747] page dumped because: kasan: bad access detected
[   14.576032] 
[   14.576128] Memory state around the buggy address:
[   14.576311]  ffff888103aafc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.576529]  ffff888103aafc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.576959] >ffff888103aafd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.577284]                    ^
[   14.577420]  ffff888103aafd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.577663]  ffff888103aafe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.577985] ==================================================================