Hay
Date
May 12, 2025, 6:12 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.683785] ==================================================================
[   20.684360] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310
[   20.684802] Read of size 1 at addr ffff800080bc7b5f by task kunit_try_catch/240
[   20.685206] 
[   20.685407] CPU: 0 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   20.685510] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.685542] Hardware name: linux,dummy-virt (DT)
[   20.685583] Call trace:
[   20.685613]  show_stack+0x20/0x38 (C)
[   20.685674]  dump_stack_lvl+0x8c/0xd0
[   20.685734]  print_report+0x310/0x608
[   20.685806]  kasan_report+0xdc/0x128
[   20.685859]  __asan_report_load1_noabort+0x20/0x30
[   20.685916]  kasan_alloca_oob_left+0x2b8/0x310
[   20.685971]  kunit_try_run_case+0x170/0x3f0
[   20.686026]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.686110]  kthread+0x318/0x620
[   20.686169]  ret_from_fork+0x10/0x20
[   20.686230] 
[   20.690733] The buggy address belongs to stack of task kunit_try_catch/240
[   20.691721] 
[   20.691955] The buggy address belongs to the virtual mapping at
[   20.691955]  [ffff800080bc0000, ffff800080bc9000) created by:
[   20.691955]  kernel_clone+0x150/0x7a8
[   20.692606] 
[   20.692789] The buggy address belongs to the physical page:
[   20.693052] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106653
[   20.693453] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.693835] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.694194] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.695232] page dumped because: kasan: bad access detected
[   20.695565] 
[   20.695676] Memory state around the buggy address:
[   20.695938]  ffff800080bc7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.696338]  ffff800080bc7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.696678] >ffff800080bc7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb
[   20.697083]                                                     ^
[   20.697437]  ffff800080bc7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.697769]  ffff800080bc7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.698207] ==================================================================

[   14.229258] ==================================================================
[   14.229709] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x322/0x380
[   14.230164] Read of size 1 at addr ffff888102be7c3f by task kunit_try_catch/259
[   14.230508] 
[   14.230615] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G    B            N 6.14.7-rc1 #1
[   14.230663] Tainted: [B]=BAD_PAGE, [N]=TEST
[   14.230687] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   14.230711] Call Trace:
[   14.230725]  <TASK>
[   14.230746]  dump_stack_lvl+0x73/0xb0
[   14.230775]  print_report+0xd1/0x650
[   14.230808]  ? __virt_addr_valid+0x1db/0x2d0
[   14.230832]  ? kasan_alloca_oob_left+0x322/0x380
[   14.230869]  ? kasan_addr_to_slab+0x11/0xa0
[   14.230889]  ? kasan_alloca_oob_left+0x322/0x380
[   14.230910]  kasan_report+0x140/0x180
[   14.230933]  ? kasan_alloca_oob_left+0x322/0x380
[   14.230960]  __asan_report_load1_noabort+0x18/0x20
[   14.230992]  kasan_alloca_oob_left+0x322/0x380
[   14.231076]  ? __schedule+0xce8/0x2840
[   14.231101]  ? finish_task_switch.isra.0+0x153/0x700
[   14.231129]  ? finish_task_switch.isra.0+0x156/0x700
[   14.231154]  ? __pfx_kasan_alloca_oob_left+0x10/0x10
[   14.231179]  ? __schedule+0xce8/0x2840
[   14.231203]  ? __pfx_read_tsc+0x10/0x10
[   14.231235]  ? ktime_get_ts64+0x86/0x230
[   14.231261]  kunit_try_run_case+0x1a6/0x480
[   14.231285]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.231317]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   14.231339]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   14.231364]  ? __kthread_parkme+0x82/0x160
[   14.231386]  ? preempt_count_sub+0x50/0x80
[   14.231419]  ? __pfx_kunit_try_run_case+0x10/0x10
[   14.231441]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   14.231467]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   14.231502]  kthread+0x324/0x6e0
[   14.231524]  ? trace_preempt_on+0x20/0xc0
[   14.231548]  ? __pfx_kthread+0x10/0x10
[   14.231570]  ? _raw_spin_unlock_irq+0x47/0x80
[   14.231593]  ? calculate_sigpending+0x7b/0xa0
[   14.231616]  ? __pfx_kthread+0x10/0x10
[   14.231638]  ret_from_fork+0x41/0x80
[   14.231658]  ? __pfx_kthread+0x10/0x10
[   14.231680]  ret_from_fork_asm+0x1a/0x30
[   14.231714]  </TASK>
[   14.231725] 
[   14.241491] The buggy address belongs to stack of task kunit_try_catch/259
[   14.242291] 
[   14.242409] The buggy address belongs to the physical page:
[   14.242617] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102be7
[   14.243313] flags: 0x200000000000000(node=0|zone=2)
[   14.243717] raw: 0200000000000000 ffffea00040af9c8 ffffea00040af9c8 0000000000000000
[   14.244227] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   14.244650] page dumped because: kasan: bad access detected
[   14.244908] 
[   14.245007] Memory state around the buggy address:
[   14.245398]  ffff888102be7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.245690]  ffff888102be7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   14.246004] >ffff888102be7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   14.246585]                                         ^
[   14.246804]  ffff888102be7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   14.247284]  ffff888102be7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   14.247612] ==================================================================