Hay
Date
July 17, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   17.774744] ==================================================================
[   17.774825] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   17.774881] Read of size 1 at addr ffff800080a27c2a by task kunit_try_catch/250
[   17.774931] 
[   17.774966] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.775066] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.775092] Hardware name: linux,dummy-virt (DT)
[   17.775124] Call trace:
[   17.775146]  show_stack+0x20/0x38 (C)
[   17.775195]  dump_stack_lvl+0x8c/0xd0
[   17.775242]  print_report+0x310/0x5d0
[   17.775288]  kasan_report+0xdc/0x128
[   17.775417]  __asan_report_load1_noabort+0x20/0x30
[   17.775478]  kasan_stack_oob+0x238/0x270
[   17.775542]  kunit_try_run_case+0x170/0x3f0
[   17.775594]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.775648]  kthread+0x328/0x630
[   17.775693]  ret_from_fork+0x10/0x20
[   17.775743] 
[   17.775794] The buggy address belongs to stack of task kunit_try_catch/250
[   17.775898]  and is located at offset 138 in frame:
[   17.775938]  kasan_stack_oob+0x0/0x270
[   17.776309] 
[   17.776352] This frame has 4 objects:
[   17.776449]  [48, 49) '__assertion'
[   17.776489]  [64, 72) 'array'
[   17.776527]  [96, 112) '__assertion'
[   17.776593]  [128, 138) 'stack_array'
[   17.776640] 
[   17.776667] The buggy address ffff800080a27c2a belongs to a vmalloc virtual mapping
[   17.776718] The buggy address belongs to the physical page:
[   17.776752] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107826
[   17.776822] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.776891] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.776945] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.777005] page dumped because: kasan: bad access detected
[   17.777039] 
[   17.777059] Memory state around the buggy address:
[   17.777095]  ffff800080a27b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.777141]  ffff800080a27b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   17.777186] >ffff800080a27c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   17.777242]                                   ^
[   17.777277]  ffff800080a27c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   17.777323]  ffff800080a27d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.777365] ==================================================================

[   14.879627] ==================================================================
[   14.880447] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.880804] Read of size 1 at addr ffff888103937d02 by task kunit_try_catch/266
[   14.881106] 
[   14.881225] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.881433] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.881448] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.881468] Call Trace:
[   14.881479]  <TASK>
[   14.881494]  dump_stack_lvl+0x73/0xb0
[   14.881526]  print_report+0xd1/0x610
[   14.881562]  ? __virt_addr_valid+0x1db/0x2d0
[   14.881587]  ? kasan_stack_oob+0x2b5/0x300
[   14.881608]  ? kasan_addr_to_slab+0x11/0xa0
[   14.881629]  ? kasan_stack_oob+0x2b5/0x300
[   14.881651]  kasan_report+0x141/0x180
[   14.881674]  ? kasan_stack_oob+0x2b5/0x300
[   14.881699]  __asan_report_load1_noabort+0x18/0x20
[   14.881725]  kasan_stack_oob+0x2b5/0x300
[   14.881745]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.881769]  ? __kasan_check_write+0x18/0x20
[   14.881789]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.881815]  ? irqentry_exit+0x2a/0x60
[   14.881837]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   14.881864]  ? __pfx_read_tsc+0x10/0x10
[   14.881886]  ? ktime_get_ts64+0x86/0x230
[   14.881911]  kunit_try_run_case+0x1a5/0x480
[   14.881938]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.881964]  ? queued_spin_lock_slowpath+0x116/0xb40
[   14.881988]  ? __kthread_parkme+0x82/0x180
[   14.882010]  ? preempt_count_sub+0x50/0x80
[   14.882035]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.882060]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.882085]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.882112]  kthread+0x337/0x6f0
[   14.882131]  ? trace_preempt_on+0x20/0xc0
[   14.882155]  ? __pfx_kthread+0x10/0x10
[   14.882177]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.882199]  ? calculate_sigpending+0x7b/0xa0
[   14.882224]  ? __pfx_kthread+0x10/0x10
[   14.882297]  ret_from_fork+0x116/0x1d0
[   14.882318]  ? __pfx_kthread+0x10/0x10
[   14.882340]  ret_from_fork_asm+0x1a/0x30
[   14.882372]  </TASK>
[   14.882383] 
[   14.889506] The buggy address belongs to stack of task kunit_try_catch/266
[   14.890208]  and is located at offset 138 in frame:
[   14.890679]  kasan_stack_oob+0x0/0x300
[   14.890974] 
[   14.891082] This frame has 4 objects:
[   14.891391]  [48, 49) '__assertion'
[   14.891424]  [64, 72) 'array'
[   14.891612]  [96, 112) '__assertion'
[   14.891750]  [128, 138) 'stack_array'
[   14.891915] 
[   14.892190] The buggy address belongs to the physical page:
[   14.892439] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103937
[   14.892770] flags: 0x200000000000000(node=0|zone=2)
[   14.893035] raw: 0200000000000000 ffffea00040e4dc8 ffffea00040e4dc8 0000000000000000
[   14.893588] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.893847] page dumped because: kasan: bad access detected
[   14.894022] 
[   14.894092] Memory state around the buggy address:
[   14.894320]  ffff888103937c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.894667]  ffff888103937c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.894945] >ffff888103937d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.895224]                    ^
[   14.895341]  ffff888103937d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.895568]  ffff888103937e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.895996] ==================================================================