Hay
Date
July 11, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.385750] ==================================================================
[   16.385924] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   16.385978] Write of size 1 at addr fff00000c651a00a by task kunit_try_catch/147
[   16.386225] 
[   16.386268] CPU: 0 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.386604] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.386630] Hardware name: linux,dummy-virt (DT)
[   16.386671] Call trace:
[   16.386794]  show_stack+0x20/0x38 (C)
[   16.386867]  dump_stack_lvl+0x8c/0xd0
[   16.386913]  print_report+0x118/0x608
[   16.386978]  kasan_report+0xdc/0x128
[   16.387023]  __asan_report_store1_noabort+0x20/0x30
[   16.387198]  kmalloc_large_oob_right+0x278/0x2b8
[   16.387245]  kunit_try_run_case+0x170/0x3f0
[   16.387918]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.388002]  kthread+0x328/0x630
[   16.388043]  ret_from_fork+0x10/0x20
[   16.388090] 
[   16.388130] The buggy address belongs to the physical page:
[   16.388234] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106518
[   16.388881] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.388936] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   16.390703] page_type: f8(unknown)
[   16.391819] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.391891] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.392328] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.392698] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.394922] head: 0bfffe0000000002 ffffc1ffc3194601 00000000ffffffff 00000000ffffffff
[   16.395156] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.395250] page dumped because: kasan: bad access detected
[   16.395282] 
[   16.395300] Memory state around the buggy address:
[   16.395339]  fff00000c6519f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.395380]  fff00000c6519f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.395422] >fff00000c651a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.395459]                       ^
[   16.395488]  fff00000c651a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.395528]  fff00000c651a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.395565] ==================================================================

[   11.888023] ==================================================================
[   11.888499] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   11.888979] Write of size 1 at addr ffff888102a3a00a by task kunit_try_catch/163
[   11.889213] 
[   11.889323] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   11.889364] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.889375] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.889394] Call Trace:
[   11.889471]  <TASK>
[   11.889486]  dump_stack_lvl+0x73/0xb0
[   11.889530]  print_report+0xd1/0x650
[   11.889552]  ? __virt_addr_valid+0x1db/0x2d0
[   11.889575]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.889597]  ? kasan_addr_to_slab+0x11/0xa0
[   11.889618]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.889641]  kasan_report+0x141/0x180
[   11.889664]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.889694]  __asan_report_store1_noabort+0x1b/0x30
[   11.889719]  kmalloc_large_oob_right+0x2e9/0x330
[   11.889742]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   11.889767]  ? __schedule+0x10cc/0x2b60
[   11.889789]  ? __pfx_read_tsc+0x10/0x10
[   11.889810]  ? ktime_get_ts64+0x86/0x230
[   11.889834]  kunit_try_run_case+0x1a5/0x480
[   11.889858]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.889880]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.889903]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.889936]  ? __kthread_parkme+0x82/0x180
[   11.889955]  ? preempt_count_sub+0x50/0x80
[   11.889979]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.890003]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.890063]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.890088]  kthread+0x337/0x6f0
[   11.890107]  ? trace_preempt_on+0x20/0xc0
[   11.890130]  ? __pfx_kthread+0x10/0x10
[   11.890150]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.890171]  ? calculate_sigpending+0x7b/0xa0
[   11.890195]  ? __pfx_kthread+0x10/0x10
[   11.890216]  ret_from_fork+0x116/0x1d0
[   11.890234]  ? __pfx_kthread+0x10/0x10
[   11.890254]  ret_from_fork_asm+0x1a/0x30
[   11.890286]  </TASK>
[   11.890295] 
[   11.898730] The buggy address belongs to the physical page:
[   11.898958] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a38
[   11.899298] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.899730] flags: 0x200000000000040(head|node=0|zone=2)
[   11.900078] page_type: f8(unknown)
[   11.900322] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.900544] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   11.901032] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.901382] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   11.901685] head: 0200000000000002 ffffea00040a8e01 00000000ffffffff 00000000ffffffff
[   11.902222] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   11.902473] page dumped because: kasan: bad access detected
[   11.902708] 
[   11.902883] Memory state around the buggy address:
[   11.903295]  ffff888102a39f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.903574]  ffff888102a39f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.903961] >ffff888102a3a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.904272]                       ^
[   11.904394]  ffff888102a3a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.904737]  ffff888102a3a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.905093] ==================================================================