Hay
Date
May 23, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   30.877992] ==================================================================
[   30.878204] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   30.878398] Read of size 1 at addr ffff800080ad7b4a by task kunit_try_catch/255
[   30.878560] 
[   30.878661] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT 
[   30.878919] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.879009] Hardware name: linux,dummy-virt (DT)
[   30.879112] Call trace:
[   30.879187]  show_stack+0x20/0x38 (C)
[   30.879344]  dump_stack_lvl+0x8c/0xd0
[   30.880177]  print_report+0x310/0x608
[   30.880504]  kasan_report+0xdc/0x128
[   30.880869]  __asan_report_load1_noabort+0x20/0x30
[   30.881319]  kasan_alloca_oob_right+0x2dc/0x340
[   30.881746]  kunit_try_run_case+0x170/0x3f0
[   30.882189]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.882707]  kthread+0x328/0x630
[   30.883080]  ret_from_fork+0x10/0x20
[   30.883346] 
[   30.883424] The buggy address belongs to stack of task kunit_try_catch/255
[   30.884125] 
[   30.884412] The buggy address belongs to the virtual mapping at
[   30.884412]  [ffff800080ad0000, ffff800080ad9000) created by:
[   30.884412]  kernel_clone+0x150/0x7a8
[   30.884802] 
[   30.884861] The buggy address belongs to the physical page:
[   30.884944] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107790
[   30.885514] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.886683] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   30.887353] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   30.887617] page dumped because: kasan: bad access detected
[   30.887722] 
[   30.887788] Memory state around the buggy address:
[   30.887891]  ffff800080ad7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.888044]  ffff800080ad7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.888186] >ffff800080ad7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   30.888312]                                               ^
[   30.888430]  ffff800080ad7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   30.889697]  ffff800080ad7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   30.890039] ==================================================================

[   14.460472] ==================================================================
[   14.460910] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   14.461274] Read of size 1 at addr ffff888103a0fc4a by task kunit_try_catch/272
[   14.461612] 
[   14.461727] CPU: 1 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7 #1 PREEMPT(voluntary) 
[   14.462008] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.462024] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.462046] Call Trace:
[   14.462058]  <TASK>
[   14.462075]  dump_stack_lvl+0x73/0xb0
[   14.462105]  print_report+0xd1/0x650
[   14.462128]  ? __virt_addr_valid+0x1db/0x2d0
[   14.462149]  ? kasan_alloca_oob_right+0x329/0x390
[   14.462172]  ? kasan_addr_to_slab+0x11/0xa0
[   14.462193]  ? kasan_alloca_oob_right+0x329/0x390
[   14.462217]  kasan_report+0x141/0x180
[   14.462239]  ? kasan_alloca_oob_right+0x329/0x390
[   14.462267]  __asan_report_load1_noabort+0x18/0x20
[   14.462288]  kasan_alloca_oob_right+0x329/0x390
[   14.462327]  ? finish_task_switch.isra.0+0x153/0x700
[   14.462352]  ? rt_mutex_adjust_prio_chain+0x19ae/0x20e0
[   14.462374]  ? trace_hardirqs_on+0x37/0xe0
[   14.462399]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.462425]  ? __schedule+0x10cc/0x2b30
[   14.462460]  ? __pfx_read_tsc+0x10/0x10
[   14.462479]  ? ktime_get_ts64+0x86/0x230
[   14.462504]  kunit_try_run_case+0x1a5/0x480
[   14.462529]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.462551]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   14.462573]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.462597]  ? __kthread_parkme+0x82/0x180
[   14.462618]  ? preempt_count_sub+0x50/0x80
[   14.462644]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.462667]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.462697]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.462720]  kthread+0x337/0x6f0
[   14.462736]  ? trace_preempt_on+0x20/0xc0
[   14.462760]  ? __pfx_kthread+0x10/0x10
[   14.462778]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.462799]  ? calculate_sigpending+0x7b/0xa0
[   14.462819]  ? __pfx_kthread+0x10/0x10
[   14.462838]  ret_from_fork+0x41/0x80
[   14.462859]  ? __pfx_kthread+0x10/0x10
[   14.462877]  ret_from_fork_asm+0x1a/0x30
[   14.462964]  </TASK>
[   14.462976] 
[   14.471007] The buggy address belongs to stack of task kunit_try_catch/272
[   14.471409] 
[   14.471592] The buggy address belongs to the physical page:
[   14.471780] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a0f
[   14.472352] flags: 0x200000000000000(node=0|zone=2)
[   14.472600] raw: 0200000000000000 ffffea00040e83c8 ffffea00040e83c8 0000000000000000
[   14.472833] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.473180] page dumped because: kasan: bad access detected
[   14.473425] 
[   14.473496] Memory state around the buggy address:
[   14.473652]  ffff888103a0fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.474050]  ffff888103a0fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.474376] >ffff888103a0fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.474956]                                               ^
[   14.475136]  ffff888103a0fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.475390]  ffff888103a0fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.475710] ==================================================================