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

Environment
qemu-arm64
qemu-x86_64

[   17.645094] ==================================================================
[   17.645444] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   17.645523] Read of size 1 at addr ffff800080a57b4a by task kunit_try_catch/253
[   17.645756] 
[   17.645820] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   17.645971] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.646267] Hardware name: linux,dummy-virt (DT)
[   17.646336] Call trace:
[   17.646362]  show_stack+0x20/0x38 (C)
[   17.646511]  dump_stack_lvl+0x8c/0xd0
[   17.646568]  print_report+0x310/0x5d0
[   17.646684]  kasan_report+0xdc/0x128
[   17.646745]  __asan_report_load1_noabort+0x20/0x30
[   17.646815]  kasan_alloca_oob_right+0x2dc/0x340
[   17.647217]  kunit_try_run_case+0x170/0x3f0
[   17.647299]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.647547]  kthread+0x328/0x630
[   17.647735]  ret_from_fork+0x10/0x20
[   17.647940] 
[   17.648064] The buggy address belongs to stack of task kunit_try_catch/253
[   17.648145] 
[   17.648369] The buggy address ffff800080a57b4a belongs to a vmalloc virtual mapping
[   17.648676] The buggy address belongs to the physical page:
[   17.648783] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103faa
[   17.648964] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.649107] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.649389] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.649532] page dumped because: kasan: bad access detected
[   17.649782] 
[   17.649878] Memory state around the buggy address:
[   17.649929]  ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.650164]  ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.650539] >ffff800080a57b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   17.651041]                                               ^
[   17.651214]  ffff800080a57b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   17.651356]  ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.651497] ==================================================================

[   14.409300] ==================================================================
[   14.410827] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.411841] Read of size 1 at addr ffff888103a37c4a by task kunit_try_catch/270
[   14.412070] 
[   14.412915] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   14.412966] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.412978] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.413001] Call Trace:
[   14.413014]  <TASK>
[   14.413028]  dump_stack_lvl+0x73/0xb0
[   14.413059]  print_report+0xd1/0x610
[   14.413273]  ? __virt_addr_valid+0x1db/0x2d0
[   14.413304]  ? kasan_alloca_oob_right+0x329/0x390
[   14.413340]  ? kasan_addr_to_slab+0x11/0xa0
[   14.413361]  ? kasan_alloca_oob_right+0x329/0x390
[   14.413385]  kasan_report+0x141/0x180
[   14.413438]  ? kasan_alloca_oob_right+0x329/0x390
[   14.413466]  __asan_report_load1_noabort+0x18/0x20
[   14.413491]  kasan_alloca_oob_right+0x329/0x390
[   14.413515]  ? finish_task_switch.isra.0+0x153/0x700
[   14.413538]  ? rt_mutex_adjust_prio_chain+0x195e/0x20e0
[   14.413562]  ? trace_hardirqs_on+0x37/0xe0
[   14.413588]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.413613]  ? __schedule+0x10c6/0x2b60
[   14.413636]  ? __pfx_read_tsc+0x10/0x10
[   14.413657]  ? ktime_get_ts64+0x86/0x230
[   14.413681]  kunit_try_run_case+0x1a5/0x480
[   14.413706]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.413728]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.413752]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.413775]  ? __kthread_parkme+0x82/0x180
[   14.413795]  ? preempt_count_sub+0x50/0x80
[   14.413830]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.413854]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.413877]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.413901]  kthread+0x337/0x6f0
[   14.413919]  ? trace_preempt_on+0x20/0xc0
[   14.413941]  ? __pfx_kthread+0x10/0x10
[   14.413960]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.413982]  ? calculate_sigpending+0x7b/0xa0
[   14.414006]  ? __pfx_kthread+0x10/0x10
[   14.414027]  ret_from_fork+0x116/0x1d0
[   14.414045]  ? __pfx_kthread+0x10/0x10
[   14.414066]  ret_from_fork_asm+0x1a/0x30
[   14.414117]  </TASK>
[   14.414128] 
[   14.425186] The buggy address belongs to stack of task kunit_try_catch/270
[   14.425836] 
[   14.425924] The buggy address belongs to the physical page:
[   14.426528] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a37
[   14.426953] flags: 0x200000000000000(node=0|zone=2)
[   14.427333] raw: 0200000000000000 ffffea00040e8dc8 ffffea00040e8dc8 0000000000000000
[   14.427667] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.428016] page dumped because: kasan: bad access detected
[   14.428505] 
[   14.428602] Memory state around the buggy address:
[   14.428762]  ffff888103a37b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.429287]  ffff888103a37b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.429704] >ffff888103a37c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.430107]                                               ^
[   14.430390]  ffff888103a37c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.430871]  ffff888103a37d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.431370] ==================================================================