Hay
Date
July 3, 2025, 6:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.535680] ==================================================================
[   16.536000] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   16.536129] Write of size 1 at addr fff00000c780200a by task kunit_try_catch/146
[   16.536176] 
[   16.536207] CPU: 0 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   16.536285] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.536332] Hardware name: linux,dummy-virt (DT)
[   16.536362] Call trace:
[   16.536398]  show_stack+0x20/0x38 (C)
[   16.536452]  dump_stack_lvl+0x8c/0xd0
[   16.536497]  print_report+0x118/0x608
[   16.536864]  kasan_report+0xdc/0x128
[   16.536915]  __asan_report_store1_noabort+0x20/0x30
[   16.536962]  kmalloc_large_oob_right+0x278/0x2b8
[   16.537403]  kunit_try_run_case+0x170/0x3f0
[   16.537484]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.537621]  kthread+0x328/0x630
[   16.537696]  ret_from_fork+0x10/0x20
[   16.538060] 
[   16.538270] The buggy address belongs to the physical page:
[   16.538345] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107800
[   16.538479] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.538643] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   16.538716] page_type: f8(unknown)
[   16.538781] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.539074] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.539283] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.539375] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.539531] head: 0bfffe0000000002 ffffc1ffc31e0001 00000000ffffffff 00000000ffffffff
[   16.539579] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.540006] page dumped because: kasan: bad access detected
[   16.540191] 
[   16.540381] Memory state around the buggy address:
[   16.540464]  fff00000c7801f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.540620]  fff00000c7801f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.540759] >fff00000c7802000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.540859]                       ^
[   16.540937]  fff00000c7802080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.541041]  fff00000c7802100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.541079] ==================================================================

[   10.967145] ==================================================================
[   10.967836] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   10.968162] Write of size 1 at addr ffff8881029fe00a by task kunit_try_catch/164
[   10.968497] 
[   10.968616] CPU: 0 UID: 0 PID: 164 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   10.968660] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.968671] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.968692] Call Trace:
[   10.968703]  <TASK>
[   10.968719]  dump_stack_lvl+0x73/0xb0
[   10.968747]  print_report+0xd1/0x650
[   10.968768]  ? __virt_addr_valid+0x1db/0x2d0
[   10.968791]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.968811]  ? kasan_addr_to_slab+0x11/0xa0
[   10.968831]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.968852]  kasan_report+0x141/0x180
[   10.968872]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.968898]  __asan_report_store1_noabort+0x1b/0x30
[   10.968917]  kmalloc_large_oob_right+0x2e9/0x330
[   10.968938]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   10.968960]  ? __schedule+0x10cc/0x2b60
[   10.968981]  ? __pfx_read_tsc+0x10/0x10
[   10.969001]  ? ktime_get_ts64+0x86/0x230
[   10.969026]  kunit_try_run_case+0x1a5/0x480
[   10.969050]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.969070]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.969092]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.969126]  ? __kthread_parkme+0x82/0x180
[   10.969147]  ? preempt_count_sub+0x50/0x80
[   10.969170]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.969192]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.969213]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.969234]  kthread+0x337/0x6f0
[   10.969253]  ? trace_preempt_on+0x20/0xc0
[   10.969276]  ? __pfx_kthread+0x10/0x10
[   10.969296]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.969315]  ? calculate_sigpending+0x7b/0xa0
[   10.969338]  ? __pfx_kthread+0x10/0x10
[   10.969358]  ret_from_fork+0x116/0x1d0
[   10.969375]  ? __pfx_kthread+0x10/0x10
[   10.969395]  ret_from_fork_asm+0x1a/0x30
[   10.969424]  </TASK>
[   10.969434] 
[   10.981229] The buggy address belongs to the physical page:
[   10.981524] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029fc
[   10.981863] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   10.982141] flags: 0x200000000000040(head|node=0|zone=2)
[   10.982612] page_type: f8(unknown)
[   10.982805] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.983170] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.983599] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.983913] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.984242] head: 0200000000000002 ffffea00040a7f01 00000000ffffffff 00000000ffffffff
[   10.984637] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   10.984911] page dumped because: kasan: bad access detected
[   10.985173] 
[   10.985260] Memory state around the buggy address:
[   10.985529]  ffff8881029fdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.985807]  ffff8881029fdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.986131] >ffff8881029fe000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.986467]                       ^
[   10.986625]  ffff8881029fe080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.987043]  ffff8881029fe100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.987479] ==================================================================