Hay
Date
July 12, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.224321] ==================================================================
[   22.224611] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   22.224765] Read of size 1 at addr ffff800080ad7b4a by task kunit_try_catch/254
[   22.224896] 
[   22.224984] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   22.225419] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.225499] Hardware name: linux,dummy-virt (DT)
[   22.225584] Call trace:
[   22.225661]  show_stack+0x20/0x38 (C)
[   22.225866]  dump_stack_lvl+0x8c/0xd0
[   22.226023]  print_report+0x310/0x608
[   22.226172]  kasan_report+0xdc/0x128
[   22.226297]  __asan_report_load1_noabort+0x20/0x30
[   22.226405]  kasan_alloca_oob_right+0x2dc/0x340
[   22.226510]  kunit_try_run_case+0x170/0x3f0
[   22.226633]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.226736]  kthread+0x328/0x630
[   22.227160]  ret_from_fork+0x10/0x20
[   22.227300] 
[   22.227360] The buggy address belongs to stack of task kunit_try_catch/254
[   22.227488] 
[   22.227566] The buggy address belongs to the virtual mapping at
[   22.227566]  [ffff800080ad0000, ffff800080ad9000) created by:
[   22.227566]  kernel_clone+0x150/0x7a8
[   22.227798] 
[   22.228055] The buggy address belongs to the physical page:
[   22.228275] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10592d
[   22.228481] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.228648] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   22.228895] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   22.229050] page dumped because: kasan: bad access detected
[   22.229189] 
[   22.229231] Memory state around the buggy address:
[   22.229313]  ffff800080ad7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.229519]  ffff800080ad7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.229635] >ffff800080ad7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   22.229733]                                               ^
[   22.230059]  ffff800080ad7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   22.230156]  ffff800080ad7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   22.230241] ==================================================================

[   14.497993] ==================================================================
[   14.498478] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.498799] Read of size 1 at addr ffff888103bb7c4a by task kunit_try_catch/271
[   14.499469] 
[   14.499563] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   14.499610] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.499621] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.499643] Call Trace:
[   14.499668]  <TASK>
[   14.499683]  dump_stack_lvl+0x73/0xb0
[   14.499713]  print_report+0xd1/0x650
[   14.499736]  ? __virt_addr_valid+0x1db/0x2d0
[   14.499773]  ? kasan_alloca_oob_right+0x329/0x390
[   14.499795]  ? kasan_addr_to_slab+0x11/0xa0
[   14.499816]  ? kasan_alloca_oob_right+0x329/0x390
[   14.499840]  kasan_report+0x141/0x180
[   14.499861]  ? kasan_alloca_oob_right+0x329/0x390
[   14.499889]  __asan_report_load1_noabort+0x18/0x20
[   14.499915]  kasan_alloca_oob_right+0x329/0x390
[   14.499937]  ? __kasan_check_write+0x18/0x20
[   14.499957]  ? __pfx_sched_clock_cpu+0x10/0x10
[   14.499980]  ? finish_task_switch.isra.0+0x153/0x700
[   14.500003]  ? __schedule+0x202e/0x2b60
[   14.500024]  ? trace_hardirqs_on+0x37/0xe0
[   14.500050]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.500077]  ? __schedule+0x10cc/0x2b60
[   14.500098]  ? __pfx_read_tsc+0x10/0x10
[   14.500118]  ? ktime_get_ts64+0x86/0x230
[   14.500141]  kunit_try_run_case+0x1a5/0x480
[   14.500165]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.500188]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.500212]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.500236]  ? __kthread_parkme+0x82/0x180
[   14.500257]  ? preempt_count_sub+0x50/0x80
[   14.500280]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.500305]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.500330]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.500355]  kthread+0x337/0x6f0
[   14.500374]  ? trace_preempt_on+0x20/0xc0
[   14.500396]  ? __pfx_kthread+0x10/0x10
[   14.500417]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.500438]  ? calculate_sigpending+0x7b/0xa0
[   14.500463]  ? __pfx_kthread+0x10/0x10
[   14.500493]  ret_from_fork+0x116/0x1d0
[   14.500511]  ? __pfx_kthread+0x10/0x10
[   14.500541]  ret_from_fork_asm+0x1a/0x30
[   14.500573]  </TASK>
[   14.500590] 
[   14.509270] The buggy address belongs to stack of task kunit_try_catch/271
[   14.509551] 
[   14.509774] The buggy address belongs to the physical page:
[   14.510030] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103bb7
[   14.510349] flags: 0x200000000000000(node=0|zone=2)
[   14.510773] raw: 0200000000000000 ffffea00040eedc8 ffffea00040eedc8 0000000000000000
[   14.511124] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.511471] page dumped because: kasan: bad access detected
[   14.511840] 
[   14.511955] Memory state around the buggy address:
[   14.512183]  ffff888103bb7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.512489]  ffff888103bb7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.513030] >ffff888103bb7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.513313]                                               ^
[   14.513527]  ffff888103bb7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.514015]  ffff888103bb7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.514377] ==================================================================