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

Environment
qemu-arm64
qemu-x86_64

[   33.440315] ==================================================================
[   33.440411] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   33.440476] Read of size 1 at addr ffff800080b27c2a by task kunit_try_catch/280
[   33.440885] 
[   33.440977] CPU: 0 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   33.441192] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.441243] Hardware name: linux,dummy-virt (DT)
[   33.441280] Call trace:
[   33.441309]  show_stack+0x20/0x38 (C)
[   33.441527]  dump_stack_lvl+0x8c/0xd0
[   33.441648]  print_report+0x310/0x5d0
[   33.441794]  kasan_report+0xdc/0x128
[   33.441871]  __asan_report_load1_noabort+0x20/0x30
[   33.441930]  kasan_stack_oob+0x238/0x270
[   33.442095]  kunit_try_run_case+0x170/0x3f0
[   33.442276]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.442429]  kthread+0x328/0x630
[   33.442507]  ret_from_fork+0x10/0x20
[   33.442583] 
[   33.442859] The buggy address belongs to stack of task kunit_try_catch/280
[   33.443134]  and is located at offset 138 in frame:
[   33.443250]  kasan_stack_oob+0x0/0x270
[   33.443755] 
[   33.443812] This frame has 4 objects:
[   33.443985]  [48, 49) '__assertion'
[   33.444040]  [64, 72) 'array'
[   33.444087]  [96, 112) '__assertion'
[   33.444132]  [128, 138) 'stack_array'
[   33.444190] 
[   33.444231] The buggy address ffff800080b27c2a belongs to a vmalloc virtual mapping
[   33.444275] The buggy address belongs to the physical page:
[   33.444309] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ad2
[   33.444401] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.444469] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   33.444520] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.444912] page dumped because: kasan: bad access detected
[   33.445162] 
[   33.445229] Memory state around the buggy address:
[   33.445266]  ffff800080b27b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.445599]  ffff800080b27b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   33.445664] >ffff800080b27c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   33.445795]                                   ^
[   33.445859]  ffff800080b27c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   33.446076]  ffff800080b27d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   33.446163] ==================================================================

[   25.209331] ==================================================================
[   25.209815] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   25.210061] Read of size 1 at addr ffff8881026a7d02 by task kunit_try_catch/297
[   25.210290] 
[   25.210381] CPU: 0 UID: 0 PID: 297 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   25.210435] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.210447] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.210471] Call Trace:
[   25.210485]  <TASK>
[   25.210506]  dump_stack_lvl+0x73/0xb0
[   25.210537]  print_report+0xd1/0x610
[   25.210559]  ? __virt_addr_valid+0x1db/0x2d0
[   25.210584]  ? kasan_stack_oob+0x2b5/0x300
[   25.210611]  ? kasan_addr_to_slab+0x11/0xa0
[   25.210631]  ? kasan_stack_oob+0x2b5/0x300
[   25.210658]  kasan_report+0x141/0x180
[   25.210682]  ? kasan_stack_oob+0x2b5/0x300
[   25.210714]  __asan_report_load1_noabort+0x18/0x20
[   25.210741]  kasan_stack_oob+0x2b5/0x300
[   25.210767]  ? __pfx_kasan_stack_oob+0x10/0x10
[   25.210794]  ? finish_task_switch.isra.0+0x153/0x700
[   25.210817]  ? __switch_to+0x47/0xf50
[   25.210847]  ? __schedule+0x10cc/0x2b60
[   25.210877]  ? __pfx_read_tsc+0x10/0x10
[   25.210901]  ? ktime_get_ts64+0x86/0x230
[   25.210927]  kunit_try_run_case+0x1a5/0x480
[   25.210950]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.210970]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.210991]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.211020]  ? __kthread_parkme+0x82/0x180
[   25.211040]  ? preempt_count_sub+0x50/0x80
[   25.211063]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.211087]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.211114]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.211142]  kthread+0x337/0x6f0
[   25.211163]  ? trace_preempt_on+0x20/0xc0
[   25.211189]  ? __pfx_kthread+0x10/0x10
[   25.211210]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.211604]  ? calculate_sigpending+0x7b/0xa0
[   25.211650]  ? __pfx_kthread+0x10/0x10
[   25.211675]  ret_from_fork+0x116/0x1d0
[   25.211697]  ? __pfx_kthread+0x10/0x10
[   25.211720]  ret_from_fork_asm+0x1a/0x30
[   25.211989]  </TASK>
[   25.212007] 
[   25.226451] The buggy address belongs to stack of task kunit_try_catch/297
[   25.226770]  and is located at offset 138 in frame:
[   25.227398]  kasan_stack_oob+0x0/0x300
[   25.227724] 
[   25.227839] This frame has 4 objects:
[   25.228258]  [48, 49) '__assertion'
[   25.228287]  [64, 72) 'array'
[   25.228558]  [96, 112) '__assertion'
[   25.228736]  [128, 138) 'stack_array'
[   25.228979] 
[   25.229297] The buggy address belongs to the physical page:
[   25.229570] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026a7
[   25.229983] flags: 0x200000000000000(node=0|zone=2)
[   25.230307] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000
[   25.230624] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   25.231149] page dumped because: kasan: bad access detected
[   25.231383] 
[   25.231455] Memory state around the buggy address:
[   25.231649]  ffff8881026a7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   25.232362]  ffff8881026a7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   25.232632] >ffff8881026a7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   25.233200]                    ^
[   25.233400]  ffff8881026a7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   25.233664]  ffff8881026a7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   25.234395] ==================================================================