Hay
Date
June 2, 2025, 2:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.764621] ==================================================================
[   20.765396] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348
[   20.766122] Read of size 1 at addr ffff800080b47b4a by task kunit_try_catch/243
[   20.767623] 
[   20.767801] CPU: 0 UID: 0 PID: 243 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   20.767915] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.767952] Hardware name: linux,dummy-virt (DT)
[   20.767997] Call trace:
[   20.768029]  show_stack+0x20/0x38 (C)
[   20.768104]  dump_stack_lvl+0x8c/0xd0
[   20.768191]  print_report+0x310/0x608
[   20.768256]  kasan_report+0xdc/0x128
[   20.768311]  __asan_report_load1_noabort+0x20/0x30
[   20.768368]  kasan_alloca_oob_right+0x2e4/0x348
[   20.768427]  kunit_try_run_case+0x170/0x3f0
[   20.768487]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.768548]  kthread+0x318/0x620
[   20.768612]  ret_from_fork+0x10/0x20
[   20.768673] 
[   20.771129] The buggy address belongs to stack of task kunit_try_catch/243
[   20.771538] 
[   20.771664] The buggy address belongs to the virtual mapping at
[   20.771664]  [ffff800080b40000, ffff800080b49000) created by:
[   20.771664]  kernel_clone+0x150/0x7a8
[   20.772732] 
[   20.772854] The buggy address belongs to the physical page:
[   20.773042] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f44
[   20.773901] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.774286] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.774704] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.775077] page dumped because: kasan: bad access detected
[   20.776255] 
[   20.776433] Memory state around the buggy address:
[   20.776668]  ffff800080b47a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.776948]  ffff800080b47a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.777250] >ffff800080b47b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.777612]                                               ^
[   20.777924]  ffff800080b47b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.778686]  ffff800080b47c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.779442] ==================================================================

[   14.530736] ==================================================================
[   14.531207] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x32b/0x390
[   14.531522] Read of size 1 at addr ffff888102d27c4a by task kunit_try_catch/261
[   14.532100] 
[   14.532203] CPU: 0 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G    B            N 6.14.10-rc1 #1
[   14.532241] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.532252] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.532272] Call Trace:
[   14.532283]  <TASK>
[   14.532297]  dump_stack_lvl+0x73/0xb0
[   14.532323]  print_report+0xd1/0x650
[   14.532360]  ? __virt_addr_valid+0x1db/0x2d0
[   14.532384]  ? kasan_alloca_oob_right+0x32b/0x390
[   14.532421]  ? kasan_addr_to_slab+0x11/0xa0
[   14.532443]  ? kasan_alloca_oob_right+0x32b/0x390
[   14.532468]  kasan_report+0x140/0x180
[   14.532493]  ? kasan_alloca_oob_right+0x32b/0x390
[   14.532522]  __asan_report_load1_noabort+0x18/0x20
[   14.532548]  kasan_alloca_oob_right+0x32b/0x390
[   14.532573]  ? irqentry_exit+0x2a/0x60
[   14.532604]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   14.532633]  ? trace_hardirqs_on+0x37/0xe0
[   14.532661]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.532752]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   14.532793]  kunit_try_run_case+0x1a6/0x480
[   14.532820]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.532845]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   14.532880]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.532907]  ? __kthread_parkme+0x82/0x160
[   14.532942]  ? preempt_count_sub+0x50/0x80
[   14.532969]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.532994]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.533031]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.533060]  kthread+0x324/0x6e0
[   14.533084]  ? trace_preempt_on+0x20/0xc0
[   14.533109]  ? __pfx_kthread+0x10/0x10
[   14.533134]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.533159]  ? calculate_sigpending+0x7b/0xa0
[   14.533184]  ? __pfx_kthread+0x10/0x10
[   14.533209]  ret_from_fork+0x41/0x80
[   14.533231]  ? __pfx_kthread+0x10/0x10
[   14.533256]  ret_from_fork_asm+0x1a/0x30
[   14.533290]  </TASK>
[   14.533300] 
[   14.543976] The buggy address belongs to stack of task kunit_try_catch/261
[   14.544279] 
[   14.544366] The buggy address belongs to the physical page:
[   14.544954] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d27
[   14.545302] flags: 0x200000000000000(node=0|zone=2)
[   14.545530] raw: 0200000000000000 ffffea00040b49c8 ffffea00040b49c8 0000000000000000
[   14.546343] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.547318] page dumped because: kasan: bad access detected
[   14.547766] 
[   14.547862] Memory state around the buggy address:
[   14.548227]  ffff888102d27b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.548509]  ffff888102d27b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.549224] >ffff888102d27c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.550083]                                               ^
[   14.550458]  ffff888102d27c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.551021]  ffff888102d27d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.551502] ==================================================================