Hay
Date
July 10, 2025, 6:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.098743] ==================================================================
[   19.098942] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   19.099156] Read of size 1 at addr ffff800080947b4a by task kunit_try_catch/253
[   19.099396] 
[   19.099465] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   19.099768] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.099889] Hardware name: linux,dummy-virt (DT)
[   19.100080] Call trace:
[   19.100114]  show_stack+0x20/0x38 (C)
[   19.100369]  dump_stack_lvl+0x8c/0xd0
[   19.100571]  print_report+0x310/0x608
[   19.100650]  kasan_report+0xdc/0x128
[   19.100702]  __asan_report_load1_noabort+0x20/0x30
[   19.100760]  kasan_alloca_oob_right+0x2dc/0x340
[   19.100830]  kunit_try_run_case+0x170/0x3f0
[   19.100893]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.100959]  kthread+0x328/0x630
[   19.101013]  ret_from_fork+0x10/0x20
[   19.101084] 
[   19.101129] The buggy address belongs to stack of task kunit_try_catch/253
[   19.101195] 
[   19.101223] The buggy address belongs to the virtual mapping at
[   19.101223]  [ffff800080940000, ffff800080949000) created by:
[   19.101223]  kernel_clone+0x150/0x7a8
[   19.101320] 
[   19.101513] The buggy address belongs to the physical page:
[   19.101674] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107004
[   19.101955] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.102070] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.102141] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.102502] page dumped because: kasan: bad access detected
[   19.102612] 
[   19.102634] Memory state around the buggy address:
[   19.102939]  ffff800080947a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.103104]  ffff800080947a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.103265] >ffff800080947b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   19.103467]                                               ^
[   19.103553]  ffff800080947b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.103600]  ffff800080947c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.103802] ==================================================================

[   14.338873] ==================================================================
[   14.339422] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.339737] Read of size 1 at addr ffff888103b07c4a by task kunit_try_catch/270
[   14.340329] 
[   14.340424] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.340467] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.340478] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.340498] Call Trace:
[   14.340511]  <TASK>
[   14.340524]  dump_stack_lvl+0x73/0xb0
[   14.340554]  print_report+0xd1/0x650
[   14.340575]  ? __virt_addr_valid+0x1db/0x2d0
[   14.340599]  ? kasan_alloca_oob_right+0x329/0x390
[   14.340621]  ? kasan_addr_to_slab+0x11/0xa0
[   14.340641]  ? kasan_alloca_oob_right+0x329/0x390
[   14.340664]  kasan_report+0x141/0x180
[   14.340686]  ? kasan_alloca_oob_right+0x329/0x390
[   14.340713]  __asan_report_load1_noabort+0x18/0x20
[   14.340739]  kasan_alloca_oob_right+0x329/0x390
[   14.340764]  ? finish_task_switch.isra.0+0x153/0x700
[   14.340788]  ? preempt_schedule_common+0xbe/0x110
[   14.340812]  ? trace_hardirqs_on+0x37/0xe0
[   14.340856]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.340883]  ? __schedule+0x10cc/0x2b60
[   14.340905]  ? __pfx_read_tsc+0x10/0x10
[   14.340927]  ? ktime_get_ts64+0x86/0x230
[   14.341094]  kunit_try_run_case+0x1a5/0x480
[   14.341120]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.341145]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.341169]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.341193]  ? __kthread_parkme+0x82/0x180
[   14.341213]  ? preempt_count_sub+0x50/0x80
[   14.341236]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.341262]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.341286]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.341312]  kthread+0x337/0x6f0
[   14.341331]  ? trace_preempt_on+0x20/0xc0
[   14.341353]  ? __pfx_kthread+0x10/0x10
[   14.341373]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.341395]  ? calculate_sigpending+0x7b/0xa0
[   14.341420]  ? __pfx_kthread+0x10/0x10
[   14.341441]  ret_from_fork+0x116/0x1d0
[   14.341460]  ? __pfx_kthread+0x10/0x10
[   14.341481]  ret_from_fork_asm+0x1a/0x30
[   14.341511]  </TASK>
[   14.341521] 
[   14.350311] The buggy address belongs to stack of task kunit_try_catch/270
[   14.350870] 
[   14.351193] The buggy address belongs to the physical page:
[   14.351732] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b07
[   14.352306] flags: 0x200000000000000(node=0|zone=2)
[   14.352891] raw: 0200000000000000 ffffea00040ec1c8 ffffea00040ec1c8 0000000000000000
[   14.353328] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.353635] page dumped because: kasan: bad access detected
[   14.353868] 
[   14.354226] Memory state around the buggy address:
[   14.354501]  ffff888103b07b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.355001]  ffff888103b07b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.355595] >ffff888103b07c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.355941]                                               ^
[   14.356321]  ffff888103b07c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.356618]  ffff888103b07d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.356904] ==================================================================