Hay
Date
July 17, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.897378] ==================================================================
[   18.897444] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   18.897500] Read of size 1 at addr ffff800080a97b4a by task kunit_try_catch/253
[   18.897551] 
[   18.897583] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   18.897664] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.897693] Hardware name: linux,dummy-virt (DT)
[   18.897965] Call trace:
[   18.897997]  show_stack+0x20/0x38 (C)
[   18.898050]  dump_stack_lvl+0x8c/0xd0
[   18.898159]  print_report+0x310/0x5d0
[   18.898216]  kasan_report+0xdc/0x128
[   18.898281]  __asan_report_load1_noabort+0x20/0x30
[   18.898393]  kasan_alloca_oob_right+0x2dc/0x340
[   18.898473]  kunit_try_run_case+0x170/0x3f0
[   18.898525]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.898620]  kthread+0x328/0x630
[   18.898665]  ret_from_fork+0x10/0x20
[   18.898714] 
[   18.898737] The buggy address belongs to stack of task kunit_try_catch/253
[   18.898791] 
[   18.898811] The buggy address ffff800080a97b4a belongs to a vmalloc virtual mapping
[   18.898853] The buggy address belongs to the physical page:
[   18.898898] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d2
[   18.898950] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.899010] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   18.899061] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   18.899103] page dumped because: kasan: bad access detected
[   18.899134] 
[   18.899155] Memory state around the buggy address:
[   18.899187]  ffff800080a97a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.899239]  ffff800080a97a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.899282] >ffff800080a97b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   18.899321]                                               ^
[   18.899358]  ffff800080a97b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   18.899401]  ffff800080a97c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   18.899441] ==================================================================

[   14.189445] ==================================================================
[   14.190256] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.190521] Read of size 1 at addr ffff888103a67c4a by task kunit_try_catch/270
[   14.190745] 
[   14.190837] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   14.190888] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.190899] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.190923] Call Trace:
[   14.190936]  <TASK>
[   14.190954]  dump_stack_lvl+0x73/0xb0
[   14.190982]  print_report+0xd1/0x610
[   14.191004]  ? __virt_addr_valid+0x1db/0x2d0
[   14.191027]  ? kasan_alloca_oob_right+0x329/0x390
[   14.191675]  ? kasan_addr_to_slab+0x11/0xa0
[   14.191723]  ? kasan_alloca_oob_right+0x329/0x390
[   14.191750]  kasan_report+0x141/0x180
[   14.191776]  ? kasan_alloca_oob_right+0x329/0x390
[   14.191806]  __asan_report_load1_noabort+0x18/0x20
[   14.191883]  kasan_alloca_oob_right+0x329/0x390
[   14.191907]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.191931]  ? finish_task_switch.isra.0+0x153/0x700
[   14.191954]  ? __schedule+0x100e/0x2b60
[   14.191978]  ? trace_hardirqs_on+0x37/0xe0
[   14.192005]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.192031]  ? __schedule+0x10cc/0x2b60
[   14.192117]  ? __pfx_read_tsc+0x10/0x10
[   14.192139]  ? ktime_get_ts64+0x86/0x230
[   14.192164]  kunit_try_run_case+0x1a5/0x480
[   14.192191]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.192212]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.192237]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.192260]  ? __kthread_parkme+0x82/0x180
[   14.192282]  ? preempt_count_sub+0x50/0x80
[   14.192305]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.192329]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.192353]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.192377]  kthread+0x337/0x6f0
[   14.192396]  ? trace_preempt_on+0x20/0xc0
[   14.192417]  ? __pfx_kthread+0x10/0x10
[   14.192437]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.192457]  ? calculate_sigpending+0x7b/0xa0
[   14.192482]  ? __pfx_kthread+0x10/0x10
[   14.192502]  ret_from_fork+0x116/0x1d0
[   14.192520]  ? __pfx_kthread+0x10/0x10
[   14.192539]  ret_from_fork_asm+0x1a/0x30
[   14.192572]  </TASK>
[   14.192583] 
[   14.201231] The buggy address belongs to stack of task kunit_try_catch/270
[   14.201568] 
[   14.201685] The buggy address belongs to the physical page:
[   14.202013] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a67
[   14.202279] flags: 0x200000000000000(node=0|zone=2)
[   14.202536] raw: 0200000000000000 ffffea00040e99c8 ffffea00040e99c8 0000000000000000
[   14.202875] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.203171] page dumped because: kasan: bad access detected
[   14.203344] 
[   14.203411] Memory state around the buggy address:
[   14.203719]  ffff888103a67b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.204327]  ffff888103a67b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.204607] >ffff888103a67c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.204930]                                               ^
[   14.205279]  ffff888103a67c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.205531]  ffff888103a67d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.205966] ==================================================================