Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.417850] ==================================================================
[   16.417919] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   16.417974] Write of size 1 at addr fff00000c76e600a by task kunit_try_catch/146
[   16.418023] 
[   16.418058] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.418155] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.418200] Hardware name: linux,dummy-virt (DT)
[   16.418240] Call trace:
[   16.418270]  show_stack+0x20/0x38 (C)
[   16.418331]  dump_stack_lvl+0x8c/0xd0
[   16.418395]  print_report+0x118/0x608
[   16.418441]  kasan_report+0xdc/0x128
[   16.418485]  __asan_report_store1_noabort+0x20/0x30
[   16.418534]  kmalloc_large_oob_right+0x278/0x2b8
[   16.418579]  kunit_try_run_case+0x170/0x3f0
[   16.418636]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.418687]  kthread+0x328/0x630
[   16.418739]  ret_from_fork+0x10/0x20
[   16.418799] 
[   16.418833] The buggy address belongs to the physical page:
[   16.418865] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076e4
[   16.418925] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.418970] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   16.419033] page_type: f8(unknown)
[   16.419072] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.419953] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.420045] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.420174] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.420390] head: 0bfffe0000000002 ffffc1ffc31db901 00000000ffffffff 00000000ffffffff
[   16.420450] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.420490] page dumped because: kasan: bad access detected
[   16.420520] 
[   16.420538] Memory state around the buggy address:
[   16.420570]  fff00000c76e5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.420613]  fff00000c76e5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.420653] >fff00000c76e6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.420826]                       ^
[   16.420998]  fff00000c76e6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.421221]  fff00000c76e6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.421348] ==================================================================

[   12.069475] ==================================================================
[   12.070122] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   12.070947] Write of size 1 at addr ffff888102a3200a by task kunit_try_catch/163
[   12.071552] 
[   12.071741] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.071783] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.071795] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.071815] Call Trace:
[   12.071827]  <TASK>
[   12.071843]  dump_stack_lvl+0x73/0xb0
[   12.071873]  print_report+0xd1/0x650
[   12.071895]  ? __virt_addr_valid+0x1db/0x2d0
[   12.071917]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.071977]  ? kasan_addr_to_slab+0x11/0xa0
[   12.071998]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.072021]  kasan_report+0x141/0x180
[   12.072055]  ? kmalloc_large_oob_right+0x2e9/0x330
[   12.072082]  __asan_report_store1_noabort+0x1b/0x30
[   12.072107]  kmalloc_large_oob_right+0x2e9/0x330
[   12.072130]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   12.072154]  ? __schedule+0x10cc/0x2b60
[   12.072176]  ? __pfx_read_tsc+0x10/0x10
[   12.072198]  ? ktime_get_ts64+0x86/0x230
[   12.072223]  kunit_try_run_case+0x1a5/0x480
[   12.072324]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.072347]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.072420]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.072444]  ? __kthread_parkme+0x82/0x180
[   12.072464]  ? preempt_count_sub+0x50/0x80
[   12.072488]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.072513]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.072537]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.072562]  kthread+0x337/0x6f0
[   12.072580]  ? trace_preempt_on+0x20/0xc0
[   12.072604]  ? __pfx_kthread+0x10/0x10
[   12.072624]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.072645]  ? calculate_sigpending+0x7b/0xa0
[   12.072669]  ? __pfx_kthread+0x10/0x10
[   12.072691]  ret_from_fork+0x116/0x1d0
[   12.072720]  ? __pfx_kthread+0x10/0x10
[   12.072741]  ret_from_fork_asm+0x1a/0x30
[   12.072772]  </TASK>
[   12.072782] 
[   12.085281] The buggy address belongs to the physical page:
[   12.085534] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a30
[   12.085794] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   12.086020] flags: 0x200000000000040(head|node=0|zone=2)
[   12.086646] page_type: f8(unknown)
[   12.087009] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.087739] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.088508] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   12.089402] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   12.090070] head: 0200000000000002 ffffea00040a8c01 00000000ffffffff 00000000ffffffff
[   12.090348] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   12.091259] page dumped because: kasan: bad access detected
[   12.091657] 
[   12.091856] Memory state around the buggy address:
[   12.092312]  ffff888102a31f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.092644]  ffff888102a31f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.092867] >ffff888102a32000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.093308]                       ^
[   12.093659]  ffff888102a32080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.094361]  ffff888102a32100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   12.094986] ==================================================================