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

Environment
qemu-arm64
qemu-x86_64

[   17.412128] ==================================================================
[   17.412202] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   17.412255] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/254
[   17.412306] 
[   17.412339] CPU: 0 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.412423] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.412451] Hardware name: linux,dummy-virt (DT)
[   17.412484] Call trace:
[   17.412587]  show_stack+0x20/0x38 (C)
[   17.412660]  dump_stack_lvl+0x8c/0xd0
[   17.412709]  print_report+0x310/0x5d0
[   17.412769]  kasan_report+0xdc/0x128
[   17.412827]  __asan_report_load1_noabort+0x20/0x30
[   17.413527]  kasan_alloca_oob_right+0x2dc/0x340
[   17.413661]  kunit_try_run_case+0x170/0x3f0
[   17.413975]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.414077]  kthread+0x328/0x630
[   17.414139]  ret_from_fork+0x10/0x20
[   17.414285] 
[   17.414356] The buggy address belongs to stack of task kunit_try_catch/254
[   17.414508] 
[   17.414532] The buggy address ffff800080a17b4a belongs to a vmalloc virtual mapping
[   17.414585] The buggy address belongs to the physical page:
[   17.414943] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076ff
[   17.415010] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.415402] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   17.415557] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   17.415621] page dumped because: kasan: bad access detected
[   17.415696] 
[   17.415839] Memory state around the buggy address:
[   17.415905]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.416011]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.416424] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   17.416521]                                               ^
[   17.416601]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   17.416743]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   17.416840] ==================================================================

[   14.809455] ==================================================================
[   14.810163] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.810658] Read of size 1 at addr ffff888103937c4a by task kunit_try_catch/271
[   14.811303] 
[   14.811440] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.811503] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.811515] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.811540] Call Trace:
[   14.811554]  <TASK>
[   14.811571]  dump_stack_lvl+0x73/0xb0
[   14.811739]  print_report+0xd1/0x610
[   14.811772]  ? __virt_addr_valid+0x1db/0x2d0
[   14.811797]  ? kasan_alloca_oob_right+0x329/0x390
[   14.811820]  ? kasan_addr_to_slab+0x11/0xa0
[   14.811840]  ? kasan_alloca_oob_right+0x329/0x390
[   14.811864]  kasan_report+0x141/0x180
[   14.811886]  ? kasan_alloca_oob_right+0x329/0x390
[   14.811912]  __asan_report_load1_noabort+0x18/0x20
[   14.811937]  kasan_alloca_oob_right+0x329/0x390
[   14.811959]  ? __kasan_check_write+0x18/0x20
[   14.811980]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.812003]  ? finish_task_switch.isra.0+0x153/0x700
[   14.812026]  ? rt_mutex_adjust_prio_chain+0x195e/0x20e0
[   14.812153]  ? trace_hardirqs_on+0x37/0xe0
[   14.812180]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.812206]  ? __schedule+0x10c6/0x2b60
[   14.812229]  ? __pfx_read_tsc+0x10/0x10
[   14.812251]  ? ktime_get_ts64+0x86/0x230
[   14.812276]  kunit_try_run_case+0x1a5/0x480
[   14.812305]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.812328]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.812352]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.812377]  ? __kthread_parkme+0x82/0x180
[   14.812398]  ? preempt_count_sub+0x50/0x80
[   14.812421]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.812445]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.812481]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.812506]  kthread+0x337/0x6f0
[   14.812525]  ? trace_preempt_on+0x20/0xc0
[   14.812547]  ? __pfx_kthread+0x10/0x10
[   14.812568]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.812591]  ? calculate_sigpending+0x7b/0xa0
[   14.812614]  ? __pfx_kthread+0x10/0x10
[   14.812636]  ret_from_fork+0x116/0x1d0
[   14.812655]  ? __pfx_kthread+0x10/0x10
[   14.812676]  ret_from_fork_asm+0x1a/0x30
[   14.812706]  </TASK>
[   14.812717] 
[   14.826280] The buggy address belongs to stack of task kunit_try_catch/271
[   14.826620] 
[   14.826726] The buggy address belongs to the physical page:
[   14.827297] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103937
[   14.827754] flags: 0x200000000000000(node=0|zone=2)
[   14.828309] raw: 0200000000000000 ffffea00040e4dc8 ffffea00040e4dc8 0000000000000000
[   14.828688] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.829347] page dumped because: kasan: bad access detected
[   14.829717] 
[   14.830025] Memory state around the buggy address:
[   14.830320]  ffff888103937b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.830741]  ffff888103937b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.831262] >ffff888103937c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.831580]                                               ^
[   14.831831]  ffff888103937c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.832575]  ffff888103937d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.833001] ==================================================================