Hay
Date
July 22, 2025, 5:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   30.084141] ==================================================================
[   30.084634] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   30.084695] Write of size 1 at addr fff00000c9ae600a by task kunit_try_catch/177
[   30.084742] 
[   30.084772] CPU: 1 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250722 #1 PREEMPT 
[   30.084878] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   30.084906] Hardware name: linux,dummy-virt (DT)
[   30.084934] Call trace:
[   30.084956]  show_stack+0x20/0x38 (C)
[   30.085002]  dump_stack_lvl+0x8c/0xd0
[   30.086897]  print_report+0x118/0x5e8
[   30.086941]  kasan_report+0xdc/0x128
[   30.086982]  __asan_report_store1_noabort+0x20/0x30
[   30.087029]  kmalloc_large_oob_right+0x278/0x2b8
[   30.087075]  kunit_try_run_case+0x170/0x3f0
[   30.087122]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.087171]  kthread+0x328/0x630
[   30.087212]  ret_from_fork+0x10/0x20
[   30.087257] 
[   30.087292] The buggy address belongs to the physical page:
[   30.087328] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ae4
[   30.087380] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   30.087424] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   30.087480] page_type: f8(unknown)
[   30.087519] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   30.087567] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   30.087613] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   30.087659] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   30.087705] head: 0bfffe0000000002 ffffc1ffc326b901 00000000ffffffff 00000000ffffffff
[   30.087751] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   30.087790] page dumped because: kasan: bad access detected
[   30.087831] 
[   30.087878] Memory state around the buggy address:
[   30.087910]  fff00000c9ae5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.087973]  fff00000c9ae5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.088020] >fff00000c9ae6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   30.088195]                       ^
[   30.088287]  fff00000c9ae6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   30.088338]  fff00000c9ae6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   30.088426] ==================================================================

[   24.631119] ==================================================================
[   24.631913] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   24.632403] Write of size 1 at addr ffff888104ab600a by task kunit_try_catch/194
[   24.633052] 
[   24.633152] CPU: 1 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) 
[   24.633202] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.633215] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.633237] Call Trace:
[   24.633250]  <TASK>
[   24.633264]  dump_stack_lvl+0x73/0xb0
[   24.633293]  print_report+0xd1/0x640
[   24.633316]  ? __virt_addr_valid+0x1db/0x2d0
[   24.633340]  ? kmalloc_large_oob_right+0x2e9/0x330
[   24.633362]  ? kasan_addr_to_slab+0x11/0xa0
[   24.633383]  ? kmalloc_large_oob_right+0x2e9/0x330
[   24.633404]  kasan_report+0x141/0x180
[   24.633426]  ? kmalloc_large_oob_right+0x2e9/0x330
[   24.633453]  __asan_report_store1_noabort+0x1b/0x30
[   24.633710]  kmalloc_large_oob_right+0x2e9/0x330
[   24.633736]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   24.633759]  ? __schedule+0x10da/0x2b60
[   24.633824]  ? __pfx_read_tsc+0x10/0x10
[   24.633857]  ? ktime_get_ts64+0x86/0x230
[   24.633882]  kunit_try_run_case+0x1a5/0x480
[   24.633909]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.633933]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.633959]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.633984]  ? __kthread_parkme+0x82/0x180
[   24.634004]  ? preempt_count_sub+0x50/0x80
[   24.634026]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.634050]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.634074]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.634097]  kthread+0x337/0x6f0
[   24.634117]  ? trace_preempt_on+0x20/0xc0
[   24.634141]  ? __pfx_kthread+0x10/0x10
[   24.634161]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.634199]  ? calculate_sigpending+0x7b/0xa0
[   24.634222]  ? __pfx_kthread+0x10/0x10
[   24.634243]  ret_from_fork+0x116/0x1d0
[   24.634263]  ? __pfx_kthread+0x10/0x10
[   24.634283]  ret_from_fork_asm+0x1a/0x30
[   24.634313]  </TASK>
[   24.634325] 
[   24.646444] The buggy address belongs to the physical page:
[   24.646819] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104ab4
[   24.647153] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   24.647865] flags: 0x200000000000040(head|node=0|zone=2)
[   24.648415] page_type: f8(unknown)
[   24.648697] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   24.648991] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   24.649229] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   24.649464] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   24.649699] head: 0200000000000002 ffffea000412ad01 00000000ffffffff 00000000ffffffff
[   24.649944] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   24.650752] page dumped because: kasan: bad access detected
[   24.651185] 
[   24.651266] Memory state around the buggy address:
[   24.651424]  ffff888104ab5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.651643]  ffff888104ab5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.651872] >ffff888104ab6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   24.652085]                       ^
[   24.652208]  ffff888104ab6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   24.652425]  ffff888104ab6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   24.652638] ==================================================================