Hay
Date
July 16, 2025, 12:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   30.372813] ==================================================================
[   30.372878] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   30.372953] Write of size 1 at addr fff00000c9a0a00a by task kunit_try_catch/177
[   30.373002] 
[   30.373032] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   30.373121] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.373147] Hardware name: linux,dummy-virt (DT)
[   30.373177] Call trace:
[   30.373198]  show_stack+0x20/0x38 (C)
[   30.373243]  dump_stack_lvl+0x8c/0xd0
[   30.373289]  print_report+0x118/0x5d0
[   30.373361]  kasan_report+0xdc/0x128
[   30.373402]  __asan_report_store1_noabort+0x20/0x30
[   30.373449]  kmalloc_large_oob_right+0x278/0x2b8
[   30.373497]  kunit_try_run_case+0x170/0x3f0
[   30.373554]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.373621]  kthread+0x328/0x630
[   30.373679]  ret_from_fork+0x10/0x20
[   30.373725] 
[   30.373790] The buggy address belongs to the physical page:
[   30.373857] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a08
[   30.373909] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   30.373981] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   30.374075] page_type: f8(unknown)
[   30.374171] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   30.374226] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   30.374280] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   30.374328] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   30.374419] head: 0bfffe0000000002 ffffc1ffc3268201 00000000ffffffff 00000000ffffffff
[   30.374484] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   30.374595] page dumped because: kasan: bad access detected
[   30.374645] 
[   30.374671] Memory state around the buggy address:
[   30.374704]  fff00000c9a09f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.374747]  fff00000c9a09f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   30.374887] >fff00000c9a0a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   30.374947]                       ^
[   30.375030]  fff00000c9a0a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   30.375126]  fff00000c9a0a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   30.375163] ==================================================================

[   22.763455] ==================================================================
[   22.764481] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   22.765124] Write of size 1 at addr ffff8881050ee00a by task kunit_try_catch/195
[   22.765448] 
[   22.765533] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   22.765662] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.765674] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.765936] Call Trace:
[   22.765951]  <TASK>
[   22.765967]  dump_stack_lvl+0x73/0xb0
[   22.765999]  print_report+0xd1/0x610
[   22.766020]  ? __virt_addr_valid+0x1db/0x2d0
[   22.766042]  ? kmalloc_large_oob_right+0x2e9/0x330
[   22.766063]  ? kasan_addr_to_slab+0x11/0xa0
[   22.766082]  ? kmalloc_large_oob_right+0x2e9/0x330
[   22.766104]  kasan_report+0x141/0x180
[   22.766125]  ? kmalloc_large_oob_right+0x2e9/0x330
[   22.766151]  __asan_report_store1_noabort+0x1b/0x30
[   22.766174]  kmalloc_large_oob_right+0x2e9/0x330
[   22.766196]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   22.766218]  ? __schedule+0x10c6/0x2b60
[   22.766239]  ? __pfx_read_tsc+0x10/0x10
[   22.766275]  ? ktime_get_ts64+0x86/0x230
[   22.766300]  kunit_try_run_case+0x1a5/0x480
[   22.766322]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.766344]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   22.766365]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   22.766387]  ? __kthread_parkme+0x82/0x180
[   22.766407]  ? preempt_count_sub+0x50/0x80
[   22.766429]  ? __pfx_kunit_try_run_case+0x10/0x10
[   22.766453]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.766480]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   22.766505]  kthread+0x337/0x6f0
[   22.766524]  ? trace_preempt_on+0x20/0xc0
[   22.766734]  ? __pfx_kthread+0x10/0x10
[   22.766757]  ? _raw_spin_unlock_irq+0x47/0x80
[   22.766777]  ? calculate_sigpending+0x7b/0xa0
[   22.766801]  ? __pfx_kthread+0x10/0x10
[   22.766822]  ret_from_fork+0x116/0x1d0
[   22.766841]  ? __pfx_kthread+0x10/0x10
[   22.766861]  ret_from_fork_asm+0x1a/0x30
[   22.766946]  </TASK>
[   22.766956] 
[   22.778304] The buggy address belongs to the physical page:
[   22.778556] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1050ec
[   22.779225] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   22.779750] flags: 0x200000000000040(head|node=0|zone=2)
[   22.780166] page_type: f8(unknown)
[   22.780418] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   22.780657] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   22.780877] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   22.781096] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000
[   22.781346] head: 0200000000000002 ffffea0004143b01 00000000ffffffff 00000000ffffffff
[   22.781688] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   22.782192] page dumped because: kasan: bad access detected
[   22.782633] 
[   22.782795] Memory state around the buggy address:
[   22.783220]  ffff8881050edf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.783447]  ffff8881050edf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.784029] >ffff8881050ee000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   22.784673]                       ^
[   22.785098]  ffff8881050ee080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   22.785464]  ffff8881050ee100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   22.786103] ==================================================================