Hay
Date
June 17, 2025, 3:39 p.m.

Environment
qemu-arm64
qemu-x86_64

[   91.538644] ==================================================================
[   91.540293] BUG: KASAN: slab-out-of-bounds in kmalloc_pagealloc_oob_right+0xac/0x1c0
[   91.541447] Write of size 1 at addr ffff0000c5fa200a by task kunit_try_catch/123
[   91.542530] 
[   91.543026] CPU: 1 PID: 123 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   91.544587] Hardware name: linux,dummy-virt (DT)
[   91.545457] Call trace:
[   91.546033]  dump_backtrace+0x9c/0x128
[   91.546907]  show_stack+0x20/0x38
[   91.547706]  dump_stack_lvl+0x60/0xb0
[   91.548622]  print_report+0xf8/0x5e8
[   91.549489]  kasan_report+0xdc/0x128
[   91.550299]  __asan_store1+0x60/0x70
[   91.551135]  kmalloc_pagealloc_oob_right+0xac/0x1c0
[   91.552245]  kunit_try_run_case+0x114/0x298
[   91.553183]  kunit_generic_run_threadfn_adapter+0x38/0x60
[   91.554201]  kthread+0x18c/0x1a8
[   91.555128]  ret_from_fork+0x10/0x20
[   91.555694] 
[   91.556284] The buggy address belongs to the physical page:
[   91.557348] page:00000000fbc828a4 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105fa0
[   91.558513] head:00000000fbc828a4 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   91.559596] flags: 0xbfffc0000000040(head|node=0|zone=2|lastcpupid=0xffff)
[   91.560742] page_type: 0xffffffff()
[   91.561522] raw: 0bfffc0000000040 0000000000000000 dead000000000122 0000000000000000
[   91.562498] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   91.563844] page dumped because: kasan: bad access detected
[   91.564973] 
[   91.565445] Memory state around the buggy address:
[   91.566330]  ffff0000c5fa1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   91.567446]  ffff0000c5fa1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   91.568643] >ffff0000c5fa2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   91.569723]                       ^
[   91.570488]  ffff0000c5fa2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   91.571786]  ffff0000c5fa2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   91.572927] ==================================================================


[   33.203515] ==================================================================
[   33.204229] BUG: KASAN: slab-out-of-bounds in kmalloc_pagealloc_oob_right+0xab/0x1c0
[   33.204634] Write of size 1 at addr ffff88810207200a by task kunit_try_catch/138
[   33.206016] 
[   33.206406] CPU: 0 PID: 138 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   33.207535] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.208615] Call Trace:
[   33.208997]  <TASK>
[   33.209358]  dump_stack_lvl+0x4e/0x90
[   33.209921]  print_report+0xd2/0x650
[   33.210414]  ? __virt_addr_valid+0x156/0x1e0
[   33.210878]  ? kmalloc_pagealloc_oob_right+0xab/0x1c0
[   33.211147]  ? kasan_addr_to_slab+0x11/0xb0
[   33.211368]  ? kmalloc_pagealloc_oob_right+0xab/0x1c0
[   33.211619]  kasan_report+0x147/0x180
[   33.212142]  ? kmalloc_pagealloc_oob_right+0xab/0x1c0
[   33.212770]  __asan_store1+0x69/0x70
[   33.213245]  kmalloc_pagealloc_oob_right+0xab/0x1c0
[   33.213832]  ? __pfx_kmalloc_pagealloc_oob_right+0x10/0x10
[   33.214464]  ? __schedule+0x715/0x11a0
[   33.214951]  ? ktime_get_ts64+0x118/0x140
[   33.215437]  kunit_try_run_case+0x120/0x290
[   33.215988]  ? __pfx_kunit_try_run_case+0x10/0x10
[   33.216519]  ? __kasan_check_write+0x18/0x20
[   33.217076]  ? trace_preempt_on+0x20/0xa0
[   33.217553]  ? __kthread_parkme+0x4f/0xd0
[   33.218063]  ? preempt_count_sub+0x50/0x80
[   33.218528]  ? __pfx_kunit_try_run_case+0x10/0x10
[   33.218796]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   33.219102]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   33.219369]  kthread+0x19e/0x1e0
[   33.219566]  ? __pfx_kthread+0x10/0x10
[   33.219901]  ret_from_fork+0x41/0x70
[   33.220329]  ? __pfx_kthread+0x10/0x10
[   33.220810]  ret_from_fork_asm+0x1b/0x30
[   33.221333]  </TASK>
[   33.221632] 
[   33.221948] The buggy address belongs to the physical page:
[   33.222703] page:(____ptrval____) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102070
[   33.223652] head:(____ptrval____) order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   33.224512] flags: 0x200000000000040(head|node=0|zone=2)
[   33.225219] page_type: 0xffffffff()
[   33.225707] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   33.226444] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
[   33.226852] page dumped because: kasan: bad access detected
[   33.227467] 
[   33.227657] Memory state around the buggy address:
[   33.228256]  ffff888102071f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.229052]  ffff888102071f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   33.229652] >ffff888102072000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   33.230412]                       ^
[   33.230672]  ffff888102072080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   33.231482]  ffff888102072100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   33.232039] ==================================================================