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

Environment
qemu-arm64
qemu-x86_64

[   15.025320] ==================================================================
[   15.025551] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8
[   15.025609] Write of size 1 at addr fff00000c60ee00a by task kunit_try_catch/146
[   15.025658] 
[   15.025698] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.025787] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.025879] Hardware name: linux,dummy-virt (DT)
[   15.025908] Call trace:
[   15.025976]  show_stack+0x20/0x38 (C)
[   15.026206]  dump_stack_lvl+0x8c/0xd0
[   15.026345]  print_report+0x118/0x5d0
[   15.026479]  kasan_report+0xdc/0x128
[   15.026525]  __asan_report_store1_noabort+0x20/0x30
[   15.026581]  kmalloc_large_oob_right+0x278/0x2b8
[   15.026717]  kunit_try_run_case+0x170/0x3f0
[   15.026763]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.026855]  kthread+0x328/0x630
[   15.026900]  ret_from_fork+0x10/0x20
[   15.026953] 
[   15.026988] The buggy address belongs to the physical page:
[   15.027247] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060ec
[   15.027337] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   15.027473] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   15.027532] page_type: f8(unknown)
[   15.027571] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   15.027629] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.027678] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   15.027808] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.027859] head: 0bfffe0000000002 ffffc1ffc3183b01 00000000ffffffff 00000000ffffffff
[   15.027919] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   15.028055] page dumped because: kasan: bad access detected
[   15.028100] 
[   15.028125] Memory state around the buggy address:
[   15.028233]  fff00000c60edf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.028274]  fff00000c60edf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.028314] >fff00000c60ee000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.028351]                       ^
[   15.028380]  fff00000c60ee080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.028422]  fff00000c60ee100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   15.028585] ==================================================================

[   11.500316] ==================================================================
[   11.500846] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330
[   11.501191] Write of size 1 at addr ffff888102a3600a by task kunit_try_catch/163
[   11.501555] 
[   11.501676] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   11.501720] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.501730] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.501751] Call Trace:
[   11.501762]  <TASK>
[   11.501776]  dump_stack_lvl+0x73/0xb0
[   11.501805]  print_report+0xd1/0x610
[   11.501827]  ? __virt_addr_valid+0x1db/0x2d0
[   11.501849]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.501869]  ? kasan_addr_to_slab+0x11/0xa0
[   11.501888]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.501910]  kasan_report+0x141/0x180
[   11.501930]  ? kmalloc_large_oob_right+0x2e9/0x330
[   11.501956]  __asan_report_store1_noabort+0x1b/0x30
[   11.501979]  kmalloc_large_oob_right+0x2e9/0x330
[   11.502000]  ? __pfx_kmalloc_large_oob_right+0x10/0x10
[   11.502034]  ? __schedule+0x10cc/0x2b60
[   11.502055]  ? __pfx_read_tsc+0x10/0x10
[   11.502075]  ? ktime_get_ts64+0x86/0x230
[   11.502099]  kunit_try_run_case+0x1a5/0x480
[   11.502123]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.502145]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.502168]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.502190]  ? __kthread_parkme+0x82/0x180
[   11.502209]  ? preempt_count_sub+0x50/0x80
[   11.502233]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.502256]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.502278]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.502300]  kthread+0x337/0x6f0
[   11.502318]  ? trace_preempt_on+0x20/0xc0
[   11.502341]  ? __pfx_kthread+0x10/0x10
[   11.502367]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.502387]  ? calculate_sigpending+0x7b/0xa0
[   11.502410]  ? __pfx_kthread+0x10/0x10
[   11.502430]  ret_from_fork+0x116/0x1d0
[   11.502448]  ? __pfx_kthread+0x10/0x10
[   11.502467]  ret_from_fork_asm+0x1a/0x30
[   11.502497]  </TASK>
[   11.502506] 
[   11.509702] The buggy address belongs to the physical page:
[   11.509920] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a34
[   11.510181] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   11.510517] flags: 0x200000000000040(head|node=0|zone=2)
[   11.510787] page_type: f8(unknown)
[   11.510961] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.511308] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   11.511866] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   11.512209] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   11.512640] head: 0200000000000002 ffffea00040a8d01 00000000ffffffff 00000000ffffffff
[   11.512934] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   11.513247] page dumped because: kasan: bad access detected
[   11.513569] 
[   11.513649] Memory state around the buggy address:
[   11.513851]  ffff888102a35f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.514156]  ffff888102a35f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.514513] >ffff888102a36000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.514788]                       ^
[   11.514948]  ffff888102a36080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.515243]  ffff888102a36100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
[   11.515616] ==================================================================