Hay
Date
June 19, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   33.260174] ==================================================================
[   33.260363] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   33.260514] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/264
[   33.260643] 
[   33.260735] CPU: 0 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT 
[   33.262748] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.262853] Hardware name: linux,dummy-virt (DT)
[   33.262967] Call trace:
[   33.263034]  show_stack+0x20/0x38 (C)
[   33.263242]  dump_stack_lvl+0x8c/0xd0
[   33.263557]  print_report+0x310/0x608
[   33.263693]  kasan_report+0xdc/0x128
[   33.263821]  __asan_report_load1_noabort+0x20/0x30
[   33.263950]  kasan_alloca_oob_right+0x2dc/0x340
[   33.264088]  kunit_try_run_case+0x170/0x3f0
[   33.264220]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.264500]  kthread+0x328/0x630
[   33.264618]  ret_from_fork+0x10/0x20
[   33.264746] 
[   33.264808] The buggy address belongs to stack of task kunit_try_catch/264
[   33.264954] 
[   33.265109] The buggy address belongs to the virtual mapping at
[   33.265109]  [ffff800080a10000, ffff800080a19000) created by:
[   33.265109]  kernel_clone+0x150/0x7a8
[   33.265475] 
[   33.265514] The buggy address belongs to the physical page:
[   33.265556] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107679
[   33.265649] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.265819] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   33.265965] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.266067] page dumped because: kasan: bad access detected
[   33.266139] 
[   33.266661] Memory state around the buggy address:
[   33.266782]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.266919]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.267041] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   33.267608]                                               ^
[   33.267764]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   33.268100]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   33.268382] ==================================================================

[   29.257497] ==================================================================
[   29.258033] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   29.258864] Read of size 1 at addr ffff888103a97c4a by task kunit_try_catch/282
[   29.259380] 
[   29.259628] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) 
[   29.259757] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.259804] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.259851] Call Trace:
[   29.259882]  <TASK>
[   29.259955]  dump_stack_lvl+0x73/0xb0
[   29.260267]  print_report+0xd1/0x650
[   29.260316]  ? __virt_addr_valid+0x1db/0x2d0
[   29.260380]  ? kasan_alloca_oob_right+0x329/0x390
[   29.260446]  ? kasan_addr_to_slab+0x11/0xa0
[   29.260491]  ? kasan_alloca_oob_right+0x329/0x390
[   29.260539]  kasan_report+0x141/0x180
[   29.260584]  ? kasan_alloca_oob_right+0x329/0x390
[   29.260655]  __asan_report_load1_noabort+0x18/0x20
[   29.260723]  kasan_alloca_oob_right+0x329/0x390
[   29.260765]  ? __pfx_sched_clock_cpu+0x10/0x10
[   29.260794]  ? finish_task_switch.isra.0+0x153/0x700
[   29.260820]  ? rwsem_down_read_slowpath+0x52e/0xb90
[   29.260848]  ? trace_hardirqs_on+0x37/0xe0
[   29.260876]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   29.260945]  ? __schedule+0x10cc/0x2b60
[   29.261180]  ? __pfx_read_tsc+0x10/0x10
[   29.261214]  ? ktime_get_ts64+0x86/0x230
[   29.261244]  kunit_try_run_case+0x1a5/0x480
[   29.261276]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.261300]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   29.261325]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   29.261350]  ? __kthread_parkme+0x82/0x180
[   29.261373]  ? preempt_count_sub+0x50/0x80
[   29.261399]  ? __pfx_kunit_try_run_case+0x10/0x10
[   29.261424]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.261448]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   29.261473]  kthread+0x337/0x6f0
[   29.261494]  ? trace_preempt_on+0x20/0xc0
[   29.261518]  ? __pfx_kthread+0x10/0x10
[   29.261541]  ? _raw_spin_unlock_irq+0x47/0x80
[   29.261564]  ? calculate_sigpending+0x7b/0xa0
[   29.261590]  ? __pfx_kthread+0x10/0x10
[   29.261613]  ret_from_fork+0x116/0x1d0
[   29.261634]  ? __pfx_kthread+0x10/0x10
[   29.261657]  ret_from_fork_asm+0x1a/0x30
[   29.261690]  </TASK>
[   29.261703] 
[   29.272581] The buggy address belongs to stack of task kunit_try_catch/282
[   29.273445] 
[   29.273652] The buggy address belongs to the physical page:
[   29.274213] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a97
[   29.274528] flags: 0x200000000000000(node=0|zone=2)
[   29.274796] raw: 0200000000000000 ffffea00040ea5c8 ffffea00040ea5c8 0000000000000000
[   29.275406] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   29.276191] page dumped because: kasan: bad access detected
[   29.276642] 
[   29.276806] Memory state around the buggy address:
[   29.277142]  ffff888103a97b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.277787]  ffff888103a97b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.278355] >ffff888103a97c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   29.278803]                                               ^
[   29.279188]  ffff888103a97c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   29.279766]  ffff888103a97d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   29.280035] ==================================================================