Hay
Date
June 16, 2025, 7:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.179242] ==================================================================
[   22.179330] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   22.179415] Read of size 1 at addr ffff800080a47b4a by task kunit_try_catch/262
[   22.179482] 
[   22.179538] CPU: 0 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT 
[   22.179651] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.179687] Hardware name: linux,dummy-virt (DT)
[   22.179732] Call trace:
[   22.179767]  show_stack+0x20/0x38 (C)
[   22.179833]  dump_stack_lvl+0x8c/0xd0
[   22.179947]  print_report+0x310/0x608
[   22.180006]  kasan_report+0xdc/0x128
[   22.180062]  __asan_report_load1_noabort+0x20/0x30
[   22.180120]  kasan_alloca_oob_right+0x2dc/0x340
[   22.180181]  kunit_try_run_case+0x170/0x3f0
[   22.180240]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.180302]  kthread+0x328/0x630
[   22.180351]  ret_from_fork+0x10/0x20
[   22.180413] 
[   22.180445] The buggy address belongs to stack of task kunit_try_catch/262
[   22.180508] 
[   22.180541] The buggy address belongs to the virtual mapping at
[   22.180541]  [ffff800080a40000, ffff800080a49000) created by:
[   22.180541]  kernel_clone+0x150/0x7a8
[   22.180631] 
[   22.180660] The buggy address belongs to the physical page:
[   22.180702] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063f4
[   22.180766] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.182179] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.182526] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.182619] page dumped because: kasan: bad access detected
[   22.182780] 
[   22.183131] Memory state around the buggy address:
[   22.183206]  ffff800080a47a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.183268]  ffff800080a47a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.183347] >ffff800080a47b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   22.183397]                                               ^
[   22.183447]  ffff800080a47b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   22.183742]  ffff800080a47c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   22.183806] ==================================================================

[   13.350355] ==================================================================
[   13.350992] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   13.351321] Read of size 1 at addr ffff8881039e7c4a by task kunit_try_catch/278
[   13.351949] 
[   13.352174] CPU: 0 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) 
[   13.352229] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.352241] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.352263] Call Trace:
[   13.352373]  <TASK>
[   13.352395]  dump_stack_lvl+0x73/0xb0
[   13.352430]  print_report+0xd1/0x650
[   13.352474]  ? __virt_addr_valid+0x1db/0x2d0
[   13.352500]  ? kasan_alloca_oob_right+0x329/0x390
[   13.352562]  ? kasan_addr_to_slab+0x11/0xa0
[   13.352584]  ? kasan_alloca_oob_right+0x329/0x390
[   13.352606]  kasan_report+0x141/0x180
[   13.352628]  ? kasan_alloca_oob_right+0x329/0x390
[   13.352655]  __asan_report_load1_noabort+0x18/0x20
[   13.352678]  kasan_alloca_oob_right+0x329/0x390
[   13.352698]  ? __kasan_check_write+0x18/0x20
[   13.352718]  ? __pfx_sched_clock_cpu+0x10/0x10
[   13.352741]  ? finish_task_switch.isra.0+0x153/0x700
[   13.352764]  ? rwsem_down_read_slowpath+0x58e/0xb90
[   13.352789]  ? trace_hardirqs_on+0x37/0xe0
[   13.352815]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   13.352839]  ? __schedule+0x10cc/0x2b60
[   13.352860]  ? __pfx_read_tsc+0x10/0x10
[   13.352882]  ? ktime_get_ts64+0x86/0x230
[   13.352907]  kunit_try_run_case+0x1a5/0x480
[   13.352944]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.352966]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.352987]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.353009]  ? __kthread_parkme+0x82/0x180
[   13.353031]  ? preempt_count_sub+0x50/0x80
[   13.353053]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.353076]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.353098]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.353121]  kthread+0x337/0x6f0
[   13.353139]  ? trace_preempt_on+0x20/0xc0
[   13.353161]  ? __pfx_kthread+0x10/0x10
[   13.353181]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.353201]  ? calculate_sigpending+0x7b/0xa0
[   13.353225]  ? __pfx_kthread+0x10/0x10
[   13.353245]  ret_from_fork+0x116/0x1d0
[   13.353264]  ? __pfx_kthread+0x10/0x10
[   13.353283]  ret_from_fork_asm+0x1a/0x30
[   13.353316]  </TASK>
[   13.353327] 
[   13.364858] The buggy address belongs to stack of task kunit_try_catch/278
[   13.365767] 
[   13.365996] The buggy address belongs to the physical page:
[   13.366452] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e7
[   13.366969] flags: 0x200000000000000(node=0|zone=2)
[   13.367209] raw: 0200000000000000 ffffea00040e79c8 ffffea00040e79c8 0000000000000000
[   13.367974] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.368448] page dumped because: kasan: bad access detected
[   13.368819] 
[   13.368910] Memory state around the buggy address:
[   13.369120]  ffff8881039e7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.369899]  ffff8881039e7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.370297] >ffff8881039e7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.371053]                                               ^
[   13.371361]  ffff8881039e7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.371704]  ffff8881039e7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.371994] ==================================================================