Hay
Date
July 23, 2025, 2:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   17.608762] ==================================================================
[   17.608841] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   17.608910] Read of size 1 at addr ffff800080a57c2a by task kunit_try_catch/249
[   17.608962] 
[   17.608993] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   17.609079] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.609208] Hardware name: linux,dummy-virt (DT)
[   17.609242] Call trace:
[   17.609286]  show_stack+0x20/0x38 (C)
[   17.609341]  dump_stack_lvl+0x8c/0xd0
[   17.609389]  print_report+0x310/0x5d0
[   17.609438]  kasan_report+0xdc/0x128
[   17.609486]  __asan_report_load1_noabort+0x20/0x30
[   17.609539]  kasan_stack_oob+0x238/0x270
[   17.609585]  kunit_try_run_case+0x170/0x3f0
[   17.609646]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.609712]  kthread+0x328/0x630
[   17.609758]  ret_from_fork+0x10/0x20
[   17.609807] 
[   17.610816] The buggy address belongs to stack of task kunit_try_catch/249
[   17.611138]  and is located at offset 138 in frame:
[   17.611378]  kasan_stack_oob+0x0/0x270
[   17.611885] 
[   17.612037] This frame has 4 objects:
[   17.612377]  [48, 49) '__assertion'
[   17.612440]  [64, 72) 'array'
[   17.612867]  [96, 112) '__assertion'
[   17.613011]  [128, 138) 'stack_array'
[   17.613165] 
[   17.613295] The buggy address ffff800080a57c2a belongs to a vmalloc virtual mapping
[   17.613501] The buggy address belongs to the physical page:
[   17.613806] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103faa
[   17.614073] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.614614] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.614913] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.614996] page dumped because: kasan: bad access detected
[   17.615049] 
[   17.615092] Memory state around the buggy address:
[   17.615353]  ffff800080a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.615705]  ffff800080a57b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   17.616416] >ffff800080a57c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   17.616489]                                   ^
[   17.616530]  ffff800080a57c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   17.617007]  ffff800080a57d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.617218] ==================================================================

[   14.368633] ==================================================================
[   14.369306] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.369668] Read of size 1 at addr ffff888103b07d02 by task kunit_try_catch/266
[   14.369996] 
[   14.370082] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   14.370125] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.370137] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.370157] Call Trace:
[   14.370168]  <TASK>
[   14.370182]  dump_stack_lvl+0x73/0xb0
[   14.370209]  print_report+0xd1/0x610
[   14.370243]  ? __virt_addr_valid+0x1db/0x2d0
[   14.370264]  ? kasan_stack_oob+0x2b5/0x300
[   14.370283]  ? kasan_addr_to_slab+0x11/0xa0
[   14.370303]  ? kasan_stack_oob+0x2b5/0x300
[   14.370323]  kasan_report+0x141/0x180
[   14.370345]  ? kasan_stack_oob+0x2b5/0x300
[   14.370369]  __asan_report_load1_noabort+0x18/0x20
[   14.370393]  kasan_stack_oob+0x2b5/0x300
[   14.370413]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.370432]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   14.370461]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.370486]  kunit_try_run_case+0x1a5/0x480
[   14.370510]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.370533]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.370556]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.370579]  ? __kthread_parkme+0x82/0x180
[   14.370599]  ? preempt_count_sub+0x50/0x80
[   14.370623]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.370646]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.370669]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.370693]  kthread+0x337/0x6f0
[   14.370712]  ? trace_preempt_on+0x20/0xc0
[   14.370734]  ? __pfx_kthread+0x10/0x10
[   14.370755]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.370776]  ? calculate_sigpending+0x7b/0xa0
[   14.370801]  ? __pfx_kthread+0x10/0x10
[   14.370834]  ret_from_fork+0x116/0x1d0
[   14.370852]  ? __pfx_kthread+0x10/0x10
[   14.370873]  ret_from_fork_asm+0x1a/0x30
[   14.370903]  </TASK>
[   14.370914] 
[   14.378111] The buggy address belongs to stack of task kunit_try_catch/266
[   14.378539]  and is located at offset 138 in frame:
[   14.378769]  kasan_stack_oob+0x0/0x300
[   14.379083] 
[   14.379196] This frame has 4 objects:
[   14.379451]  [48, 49) '__assertion'
[   14.379473]  [64, 72) 'array'
[   14.379625]  [96, 112) '__assertion'
[   14.379788]  [128, 138) 'stack_array'
[   14.379954] 
[   14.380239] The buggy address belongs to the physical page:
[   14.380475] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b07
[   14.380719] flags: 0x200000000000000(node=0|zone=2)
[   14.380972] raw: 0200000000000000 ffffea00040ec1c8 ffffea00040ec1c8 0000000000000000
[   14.381667] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.381948] page dumped because: kasan: bad access detected
[   14.382181] 
[   14.382276] Memory state around the buggy address:
[   14.382769]  ffff888103b07c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.383073]  ffff888103b07c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.383294] >ffff888103b07d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.383511]                    ^
[   14.383658]  ffff888103b07d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.383992]  ffff888103b07e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.384502] ==================================================================