Hay
Date
July 22, 2025, 2:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.389236] ==================================================================
[   19.389439] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   19.389767] Read of size 1 at addr ffff800080a17b5f by task kunit_try_catch/253
[   19.389848] 
[   19.390040] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT 
[   19.390307] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.390345] Hardware name: linux,dummy-virt (DT)
[   19.390381] Call trace:
[   19.390419]  show_stack+0x20/0x38 (C)
[   19.390528]  dump_stack_lvl+0x8c/0xd0
[   19.390593]  print_report+0x310/0x5d0
[   19.391069]  kasan_report+0xdc/0x128
[   19.391123]  __asan_report_load1_noabort+0x20/0x30
[   19.391205]  kasan_alloca_oob_left+0x2b8/0x310
[   19.391257]  kunit_try_run_case+0x170/0x3f0
[   19.391336]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.391396]  kthread+0x328/0x630
[   19.391448]  ret_from_fork+0x10/0x20
[   19.391501] 
[   19.391525] The buggy address belongs to stack of task kunit_try_catch/253
[   19.391595] 
[   19.391617] The buggy address ffff800080a17b5f belongs to a vmalloc virtual mapping
[   19.391663] The buggy address belongs to the physical page:
[   19.391700] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078eb
[   19.391757] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.391826] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   19.391879] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   19.391922] page dumped because: kasan: bad access detected
[   19.391956] 
[   19.391978] Memory state around the buggy address:
[   19.392013]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.392058]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.392103] >ffff800080a17b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   19.392144]                                                     ^
[   19.392184]  ffff800080a17b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   19.392229]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   19.392271] ==================================================================

[   12.989049] ==================================================================
[   12.990355] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380
[   12.990856] Read of size 1 at addr ffff888103db7c3f by task kunit_try_catch/271
[   12.991835] 
[   12.991932] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.15.8-rc1 #1 PREEMPT(voluntary) 
[   12.991981] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.991993] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.992015] Call Trace:
[   12.992028]  <TASK>
[   12.992044]  dump_stack_lvl+0x73/0xb0
[   12.992072]  print_report+0xd1/0x610
[   12.992095]  ? __virt_addr_valid+0x1db/0x2d0
[   12.992116]  ? kasan_alloca_oob_left+0x320/0x380
[   12.992138]  ? kasan_addr_to_slab+0x11/0xa0
[   12.992159]  ? kasan_alloca_oob_left+0x320/0x380
[   12.992181]  kasan_report+0x141/0x180
[   12.992203]  ? kasan_alloca_oob_left+0x320/0x380
[   12.992244]  __asan_report_load1_noabort+0x18/0x20
[   12.992264]  kasan_alloca_oob_left+0x320/0x380
[   12.992288]  ? finish_task_switch.isra.0+0x153/0x700
[   12.992313]  ? out_of_line_wait_on_bit_timeout+0xde/0x190
[   12.992336]  ? trace_hardirqs_on+0x37/0xe0
[   12.992373]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   12.992398]  ? __schedule+0x10c6/0x2b60
[   12.992422]  ? __pfx_read_tsc+0x10/0x10
[   12.992443]  ? ktime_get_ts64+0x86/0x230
[   12.992692]  kunit_try_run_case+0x1a5/0x480
[   12.992722]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.992742]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.992763]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.992787]  ? __kthread_parkme+0x82/0x180
[   12.992809]  ? preempt_count_sub+0x50/0x80
[   12.992833]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.992853]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.992877]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.992900]  kthread+0x337/0x6f0
[   12.992921]  ? trace_preempt_on+0x20/0xc0
[   12.992944]  ? __pfx_kthread+0x10/0x10
[   12.992962]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.992983]  ? calculate_sigpending+0x7b/0xa0
[   12.993005]  ? __pfx_kthread+0x10/0x10
[   12.993023]  ret_from_fork+0x41/0x80
[   12.993044]  ? __pfx_kthread+0x10/0x10
[   12.993062]  ret_from_fork_asm+0x1a/0x30
[   12.993093]  </TASK>
[   12.993105] 
[   13.008283] The buggy address belongs to stack of task kunit_try_catch/271
[   13.008660] 
[   13.008938] The buggy address belongs to the physical page:
[   13.009530] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103db7
[   13.010265] flags: 0x200000000000000(node=0|zone=2)
[   13.010634] raw: 0200000000000000 ffffea00040f6dc8 ffffea00040f6dc8 0000000000000000
[   13.011255] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   13.011519] page dumped because: kasan: bad access detected
[   13.011719] 
[   13.011792] Memory state around the buggy address:
[   13.012244]  ffff888103db7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.012586]  ffff888103db7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.012868] >ffff888103db7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   13.013353]                                         ^
[   13.013612]  ffff888103db7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   13.014037]  ffff888103db7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   13.014381] ==================================================================