Hay
Date
July 19, 2025, 11:11 a.m.

Environment
qemu-arm64
qemu-x86_64

[   17.446867] ==================================================================
[   17.446941] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   17.446994] Read of size 1 at addr ffff800080a77c2a by task kunit_try_catch/250
[   17.447140] 
[   17.447371] CPU: 1 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.447939] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.448086] Hardware name: linux,dummy-virt (DT)
[   17.448352] Call trace:
[   17.448376]  show_stack+0x20/0x38 (C)
[   17.448429]  dump_stack_lvl+0x8c/0xd0
[   17.448477]  print_report+0x310/0x5d0
[   17.448525]  kasan_report+0xdc/0x128
[   17.448583]  __asan_report_load1_noabort+0x20/0x30
[   17.448635]  kasan_stack_oob+0x238/0x270
[   17.448690]  kunit_try_run_case+0x170/0x3f0
[   17.449076]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.449219]  kthread+0x328/0x630
[   17.449787]  ret_from_fork+0x10/0x20
[   17.449847] 
[   17.450441] The buggy address belongs to stack of task kunit_try_catch/250
[   17.450690]  and is located at offset 138 in frame:
[   17.450731]  kasan_stack_oob+0x0/0x270
[   17.450859] 
[   17.450891] This frame has 4 objects:
[   17.451504]  [48, 49) '__assertion'
[   17.451716]  [64, 72) 'array'
[   17.451794]  [96, 112) '__assertion'
[   17.451937]  [128, 138) 'stack_array'
[   17.451985] 
[   17.452013] The buggy address ffff800080a77c2a belongs to a vmalloc virtual mapping
[   17.452060] The buggy address belongs to the physical page:
[   17.452094] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106e85
[   17.452154] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.452219] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.452720] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.452771] page dumped because: kasan: bad access detected
[   17.453095] 
[   17.453198] Memory state around the buggy address:
[   17.453309]  ffff800080a77b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.453357]  ffff800080a77b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   17.453472] >ffff800080a77c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   17.453664]                                   ^
[   17.454033]  ffff800080a77c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   17.454298]  ffff800080a77d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.454340] ==================================================================

[   13.830279] ==================================================================
[   13.831412] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   13.831827] Read of size 1 at addr ffff8881039c7d02 by task kunit_try_catch/267
[   13.832374] 
[   13.832826] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.832879] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.832891] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.832914] Call Trace:
[   13.832927]  <TASK>
[   13.832943]  dump_stack_lvl+0x73/0xb0
[   13.832973]  print_report+0xd1/0x610
[   13.832996]  ? __virt_addr_valid+0x1db/0x2d0
[   13.833019]  ? kasan_stack_oob+0x2b5/0x300
[   13.833038]  ? kasan_addr_to_slab+0x11/0xa0
[   13.833059]  ? kasan_stack_oob+0x2b5/0x300
[   13.833078]  kasan_report+0x141/0x180
[   13.833099]  ? kasan_stack_oob+0x2b5/0x300
[   13.833123]  __asan_report_load1_noabort+0x18/0x20
[   13.833147]  kasan_stack_oob+0x2b5/0x300
[   13.833218]  ? __pfx_kasan_stack_oob+0x10/0x10
[   13.833239]  ? finish_task_switch.isra.0+0x153/0x700
[   13.833263]  ? __switch_to+0x47/0xf50
[   13.833290]  ? __schedule+0x10cc/0x2b60
[   13.833312]  ? __pfx_read_tsc+0x10/0x10
[   13.833333]  ? ktime_get_ts64+0x86/0x230
[   13.833356]  kunit_try_run_case+0x1a5/0x480
[   13.833383]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.833405]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.833429]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.833452]  ? __kthread_parkme+0x82/0x180
[   13.833473]  ? preempt_count_sub+0x50/0x80
[   13.833509]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.833533]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.833557]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.833582]  kthread+0x337/0x6f0
[   13.833600]  ? trace_preempt_on+0x20/0xc0
[   13.833623]  ? __pfx_kthread+0x10/0x10
[   13.833643]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.833664]  ? calculate_sigpending+0x7b/0xa0
[   13.833689]  ? __pfx_kthread+0x10/0x10
[   13.833710]  ret_from_fork+0x116/0x1d0
[   13.833727]  ? __pfx_kthread+0x10/0x10
[   13.833747]  ret_from_fork_asm+0x1a/0x30
[   13.833777]  </TASK>
[   13.833788] 
[   13.845082] The buggy address belongs to stack of task kunit_try_catch/267
[   13.845817]  and is located at offset 138 in frame:
[   13.846228]  kasan_stack_oob+0x0/0x300
[   13.846847] 
[   13.846971] This frame has 4 objects:
[   13.847469]  [48, 49) '__assertion'
[   13.847516]  [64, 72) 'array'
[   13.847688]  [96, 112) '__assertion'
[   13.847831]  [128, 138) 'stack_array'
[   13.848303] 
[   13.848601] The buggy address belongs to the physical page:
[   13.848833] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c7
[   13.849532] flags: 0x200000000000000(node=0|zone=2)
[   13.849885] raw: 0200000000000000 ffffea00040e71c8 ffffea00040e71c8 0000000000000000
[   13.850266] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.850853] page dumped because: kasan: bad access detected
[   13.851349] 
[   13.851453] Memory state around the buggy address:
[   13.851766]  ffff8881039c7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.852238]  ffff8881039c7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   13.852565] >ffff8881039c7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.852933]                    ^
[   13.853167]  ffff8881039c7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   13.853733]  ffff8881039c7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.854129] ==================================================================