Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.049103] ==================================================================
[   20.049297] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   20.049388] Read of size 1 at addr ffff8000809d7c2a by task kunit_try_catch/251
[   20.049441] 
[   20.049628] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   20.049817] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.049898] Hardware name: linux,dummy-virt (DT)
[   20.050052] Call trace:
[   20.050131]  show_stack+0x20/0x38 (C)
[   20.050213]  dump_stack_lvl+0x8c/0xd0
[   20.050288]  print_report+0x310/0x5d0
[   20.050570]  kasan_report+0xdc/0x128
[   20.050744]  __asan_report_load1_noabort+0x20/0x30
[   20.050822]  kasan_stack_oob+0x238/0x270
[   20.050925]  kunit_try_run_case+0x170/0x3f0
[   20.050996]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.051300]  kthread+0x328/0x630
[   20.051438]  ret_from_fork+0x10/0x20
[   20.051559] 
[   20.051699] The buggy address belongs to stack of task kunit_try_catch/251
[   20.052090]  and is located at offset 138 in frame:
[   20.052251]  kasan_stack_oob+0x0/0x270
[   20.054673] 
[   20.054876] This frame has 4 objects:
[   20.055278]  [48, 49) '__assertion'
[   20.055328]  [64, 72) 'array'
[   20.055361]  [96, 112) '__assertion'
[   20.055631]  [128, 138) 'stack_array'
[   20.055803] 
[   20.055866] The buggy address ffff8000809d7c2a belongs to a vmalloc virtual mapping
[   20.055988] The buggy address belongs to the physical page:
[   20.056036] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106627
[   20.056094] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.056526] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.056641] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.056730] page dumped because: kasan: bad access detected
[   20.056788] 
[   20.056941] Memory state around the buggy address:
[   20.057082]  ffff8000809d7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.057150]  ffff8000809d7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   20.057254] >ffff8000809d7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   20.057324]                                   ^
[   20.057473]  ffff8000809d7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   20.057553]  ffff8000809d7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.057769] ==================================================================

[   12.787303] ==================================================================
[   12.787945] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   12.788261] Read of size 1 at addr ffff888103a0fd02 by task kunit_try_catch/268
[   12.788543] 
[   12.788649] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   12.788691] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.788702] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.788722] Call Trace:
[   12.788733]  <TASK>
[   12.788747]  dump_stack_lvl+0x73/0xb0
[   12.788768]  print_report+0xd1/0x610
[   12.788790]  ? __virt_addr_valid+0x1db/0x2d0
[   12.788810]  ? kasan_stack_oob+0x2b5/0x300
[   12.788830]  ? kasan_addr_to_slab+0x11/0xa0
[   12.788849]  ? kasan_stack_oob+0x2b5/0x300
[   12.788868]  kasan_report+0x141/0x180
[   12.789040]  ? kasan_stack_oob+0x2b5/0x300
[   12.789070]  __asan_report_load1_noabort+0x18/0x20
[   12.789091]  kasan_stack_oob+0x2b5/0x300
[   12.789111]  ? __pfx_kasan_stack_oob+0x10/0x10
[   12.789138]  ? finish_task_switch.isra.0+0x153/0x700
[   12.789162]  ? __switch_to+0x5d9/0xf60
[   12.789186]  ? dequeue_task_fair+0x156/0x4e0
[   12.789212]  ? __schedule+0x10cc/0x2b60
[   12.789236]  ? __pfx_read_tsc+0x10/0x10
[   12.789255]  ? ktime_get_ts64+0x86/0x230
[   12.789278]  kunit_try_run_case+0x1a5/0x480
[   12.789299]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.789317]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.789341]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.789364]  ? __kthread_parkme+0x82/0x180
[   12.789385]  ? preempt_count_sub+0x50/0x80
[   12.789408]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.789427]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.789450]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.789473]  kthread+0x337/0x6f0
[   12.789489]  ? trace_preempt_on+0x20/0xc0
[   12.789511]  ? __pfx_kthread+0x10/0x10
[   12.789528]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.789549]  ? calculate_sigpending+0x7b/0xa0
[   12.789570]  ? __pfx_kthread+0x10/0x10
[   12.789587]  ret_from_fork+0x41/0x80
[   12.789606]  ? __pfx_kthread+0x10/0x10
[   12.789623]  ret_from_fork_asm+0x1a/0x30
[   12.789652]  </TASK>
[   12.789662] 
[   12.797491] The buggy address belongs to stack of task kunit_try_catch/268
[   12.797966]  and is located at offset 138 in frame:
[   12.798132]  kasan_stack_oob+0x0/0x300
[   12.798443] 
[   12.798552] This frame has 4 objects:
[   12.799061]  [48, 49) '__assertion'
[   12.799087]  [64, 72) 'array'
[   12.799269]  [96, 112) '__assertion'
[   12.799440]  [128, 138) 'stack_array'
[   12.799586] 
[   12.799944] The buggy address belongs to the physical page:
[   12.800208] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a0f
[   12.800481] flags: 0x200000000000000(node=0|zone=2)
[   12.800647] raw: 0200000000000000 ffffea00040e83c8 ffffea00040e83c8 0000000000000000
[   12.801079] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.801426] page dumped because: kasan: bad access detected
[   12.801627] 
[   12.801711] Memory state around the buggy address:
[   12.801864]  ffff888103a0fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.802195]  ffff888103a0fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   12.802517] >ffff888103a0fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.802829]                    ^
[   12.803081]  ffff888103a0fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   12.803303]  ffff888103a0fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.803546] ==================================================================