Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.075873] ==================================================================
[   20.075934] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   20.075991] Read of size 1 at addr ffff8000809d7b4a by task kunit_try_catch/255
[   20.076052] 
[   20.076084] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   20.076186] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.076232] Hardware name: linux,dummy-virt (DT)
[   20.076265] Call trace:
[   20.076288]  show_stack+0x20/0x38 (C)
[   20.076799]  dump_stack_lvl+0x8c/0xd0
[   20.076902]  print_report+0x310/0x5d0
[   20.077012]  kasan_report+0xdc/0x128
[   20.077065]  __asan_report_load1_noabort+0x20/0x30
[   20.077145]  kasan_alloca_oob_right+0x2dc/0x340
[   20.077273]  kunit_try_run_case+0x170/0x3f0
[   20.077403]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.077480]  kthread+0x328/0x630
[   20.077599]  ret_from_fork+0x10/0x20
[   20.077651] 
[   20.077697] The buggy address belongs to stack of task kunit_try_catch/255
[   20.077763] 
[   20.077783] The buggy address ffff8000809d7b4a belongs to a vmalloc virtual mapping
[   20.078007] The buggy address belongs to the physical page:
[   20.078080] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106627
[   20.078186] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.078296] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.078435] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.078504] page dumped because: kasan: bad access detected
[   20.078616] 
[   20.078655] Memory state around the buggy address:
[   20.078741]  ffff8000809d7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.078795]  ffff8000809d7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.079051] >ffff8000809d7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.079128]                                               ^
[   20.079229]  ffff8000809d7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.079301]  ffff8000809d7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.079531] ==================================================================

[   12.833222] ==================================================================
[   12.833618] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   12.834570] Read of size 1 at addr ffff888103a1fc4a by task kunit_try_catch/272
[   12.835539] 
[   12.835776] CPU: 1 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   12.835828] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.835840] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.835859] Call Trace:
[   12.835871]  <TASK>
[   12.835903]  dump_stack_lvl+0x73/0xb0
[   12.835927]  print_report+0xd1/0x610
[   12.835949]  ? __virt_addr_valid+0x1db/0x2d0
[   12.835970]  ? kasan_alloca_oob_right+0x329/0x390
[   12.835992]  ? kasan_addr_to_slab+0x11/0xa0
[   12.836013]  ? kasan_alloca_oob_right+0x329/0x390
[   12.836036]  kasan_report+0x141/0x180
[   12.836057]  ? kasan_alloca_oob_right+0x329/0x390
[   12.836084]  __asan_report_load1_noabort+0x18/0x20
[   12.836105]  kasan_alloca_oob_right+0x329/0x390
[   12.836129]  ? finish_task_switch.isra.0+0x153/0x700
[   12.836151]  ? ww_mutex_unlock+0xce/0x150
[   12.836171]  ? trace_hardirqs_on+0x37/0xe0
[   12.836195]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   12.836220]  ? __schedule+0x10cc/0x2b60
[   12.836243]  ? __pfx_read_tsc+0x10/0x10
[   12.836261]  ? ktime_get_ts64+0x86/0x230
[   12.836286]  kunit_try_run_case+0x1a5/0x480
[   12.836306]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.836324]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.836347]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.836370]  ? __kthread_parkme+0x82/0x180
[   12.836391]  ? preempt_count_sub+0x50/0x80
[   12.836415]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.836435]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.836499]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.836524]  kthread+0x337/0x6f0
[   12.836541]  ? trace_preempt_on+0x20/0xc0
[   12.836576]  ? __pfx_kthread+0x10/0x10
[   12.836594]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.836615]  ? calculate_sigpending+0x7b/0xa0
[   12.836636]  ? __pfx_kthread+0x10/0x10
[   12.836653]  ret_from_fork+0x41/0x80
[   12.836673]  ? __pfx_kthread+0x10/0x10
[   12.836700]  ret_from_fork_asm+0x1a/0x30
[   12.836732]  </TASK>
[   12.836742] 
[   12.847276] The buggy address belongs to stack of task kunit_try_catch/272
[   12.847569] 
[   12.847659] The buggy address belongs to the physical page:
[   12.848358] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a1f
[   12.848686] flags: 0x200000000000000(node=0|zone=2)
[   12.849277] raw: 0200000000000000 ffffea00040e87c8 ffffea00040e87c8 0000000000000000
[   12.849946] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.850444] page dumped because: kasan: bad access detected
[   12.851040] 
[   12.851134] Memory state around the buggy address:
[   12.851352]  ffff888103a1fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.851640]  ffff888103a1fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.852190] >ffff888103a1fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   12.852469]                                               ^
[   12.852701]  ffff888103a1fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   12.853554]  ffff888103a1fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.854218] ==================================================================