Hay
Date
June 25, 2025, 8:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   26.353754] ==================================================================
[   26.353945] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   26.354119] Write of size 1 at addr fff00000c667600a by task kunit_try_catch/158
[   26.354186] 
[   26.354248] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT 
[   26.354334] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.354666] Hardware name: linux,dummy-virt (DT)
[   26.354708] Call trace:
[   26.354802]  show_stack+0x20/0x38 (C)
[   26.354852]  dump_stack_lvl+0x8c/0xd0
[   26.354899]  print_report+0x118/0x608
[   26.354945]  kasan_report+0xdc/0x128
[   26.354989]  __asan_report_store1_noabort+0x20/0x30
[   26.355035]  kmalloc_large_oob_right+0x278/0x2b8
[   26.355080]  kunit_try_run_case+0x170/0x3f0
[   26.355129]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.355180]  kthread+0x328/0x630
[   26.355220]  ret_from_fork+0x10/0x20
[   26.355273] 
[   26.355480] The buggy address belongs to the physical page:
[   26.355655] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106674
[   26.355733] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   26.355956] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   26.356017] page_type: f8(unknown)
[   26.356484] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   26.356733] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   26.356786] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   26.356832] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   26.356878] head: 0bfffe0000000002 ffffc1ffc3199d01 00000000ffffffff 00000000ffffffff
[   26.356925] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   26.356963] page dumped because: kasan: bad access detected
[   26.356993] 
[   26.357411] Memory state around the buggy address:
[   26.357538]  fff00000c6675f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.357646]  fff00000c6675f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.357716] >fff00000c6676000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   26.357752]                       ^
[   26.357780]  fff00000c6676080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   26.357821]  fff00000c6676100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   26.358012] ==================================================================

[   21.381411] ==================================================================
[   21.382445] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   21.382686] Write of size 1 at addr ffff888102cce00a by task kunit_try_catch/175
[   21.382901] 
[   21.383006] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) 
[   21.383079] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.383111] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.383132] Call Trace:
[   21.383145]  <TASK>
[   21.383162]  dump_stack_lvl+0x73/0xb0
[   21.383188]  print_report+0xd1/0x650
[   21.383209]  ? __virt_addr_valid+0x1db/0x2d0
[   21.383232]  ? kmalloc_large_oob_right+0x2e9/0x330
[   21.383253]  ? kasan_addr_to_slab+0x11/0xa0
[   21.383272]  ? kmalloc_large_oob_right+0x2e9/0x330
[   21.383345]  kasan_report+0x141/0x180
[   21.383396]  ? kmalloc_large_oob_right+0x2e9/0x330
[   21.383424]  __asan_report_store1_noabort+0x1b/0x30
[   21.383447]  kmalloc_large_oob_right+0x2e9/0x330
[   21.383468]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   21.383490]  ? __schedule+0x10cc/0x2b60
[   21.383515]  ? __pfx_read_tsc+0x10/0x10
[   21.383535]  ? ktime_get_ts64+0x86/0x230
[   21.383561]  kunit_try_run_case+0x1a5/0x480
[   21.383587]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.383609]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   21.383628]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   21.383652]  ? __kthread_parkme+0x82/0x180
[   21.383673]  ? preempt_count_sub+0x50/0x80
[   21.383731]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.383756]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.383779]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   21.383847]  kthread+0x337/0x6f0
[   21.383866]  ? trace_preempt_on+0x20/0xc0
[   21.383889]  ? __pfx_kthread+0x10/0x10
[   21.383946]  ? _raw_spin_unlock_irq+0x47/0x80
[   21.383969]  ? calculate_sigpending+0x7b/0xa0
[   21.383992]  ? __pfx_kthread+0x10/0x10
[   21.384013]  ret_from_fork+0x116/0x1d0
[   21.384032]  ? __pfx_kthread+0x10/0x10
[   21.384053]  ret_from_fork_asm+0x1a/0x30
[   21.384089]  </TASK>
[   21.384100] 
[   21.394348] The buggy address belongs to the physical page:
[   21.394766] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ccc
[   21.395364] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.396008] flags: 0x200000000000040(head|node=0|zone=2)
[   21.396277] page_type: f8(unknown)
[   21.396571] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   21.397116] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   21.397544] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   21.398434] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   21.399473] head: 0200000000000002 ffffea00040b3301 00000000ffffffff 00000000ffffffff
[   21.400412] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   21.400978] page dumped because: kasan: bad access detected
[   21.401588] 
[   21.402024] Memory state around the buggy address:
[   21.402208]  ffff888102ccdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.402420]  ffff888102ccdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.402626] >ffff888102cce000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.403133]                       ^
[   21.403613]  ffff888102cce080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.404418]  ffff888102cce100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.405265] ==================================================================