Hay
Date
July 3, 2025, 3:13 p.m.

Environment
qemu-x86_64

[   13.039467] ==================================================================
[   13.040092] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.040626] Read of size 1 at addr ffff8881039e7c4a by task kunit_try_catch/272
[   13.041913] 
[   13.042183] CPU: 0 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   13.042248] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.042262] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.042285] Call Trace:
[   13.042300]  <TASK>
[   13.042321]  dump_stack_lvl+0x73/0xb0
[   13.042368]  print_report+0xd1/0x650
[   13.042420]  ? __virt_addr_valid+0x1db/0x2d0
[   13.042445]  ? kasan_alloca_oob_right+0x329/0x390
[   13.042469]  ? kasan_addr_to_slab+0x11/0xa0
[   13.042502]  ? kasan_alloca_oob_right+0x329/0x390
[   13.042526]  kasan_report+0x141/0x180
[   13.042549]  ? kasan_alloca_oob_right+0x329/0x390
[   13.042576]  __asan_report_load1_noabort+0x18/0x20
[   13.042598]  kasan_alloca_oob_right+0x329/0x390
[   13.042622]  ? irqentry_exit+0x2a/0x60
[   13.042642]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   13.042667]  ? trace_hardirqs_on+0x37/0xe0
[   13.042694]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.042722]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.042751]  kunit_try_run_case+0x1a5/0x480
[   13.042777]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.042799]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.042825]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.042849]  ? __kthread_parkme+0x82/0x180
[   13.042872]  ? preempt_count_sub+0x50/0x80
[   13.042898]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.042921]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.042944]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.042968]  kthread+0x337/0x6f0
[   13.042985]  ? trace_preempt_on+0x20/0xc0
[   13.043006]  ? __pfx_kthread+0x10/0x10
[   13.043025]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.043046]  ? calculate_sigpending+0x7b/0xa0
[   13.043068]  ? __pfx_kthread+0x10/0x10
[   13.043086]  ret_from_fork+0x41/0x80
[   13.043109]  ? __pfx_kthread+0x10/0x10
[   13.043126]  ret_from_fork_asm+0x1a/0x30
[   13.043157]  </TASK>
[   13.043169] 
[   13.054033] The buggy address belongs to stack of task kunit_try_catch/272
[   13.054875] 
[   13.054977] The buggy address belongs to the physical page:
[   13.055257] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e7
[   13.055723] flags: 0x200000000000000(node=0|zone=2)
[   13.056051] raw: 0200000000000000 ffffea00040e79c8 ffffea00040e79c8 0000000000000000
[   13.056386] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.056740] page dumped because: kasan: bad access detected
[   13.057242] 
[   13.057648] Memory state around the buggy address:
[   13.057877]  ffff8881039e7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.058106]  ffff8881039e7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.058570] >ffff8881039e7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.059352]                                               ^
[   13.060077]  ffff8881039e7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.060817]  ffff8881039e7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.061491] ==================================================================