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

Environment
qemu-arm64
qemu-x86_64

[   15.731314] ==================================================================
[   15.731380] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   15.731432] Write of size 1 at addr fff00000c663600a by task kunit_try_catch/146
[   15.731478] 
[   15.731510] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   15.731589] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.731614] Hardware name: linux,dummy-virt (DT)
[   15.731643] Call trace:
[   15.731665]  show_stack+0x20/0x38 (C)
[   15.731712]  dump_stack_lvl+0x8c/0xd0
[   15.731760]  print_report+0x118/0x608
[   15.731805]  kasan_report+0xdc/0x128
[   15.731850]  __asan_report_store1_noabort+0x20/0x30
[   15.731901]  kmalloc_large_oob_right+0x278/0x2b8
[   15.731948]  kunit_try_run_case+0x170/0x3f0
[   15.731995]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.732047]  kthread+0x328/0x630
[   15.732102]  ret_from_fork+0x10/0x20
[   15.732149] 
[   15.732181] The buggy address belongs to the physical page:
[   15.732211] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106634
[   15.732260] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   15.732303] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   15.732357] page_type: f8(unknown)
[   15.732393] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   15.732440] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.732487] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   15.732534] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.732580] head: 0bfffe0000000002 ffffc1ffc3198d01 00000000ffffffff 00000000ffffffff
[   15.732626] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   15.732664] page dumped because: kasan: bad access detected
[   15.732693] 
[   15.732711] Memory state around the buggy address:
[   15.732739]  fff00000c6635f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.732779]  fff00000c6635f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.732819] >fff00000c6636000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.732854]                       ^
[   15.732880]  fff00000c6636080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.732920]  fff00000c6636100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.732955] ==================================================================

[   12.261675] ==================================================================
[   12.262129] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   12.262596] Write of size 1 at addr ffff88810211200a by task kunit_try_catch/163
[   12.262969] 
[   12.263216] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.263261] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.263272] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.263291] Call Trace:
[   12.263301]  <TASK>
[   12.263315]  dump_stack_lvl+0x73/0xb0
[   12.263344]  print_report+0xd1/0x650
[   12.263435]  ? __virt_addr_valid+0x1db/0x2d0
[   12.263459]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.263481]  ? kasan_addr_to_slab+0x11/0xa0
[   12.263502]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.263524]  kasan_report+0x141/0x180
[   12.263547]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.263585]  __asan_report_store1_noabort+0x1b/0x30
[   12.263612]  kmalloc_large_oob_right+0x2e9/0x330
[   12.263634]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.263670]  ? __schedule+0x10cc/0x2b60
[   12.263692]  ? __pfx_read_tsc+0x10/0x10
[   12.263713]  ? ktime_get_ts64+0x86/0x230
[   12.263736]  kunit_try_run_case+0x1a5/0x480
[   12.263759]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.263781]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.263804]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.263827]  ? __kthread_parkme+0x82/0x180
[   12.263846]  ? preempt_count_sub+0x50/0x80
[   12.263869]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.263893]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.263916]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.263941]  kthread+0x337/0x6f0
[   12.263959]  ? trace_preempt_on+0x20/0xc0
[   12.263981]  ? __pfx_kthread+0x10/0x10
[   12.264001]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.264022]  ? calculate_sigpending+0x7b/0xa0
[   12.264046]  ? __pfx_kthread+0x10/0x10
[   12.264066]  ret_from_fork+0x116/0x1d0
[   12.264084]  ? __pfx_kthread+0x10/0x10
[   12.264104]  ret_from_fork_asm+0x1a/0x30
[   12.264134]  </TASK>
[   12.264143] 
[   12.272163] The buggy address belongs to the physical page:
[   12.272576] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102110
[   12.272922] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.273212] flags: 0x200000000000040(head|node=0|zone=2)
[   12.273421] page_type: f8(unknown)
[   12.273626] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.274092] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.274566] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.274863] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.275130] head: 0200000000000002 ffffea0004084401 00000000ffffffff 00000000ffffffff
[   12.275500] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.275797] page dumped because: kasan: bad access detected
[   12.275966] 
[   12.276078] Memory state around the buggy address:
[   12.276314]  ffff888102111f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.276836]  ffff888102111f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.277151] >ffff888102112000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.277393]                       ^
[   12.277536]  ffff888102112080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.277962]  ffff888102112100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.278205] ==================================================================