Hay
Date
July 10, 2025, 6:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.568862] ==================================================================
[   16.568946] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   16.569170] Write of size 1 at addr fff00000c78a200a by task kunit_try_catch/146
[   16.569231] 
[   16.569284] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.569737] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.569764] Hardware name: linux,dummy-virt (DT)
[   16.569796] Call trace:
[   16.569820]  show_stack+0x20/0x38 (C)
[   16.570104]  dump_stack_lvl+0x8c/0xd0
[   16.570188]  print_report+0x118/0x608
[   16.570244]  kasan_report+0xdc/0x128
[   16.570291]  __asan_report_store1_noabort+0x20/0x30
[   16.570880]  kmalloc_large_oob_right+0x278/0x2b8
[   16.571008]  kunit_try_run_case+0x170/0x3f0
[   16.571247]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.571370]  kthread+0x328/0x630
[   16.571661]  ret_from_fork+0x10/0x20
[   16.571744] 
[   16.571935] The buggy address belongs to the physical page:
[   16.571970] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078a0
[   16.572432] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.572485] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   16.572552] page_type: f8(unknown)
[   16.572828] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.572978] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.573278] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.573456] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.573633] head: 0bfffe0000000002 ffffc1ffc31e2801 00000000ffffffff 00000000ffffffff
[   16.573963] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.574004] page dumped because: kasan: bad access detected
[   16.574034] 
[   16.574052] Memory state around the buggy address:
[   16.574235]  fff00000c78a1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.574288]  fff00000c78a1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.574515] >fff00000c78a2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.574578]                       ^
[   16.574607]  fff00000c78a2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.574989]  fff00000c78a2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.575223] ==================================================================

[   12.048119] ==================================================================
[   12.048627] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   12.049588] Write of size 1 at addr ffff888102a5200a by task kunit_try_catch/163
[   12.050561] 
[   12.050709] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.050755] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.050766] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.050785] Call Trace:
[   12.050798]  <TASK>
[   12.050814]  dump_stack_lvl+0x73/0xb0
[   12.050845]  print_report+0xd1/0x650
[   12.050867]  ? __virt_addr_valid+0x1db/0x2d0
[   12.050890]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.050911]  ? kasan_addr_to_slab+0x11/0xa0
[   12.051163]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.051192]  kasan_report+0x141/0x180
[   12.051214]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.051275]  __asan_report_store1_noabort+0x1b/0x30
[   12.051303]  kmalloc_large_oob_right+0x2e9/0x330
[   12.051325]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.051350]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.051377]  kunit_try_run_case+0x1a5/0x480
[   12.051403]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.051426]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.051450]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.051474]  ? __kthread_parkme+0x82/0x180
[   12.051494]  ? preempt_count_sub+0x50/0x80
[   12.051519]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.051544]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.051568]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.051594]  kthread+0x337/0x6f0
[   12.051613]  ? trace_preempt_on+0x20/0xc0
[   12.051636]  ? __pfx_kthread+0x10/0x10
[   12.051656]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.051677]  ? calculate_sigpending+0x7b/0xa0
[   12.051701]  ? __pfx_kthread+0x10/0x10
[   12.051722]  ret_from_fork+0x116/0x1d0
[   12.051740]  ? __pfx_kthread+0x10/0x10
[   12.051760]  ret_from_fork_asm+0x1a/0x30
[   12.051790]  </TASK>
[   12.051800] 
[   12.058666] The buggy address belongs to the physical page:
[   12.058865] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a50
[   12.059283] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.059568] flags: 0x200000000000040(head|node=0|zone=2)
[   12.059760] page_type: f8(unknown)
[   12.059888] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.060223] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.060680] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.061126] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.061543] head: 0200000000000002 ffffea00040a9401 00000000ffffffff 00000000ffffffff
[   12.061952] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.062202] page dumped because: kasan: bad access detected
[   12.062458] 
[   12.062548] Memory state around the buggy address:
[   12.062785]  ffff888102a51f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.063163]  ffff888102a51f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.063464] >ffff888102a52000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.063716]                       ^
[   12.063852]  ffff888102a52080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.064179]  ffff888102a52100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.064567] ==================================================================