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

Environment
qemu-arm64
qemu-x86_64

[   20.415826] ==================================================================
[   20.415930] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   20.415989] Read of size 1 at addr ffff800080a07b4a by task kunit_try_catch/253
[   20.416042] 
[   20.416300] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   20.416474] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.416686] Hardware name: linux,dummy-virt (DT)
[   20.416895] Call trace:
[   20.417033]  show_stack+0x20/0x38 (C)
[   20.417175]  dump_stack_lvl+0x8c/0xd0
[   20.417254]  print_report+0x310/0x608
[   20.417304]  kasan_report+0xdc/0x128
[   20.417351]  __asan_report_load1_noabort+0x20/0x30
[   20.417584]  kasan_alloca_oob_right+0x2dc/0x340
[   20.417673]  kunit_try_run_case+0x170/0x3f0
[   20.418073]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.418163]  kthread+0x328/0x630
[   20.418207]  ret_from_fork+0x10/0x20
[   20.418259] 
[   20.418314] The buggy address belongs to stack of task kunit_try_catch/253
[   20.418486] 
[   20.418572] The buggy address belongs to the virtual mapping at
[   20.418572]  [ffff800080a00000, ffff800080a09000) created by:
[   20.418572]  kernel_clone+0x150/0x7a8
[   20.418652] 
[   20.418740] The buggy address belongs to the physical page:
[   20.418811] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107922
[   20.418993] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.419125] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.419452] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.419500] page dumped because: kasan: bad access detected
[   20.419535] 
[   20.419555] Memory state around the buggy address:
[   20.419729]  ffff800080a07a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.419783]  ffff800080a07a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.419828] >ffff800080a07b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.419868]                                               ^
[   20.420287]  ffff800080a07b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.420405]  ffff800080a07c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.420447] ==================================================================

[   15.644607] ==================================================================
[   15.645185] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   15.646261] Read of size 1 at addr ffff888103a5fc4a by task kunit_try_catch/271
[   15.647033] 
[   15.647274] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   15.647328] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.647345] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.647372] Call Trace:
[   15.647388]  <TASK>
[   15.647409]  dump_stack_lvl+0x73/0xb0
[   15.647447]  print_report+0xd1/0x650
[   15.647474]  ? __virt_addr_valid+0x1db/0x2d0
[   15.647500]  ? kasan_alloca_oob_right+0x329/0x390
[   15.647527]  ? kasan_addr_to_slab+0x11/0xa0
[   15.647551]  ? kasan_alloca_oob_right+0x329/0x390
[   15.647577]  kasan_report+0x141/0x180
[   15.647601]  ? kasan_alloca_oob_right+0x329/0x390
[   15.647633]  __asan_report_load1_noabort+0x18/0x20
[   15.647660]  kasan_alloca_oob_right+0x329/0x390
[   15.647683]  ? pick_eevdf+0x3c9/0x590
[   15.647710]  ? __pfx_sched_clock_cpu+0x10/0x10
[   15.647734]  ? finish_task_switch.isra.0+0x153/0x700
[   15.647783]  ? ww_mutex_unlock+0x6e/0x150
[   15.647822]  ? trace_hardirqs_on+0x37/0xe0
[   15.647851]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   15.647881]  ? __schedule+0x10cc/0x2b60
[   15.647904]  ? __pfx_read_tsc+0x10/0x10
[   15.647928]  ? ktime_get_ts64+0x86/0x230
[   15.647955]  kunit_try_run_case+0x1a5/0x480
[   15.647984]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.648008]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.648035]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.648063]  ? __kthread_parkme+0x82/0x180
[   15.648088]  ? preempt_count_sub+0x50/0x80
[   15.648114]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.648143]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.648168]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.648195]  kthread+0x337/0x6f0
[   15.648218]  ? trace_preempt_on+0x20/0xc0
[   15.648242]  ? __pfx_kthread+0x10/0x10
[   15.648266]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.648290]  ? calculate_sigpending+0x7b/0xa0
[   15.648317]  ? __pfx_kthread+0x10/0x10
[   15.648341]  ret_from_fork+0x116/0x1d0
[   15.648363]  ? __pfx_kthread+0x10/0x10
[   15.648386]  ret_from_fork_asm+0x1a/0x30
[   15.648423]  </TASK>
[   15.648438] 
[   15.664029] The buggy address belongs to stack of task kunit_try_catch/271
[   15.664936] 
[   15.665186] The buggy address belongs to the physical page:
[   15.665579] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a5f
[   15.665985] flags: 0x200000000000000(node=0|zone=2)
[   15.666278] raw: 0200000000000000 ffffea00040e97c8 ffffea00040e97c8 0000000000000000
[   15.667038] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   15.667598] page dumped because: kasan: bad access detected
[   15.667815] 
[   15.667896] Memory state around the buggy address:
[   15.668079]  ffff888103a5fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.668331]  ffff888103a5fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.668769] >ffff888103a5fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   15.669077]                                               ^
[   15.669652]  ffff888103a5fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   15.669956]  ffff888103a5fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   15.670601] ==================================================================