Hay
Date
July 16, 2025, 3:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.734014] ==================================================================
[   18.734095] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   18.734153] Read of size 1 at addr ffff800080a67c2a by task kunit_try_catch/249
[   18.734204] 
[   18.734239] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   18.734324] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.734351] Hardware name: linux,dummy-virt (DT)
[   18.734416] Call trace:
[   18.734439]  show_stack+0x20/0x38 (C)
[   18.734500]  dump_stack_lvl+0x8c/0xd0
[   18.734779]  print_report+0x310/0x5d0
[   18.734832]  kasan_report+0xdc/0x128
[   18.734878]  __asan_report_load1_noabort+0x20/0x30
[   18.734930]  kasan_stack_oob+0x238/0x270
[   18.735236]  kunit_try_run_case+0x170/0x3f0
[   18.735929]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.736049]  kthread+0x328/0x630
[   18.736266]  ret_from_fork+0x10/0x20
[   18.736403] 
[   18.736605] The buggy address belongs to stack of task kunit_try_catch/249
[   18.737200]  and is located at offset 138 in frame:
[   18.737548]  kasan_stack_oob+0x0/0x270
[   18.738257] 
[   18.738441] This frame has 4 objects:
[   18.739111]  [48, 49) '__assertion'
[   18.739189]  [64, 72) 'array'
[   18.739458]  [96, 112) '__assertion'
[   18.739669]  [128, 138) 'stack_array'
[   18.739937] 
[   18.740136] The buggy address ffff800080a67c2a belongs to a vmalloc virtual mapping
[   18.740193] The buggy address belongs to the physical page:
[   18.740236] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106587
[   18.740421] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.740900] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.741033] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.741149] page dumped because: kasan: bad access detected
[   18.741506] 
[   18.741552] Memory state around the buggy address:
[   18.741624]  ffff800080a67b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.741803]  ffff800080a67b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   18.741856] >ffff800080a67c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   18.742092]                                   ^
[   18.742145]  ffff800080a67c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   18.742191]  ffff800080a67d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.742234] ==================================================================

[   14.419343] ==================================================================
[   14.420701] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.420963] Read of size 1 at addr ffff8881039afd02 by task kunit_try_catch/266
[   14.421200] 
[   14.421290] CPU: 1 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.421339] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.421351] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.421375] Call Trace:
[   14.421389]  <TASK>
[   14.421405]  dump_stack_lvl+0x73/0xb0
[   14.421436]  print_report+0xd1/0x610
[   14.421460]  ? __virt_addr_valid+0x1db/0x2d0
[   14.421484]  ? kasan_stack_oob+0x2b5/0x300
[   14.421505]  ? kasan_addr_to_slab+0x11/0xa0
[   14.421526]  ? kasan_stack_oob+0x2b5/0x300
[   14.421547]  kasan_report+0x141/0x180
[   14.421569]  ? kasan_stack_oob+0x2b5/0x300
[   14.421594]  __asan_report_load1_noabort+0x18/0x20
[   14.421620]  kasan_stack_oob+0x2b5/0x300
[   14.421640]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.421660]  ? finish_task_switch.isra.0+0x153/0x700
[   14.421687]  ? __switch_to+0x47/0xf50
[   14.421715]  ? __schedule+0x10cc/0x2b60
[   14.421738]  ? __pfx_read_tsc+0x10/0x10
[   14.421811]  ? ktime_get_ts64+0x86/0x230
[   14.421839]  kunit_try_run_case+0x1a5/0x480
[   14.421865]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.421901]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.421931]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.421986]  ? __kthread_parkme+0x82/0x180
[   14.422009]  ? preempt_count_sub+0x50/0x80
[   14.422033]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.422059]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.422085]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.422111]  kthread+0x337/0x6f0
[   14.422132]  ? trace_preempt_on+0x20/0xc0
[   14.422158]  ? __pfx_kthread+0x10/0x10
[   14.422179]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.422201]  ? calculate_sigpending+0x7b/0xa0
[   14.422227]  ? __pfx_kthread+0x10/0x10
[   14.422248]  ret_from_fork+0x116/0x1d0
[   14.422267]  ? __pfx_kthread+0x10/0x10
[   14.422298]  ret_from_fork_asm+0x1a/0x30
[   14.422330]  </TASK>
[   14.422340] 
[   14.434406] The buggy address belongs to stack of task kunit_try_catch/266
[   14.434856]  and is located at offset 138 in frame:
[   14.435033]  kasan_stack_oob+0x0/0x300
[   14.435294] 
[   14.435379] This frame has 4 objects:
[   14.435588]  [48, 49) '__assertion'
[   14.435610]  [64, 72) 'array'
[   14.435737]  [96, 112) '__assertion'
[   14.435874]  [128, 138) 'stack_array'
[   14.436013] 
[   14.436202] The buggy address belongs to the physical page:
[   14.436378] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039af
[   14.436622] flags: 0x200000000000000(node=0|zone=2)
[   14.436861] raw: 0200000000000000 ffffea00040e6bc8 ffffea00040e6bc8 0000000000000000
[   14.437513] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.438380] page dumped because: kasan: bad access detected
[   14.439087] 
[   14.439280] Memory state around the buggy address:
[   14.439750]  ffff8881039afc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.440624]  ffff8881039afc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.441445] >ffff8881039afd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.442258]                    ^
[   14.442658]  ffff8881039afd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.443377]  ffff8881039afe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.444118] ==================================================================