Hay
Date
May 26, 2025, 9:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.236855] ==================================================================
[   20.236998] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340
[   20.237519] Read of size 1 at addr ffff800080a17b4a by task kunit_try_catch/253
[   20.237861] 
[   20.237960] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   20.238275] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.238347] Hardware name: linux,dummy-virt (DT)
[   20.238700] Call trace:
[   20.238842]  show_stack+0x20/0x38 (C)
[   20.238969]  dump_stack_lvl+0x8c/0xd0
[   20.239066]  print_report+0x310/0x608
[   20.239147]  kasan_report+0xdc/0x128
[   20.239233]  __asan_report_load1_noabort+0x20/0x30
[   20.239350]  kasan_alloca_oob_right+0x2dc/0x340
[   20.239515]  kunit_try_run_case+0x170/0x3f0
[   20.239665]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.239821]  kthread+0x328/0x630
[   20.239950]  ret_from_fork+0x10/0x20
[   20.240063] 
[   20.240132] The buggy address belongs to stack of task kunit_try_catch/253
[   20.240252] 
[   20.240313] The buggy address belongs to the virtual mapping at
[   20.240313]  [ffff800080a10000, ffff800080a19000) created by:
[   20.240313]  kernel_clone+0x150/0x7a8
[   20.240511] 
[   20.240578] The buggy address belongs to the physical page:
[   20.240667] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077f8
[   20.240834] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.241029] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000
[   20.241194] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   20.241292] page dumped because: kasan: bad access detected
[   20.241366] 
[   20.241403] Memory state around the buggy address:
[   20.241476]  ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.241573]  ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.241677] >ffff800080a17b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   20.241920]                                               ^
[   20.242045]  ffff800080a17b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2
[   20.242429]  ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00
[   20.242651] ==================================================================


[   12.866351] ==================================================================
[   12.866858] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390
[   12.867237] Read of size 1 at addr ffff88810387fc4a by task kunit_try_catch/271
[   12.867539] 
[   12.867648] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   12.867693] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.867706] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.867726] Call Trace:
[   12.867738]  <TASK>
[   12.867753]  dump_stack_lvl+0x73/0xb0
[   12.867779]  print_report+0xd1/0x650
[   12.867802]  ? __virt_addr_valid+0x1db/0x2d0
[   12.867825]  ? kasan_alloca_oob_right+0x329/0x390
[   12.867847]  ? kasan_addr_to_slab+0x11/0xa0
[   12.867867]  ? kasan_alloca_oob_right+0x329/0x390
[   12.867891]  kasan_report+0x141/0x180
[   12.867969]  ? kasan_alloca_oob_right+0x329/0x390
[   12.868000]  __asan_report_load1_noabort+0x18/0x20
[   12.868021]  kasan_alloca_oob_right+0x329/0x390
[   12.868077]  ? __kasan_check_write+0x18/0x20
[   12.868098]  ? __pfx_sched_clock_cpu+0x10/0x10
[   12.868121]  ? irqentry_exit+0x2a/0x60
[   12.868141]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   12.868167]  ? trace_hardirqs_on+0x37/0xe0
[   12.868192]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   12.868220]  ? __pfx_kasan_alloca_oob_right+0x10/0x10
[   12.868248]  kunit_try_run_case+0x1a5/0x480
[   12.868269]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.868289]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.868314]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.868338]  ? __kthread_parkme+0x82/0x180
[   12.868359]  ? preempt_count_sub+0x50/0x80
[   12.868393]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.868414]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.868437]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.868462]  kthread+0x337/0x6f0
[   12.868481]  ? trace_preempt_on+0x20/0xc0
[   12.868503]  ? __pfx_kthread+0x10/0x10
[   12.868523]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.868545]  ? calculate_sigpending+0x7b/0xa0
[   12.868568]  ? __pfx_kthread+0x10/0x10
[   12.868589]  ret_from_fork+0x116/0x1d0
[   12.868607]  ? __pfx_kthread+0x10/0x10
[   12.868627]  ret_from_fork_asm+0x1a/0x30
[   12.868657]  </TASK>
[   12.868666] 
[   12.877311] The buggy address belongs to stack of task kunit_try_catch/271
[   12.877633] 
[   12.878485] The buggy address belongs to the physical page:
[   12.879009] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10387f
[   12.879774] flags: 0x200000000000000(node=0|zone=2)
[   12.880038] raw: 0200000000000000 ffffea00040e1fc8 ffffea00040e1fc8 0000000000000000
[   12.880403] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
[   12.880714] page dumped because: kasan: bad access detected
[   12.880939] 
[   12.881036] Memory state around the buggy address:
[   12.881308]  ffff88810387fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.881602]  ffff88810387fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.881940] >ffff88810387fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb
[   12.882284]                                               ^
[   12.882476]  ffff88810387fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00
[   12.882792]  ffff88810387fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1
[   12.883150] ==================================================================