Hay
Date
July 20, 2025, 8:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.378758] ==================================================================
[   17.378839] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270
[   17.378893] Read of size 1 at addr ffff800080a17c2a by task kunit_try_catch/250
[   17.378944] 
[   17.379267] CPU: 0 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.379417] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.379508] Hardware name: linux,dummy-virt (DT)
[   17.379545] Call trace:
[   17.379576]  show_stack+0x20/0x38 (C)
[   17.379641]  dump_stack_lvl+0x8c/0xd0
[   17.379854]  print_report+0x310/0x5d0
[   17.380065]  kasan_report+0xdc/0x128
[   17.380131]  __asan_report_load1_noabort+0x20/0x30
[   17.380202]  kasan_stack_oob+0x238/0x270
[   17.380283]  kunit_try_run_case+0x170/0x3f0
[   17.380342]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.380426]  kthread+0x328/0x630
[   17.380514]  ret_from_fork+0x10/0x20
[   17.380565] 
[   17.380774] The buggy address belongs to stack of task kunit_try_catch/250
[   17.381080]  and is located at offset 138 in frame:
[   17.381263]  kasan_stack_oob+0x0/0x270
[   17.382102] 
[   17.382163] This frame has 4 objects:
[   17.382513]  [48, 49) '__assertion'
[   17.382822]  [64, 72) 'array'
[   17.382979]  [96, 112) '__assertion'
[   17.383059]  [128, 138) 'stack_array'
[   17.383164] 
[   17.383231] The buggy address ffff800080a17c2a belongs to a vmalloc virtual mapping
[   17.383279] The buggy address belongs to the physical page:
[   17.383314] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076ff
[   17.383367] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.383438] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.383488] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.383538] page dumped because: kasan: bad access detected
[   17.383581] 
[   17.383599] Memory state around the buggy address:
[   17.383649]  ffff800080a17b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.383692]  ffff800080a17b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2
[   17.383743] >ffff800080a17c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00
[   17.383781]                                   ^
[   17.383814]  ffff800080a17c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
[   17.383856]  ffff800080a17d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.383904] ==================================================================

[   14.748790] ==================================================================
[   14.749916] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300
[   14.750569] Read of size 1 at addr ffff88810397fd02 by task kunit_try_catch/267
[   14.750911] 
[   14.751106] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.751172] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.751186] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.751211] Call Trace:
[   14.751237]  <TASK>
[   14.751257]  dump_stack_lvl+0x73/0xb0
[   14.751293]  print_report+0xd1/0x610
[   14.751317]  ? __virt_addr_valid+0x1db/0x2d0
[   14.751344]  ? kasan_stack_oob+0x2b5/0x300
[   14.751365]  ? kasan_addr_to_slab+0x11/0xa0
[   14.751388]  ? kasan_stack_oob+0x2b5/0x300
[   14.751410]  kasan_report+0x141/0x180
[   14.751433]  ? kasan_stack_oob+0x2b5/0x300
[   14.751458]  __asan_report_load1_noabort+0x18/0x20
[   14.751494]  kasan_stack_oob+0x2b5/0x300
[   14.751515]  ? __pfx_kasan_stack_oob+0x10/0x10
[   14.751536]  ? finish_task_switch.isra.0+0x153/0x700
[   14.751561]  ? __switch_to+0x47/0xf50
[   14.751589]  ? __schedule+0x10c6/0x2b60
[   14.751615]  ? __pfx_read_tsc+0x10/0x10
[   14.751641]  ? ktime_get_ts64+0x86/0x230
[   14.751667]  kunit_try_run_case+0x1a5/0x480
[   14.751696]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.751720]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.751746]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.751771]  ? __kthread_parkme+0x82/0x180
[   14.751795]  ? preempt_count_sub+0x50/0x80
[   14.751819]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.751843]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.751869]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.751893]  kthread+0x337/0x6f0
[   14.751914]  ? trace_preempt_on+0x20/0xc0
[   14.751939]  ? __pfx_kthread+0x10/0x10
[   14.751961]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.751984]  ? calculate_sigpending+0x7b/0xa0
[   14.752009]  ? __pfx_kthread+0x10/0x10
[   14.752032]  ret_from_fork+0x116/0x1d0
[   14.752051]  ? __pfx_kthread+0x10/0x10
[   14.752073]  ret_from_fork_asm+0x1a/0x30
[   14.752106]  </TASK>
[   14.752117] 
[   14.765753] The buggy address belongs to stack of task kunit_try_catch/267
[   14.766093]  and is located at offset 138 in frame:
[   14.766293]  kasan_stack_oob+0x0/0x300
[   14.766636] 
[   14.766852] This frame has 4 objects:
[   14.767314]  [48, 49) '__assertion'
[   14.767338]  [64, 72) 'array'
[   14.767761]  [96, 112) '__assertion'
[   14.768212]  [128, 138) 'stack_array'
[   14.768643] 
[   14.769202] The buggy address belongs to the physical page:
[   14.769804] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10397f
[   14.770515] flags: 0x200000000000000(node=0|zone=2)
[   14.770707] raw: 0200000000000000 ffffea00040e5fc8 ffffea00040e5fc8 0000000000000000
[   14.771350] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.772092] page dumped because: kasan: bad access detected
[   14.772627] 
[   14.772799] Memory state around the buggy address:
[   14.773205]  ffff88810397fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.773818]  ffff88810397fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00
[   14.774577] >ffff88810397fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.775134]                    ^
[   14.775435]  ffff88810397fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00
[   14.775675]  ffff88810397fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.776099] ==================================================================