Hay
Date
May 26, 2025, 9:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   16.957774] ==================================================================
[   16.957926] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   16.958044] Write of size 1 at addr fff00000c65ae00a by task kunit_try_catch/146
[   16.958148] 
[   16.958225] CPU: 0 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   16.959052] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.959112] Hardware name: linux,dummy-virt (DT)
[   16.959177] Call trace:
[   16.959227]  show_stack+0x20/0x38 (C)
[   16.959407]  dump_stack_lvl+0x8c/0xd0
[   16.959543]  print_report+0x118/0x608
[   16.959645]  kasan_report+0xdc/0x128
[   16.959745]  __asan_report_store1_noabort+0x20/0x30
[   16.959855]  kmalloc_large_oob_right+0x278/0x2b8
[   16.959965]  kunit_try_run_case+0x170/0x3f0
[   16.960090]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.960228]  kthread+0x328/0x630
[   16.960333]  ret_from_fork+0x10/0x20
[   16.960436] 
[   16.960530] The buggy address belongs to the physical page:
[   16.960598] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065ac
[   16.960698] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   16.960803] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   16.960929] page_type: f8(unknown)
[   16.961009] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.961101] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.961455] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   16.961625] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   16.962133] head: 0bfffe0000000002 ffffc1ffc3196b01 00000000ffffffff 00000000ffffffff
[   16.962262] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   16.962425] page dumped because: kasan: bad access detected
[   16.962882] 
[   16.962931] Memory state around the buggy address:
[   16.963059]  fff00000c65adf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.963157]  fff00000c65adf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.963517] >fff00000c65ae000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.963838]                       ^
[   16.963911]  fff00000c65ae080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.963997]  fff00000c65ae100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   16.964424] ==================================================================


[   10.482621] ==================================================================
[   10.484212] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   10.485679] Write of size 1 at addr ffff88810294a00a by task kunit_try_catch/164
[   10.485931] 
[   10.486023] CPU: 1 UID: 0 PID: 164 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   10.486075] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.486086] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.486108] Call Trace:
[   10.486121]  <TASK>
[   10.486136]  dump_stack_lvl+0x73/0xb0
[   10.486165]  print_report+0xd1/0x650
[   10.486188]  ? __virt_addr_valid+0x1db/0x2d0
[   10.486209]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.486231]  ? kasan_addr_to_slab+0x11/0xa0
[   10.486251]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.486274]  kasan_report+0x141/0x180
[   10.486297]  ? kmalloc_large_oob_right+0x2e9/0x330
[   10.486324]  __asan_report_store1_noabort+0x1b/0x30
[   10.486345]  kmalloc_large_oob_right+0x2e9/0x330
[   10.486367]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   10.486675]  ? __schedule+0x10cc/0x2b60
[   10.486944]  ? __pfx_read_tsc+0x10/0x10
[   10.486974]  ? ktime_get_ts64+0x86/0x230
[   10.487027]  kunit_try_run_case+0x1a5/0x480
[   10.487050]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.487069]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.487094]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.487119]  ? __kthread_parkme+0x82/0x180
[   10.487139]  ? preempt_count_sub+0x50/0x80
[   10.487162]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.487183]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.487206]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.487230]  kthread+0x337/0x6f0
[   10.487249]  ? trace_preempt_on+0x20/0xc0
[   10.487271]  ? __pfx_kthread+0x10/0x10
[   10.487292]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.487314]  ? calculate_sigpending+0x7b/0xa0
[   10.487337]  ? __pfx_kthread+0x10/0x10
[   10.487358]  ret_from_fork+0x116/0x1d0
[   10.487386]  ? __pfx_kthread+0x10/0x10
[   10.487407]  ret_from_fork_asm+0x1a/0x30
[   10.487437]  </TASK>
[   10.487447] 
[   10.504986] The buggy address belongs to the physical page:
[   10.505402] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102948
[   10.505656] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   10.506294] flags: 0x200000000000040(head|node=0|zone=2)
[   10.506925] page_type: f8(unknown)
[   10.507454] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.508351] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.508886] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   10.509548] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   10.510530] head: 0200000000000002 ffffea00040a5201 00000000ffffffff 00000000ffffffff
[   10.510794] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   10.511856] page dumped because: kasan: bad access detected
[   10.512509] 
[   10.512589] Memory state around the buggy address:
[   10.512769]  ffff888102949f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.513651]  ffff888102949f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.514437] >ffff88810294a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.514866]                       ^
[   10.514992]  ffff88810294a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.515235]  ffff88810294a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   10.515466] ==================================================================