Hay
Date
June 23, 2025, 7:07 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.322115] ==================================================================
[   32.322384] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   32.322530] Write of size 1 at addr fff00000c577a00a by task kunit_try_catch/158
[   32.322659] 
[   32.322751] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT 
[   32.322993] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.323152] Hardware name: linux,dummy-virt (DT)
[   32.323399] Call trace:
[   32.323469]  show_stack+0x20/0x38 (C)
[   32.323592]  dump_stack_lvl+0x8c/0xd0
[   32.323718]  print_report+0x118/0x608
[   32.324100]  kasan_report+0xdc/0x128
[   32.324243]  __asan_report_store1_noabort+0x20/0x30
[   32.324595]  kmalloc_large_oob_right+0x278/0x2b8
[   32.324789]  kunit_try_run_case+0x170/0x3f0
[   32.325372]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.325826]  kthread+0x328/0x630
[   32.326116]  ret_from_fork+0x10/0x20
[   32.326374] 
[   32.326675] The buggy address belongs to the physical page:
[   32.326782] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105778
[   32.326906] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   32.327009] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   32.327235] page_type: f8(unknown)
[   32.327341] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   32.327487] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   32.327605] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   32.327789] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   32.328005] head: 0bfffe0000000002 ffffc1ffc315de01 00000000ffffffff 00000000ffffffff
[   32.328170] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   32.328335] page dumped because: kasan: bad access detected
[   32.328408] 
[   32.328451] Memory state around the buggy address:
[   32.328603]  fff00000c5779f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.328748]  fff00000c5779f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.328891] >fff00000c577a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   32.329062]                       ^
[   32.329150]  fff00000c577a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   32.329327]  fff00000c577a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   32.329455] ==================================================================

[   21.172030] ==================================================================
[   21.172552] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   21.173145] Write of size 1 at addr ffff88810282e00a by task kunit_try_catch/175
[   21.173403] 
[   21.173516] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) 
[   21.173995] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.174025] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.174048] Call Trace:
[   21.174064]  <TASK>
[   21.174081]  dump_stack_lvl+0x73/0xb0
[   21.174114]  print_report+0xd1/0x650
[   21.174134]  ? __virt_addr_valid+0x1db/0x2d0
[   21.174155]  ? kmalloc_large_oob_right+0x2e9/0x330
[   21.174173]  ? kasan_addr_to_slab+0x11/0xa0
[   21.174190]  ? kmalloc_large_oob_right+0x2e9/0x330
[   21.174209]  kasan_report+0x141/0x180
[   21.174227]  ? kmalloc_large_oob_right+0x2e9/0x330
[   21.174251]  __asan_report_store1_noabort+0x1b/0x30
[   21.174273]  kmalloc_large_oob_right+0x2e9/0x330
[   21.174293]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   21.174314]  ? __schedule+0x10cc/0x2b60
[   21.174334]  ? __pfx_read_tsc+0x10/0x10
[   21.174353]  ? ktime_get_ts64+0x86/0x230
[   21.174375]  kunit_try_run_case+0x1a5/0x480
[   21.174431]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.174471]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   21.174511]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   21.174554]  ? __kthread_parkme+0x82/0x180
[   21.174594]  ? preempt_count_sub+0x50/0x80
[   21.174629]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.174652]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.174675]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   21.174697]  kthread+0x337/0x6f0
[   21.174714]  ? trace_preempt_on+0x20/0xc0
[   21.174735]  ? __pfx_kthread+0x10/0x10
[   21.174754]  ? _raw_spin_unlock_irq+0x47/0x80
[   21.174773]  ? calculate_sigpending+0x7b/0xa0
[   21.174794]  ? __pfx_kthread+0x10/0x10
[   21.174814]  ret_from_fork+0x116/0x1d0
[   21.174835]  ? __pfx_kthread+0x10/0x10
[   21.174875]  ret_from_fork_asm+0x1a/0x30
[   21.174906]  </TASK>
[   21.174917] 
[   21.183994] The buggy address belongs to the physical page:
[   21.185252] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10282c
[   21.185686] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.186202] flags: 0x200000000000040(head|node=0|zone=2)
[   21.186634] page_type: f8(unknown)
[   21.186767] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   21.187335] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   21.187943] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   21.188481] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   21.188949] head: 0200000000000002 ffffea00040a0b01 00000000ffffffff 00000000ffffffff
[   21.189469] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   21.190117] page dumped because: kasan: bad access detected
[   21.190509] 
[   21.190609] Memory state around the buggy address:
[   21.190919]  ffff88810282df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.191636]  ffff88810282df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.192176] >ffff88810282e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.192433]                       ^
[   21.192685]  ffff88810282e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.193422]  ffff88810282e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   21.193717] ==================================================================