Hay
Date
July 24, 2025, 4:41 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.446791] ==================================================================
[   32.446862] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   32.446922] Write of size 16 at addr fff00000c8683460 by task kunit_try_catch/197
[   32.447387] 
[   32.447447] CPU: 0 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250724 #1 PREEMPT 
[   32.447696] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.447744] Hardware name: linux,dummy-virt (DT)
[   32.447788] Call trace:
[   32.447812]  show_stack+0x20/0x38 (C)
[   32.447892]  dump_stack_lvl+0x8c/0xd0
[   32.447939]  print_report+0x118/0x5e8
[   32.447983]  kasan_report+0xdc/0x128
[   32.448648]  __asan_report_store16_noabort+0x20/0x30
[   32.448768]  kmalloc_oob_16+0x3a0/0x3f8
[   32.448896]  kunit_try_run_case+0x170/0x3f0
[   32.449182]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.449264]  kthread+0x328/0x630
[   32.449415]  ret_from_fork+0x10/0x20
[   32.449480] 
[   32.449499] Allocated by task 197:
[   32.449675]  kasan_save_stack+0x3c/0x68
[   32.449789]  kasan_save_track+0x20/0x40
[   32.449837]  kasan_save_alloc_info+0x40/0x58
[   32.449878]  __kasan_kmalloc+0xd4/0xd8
[   32.449919]  __kmalloc_cache_noprof+0x16c/0x3c0
[   32.449959]  kmalloc_oob_16+0xb4/0x3f8
[   32.450033]  kunit_try_run_case+0x170/0x3f0
[   32.450091]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.450137]  kthread+0x328/0x630
[   32.450180]  ret_from_fork+0x10/0x20
[   32.450236] 
[   32.450261] The buggy address belongs to the object at fff00000c8683460
[   32.450261]  which belongs to the cache kmalloc-16 of size 16
[   32.450342] The buggy address is located 0 bytes inside of
[   32.450342]  allocated 13-byte region [fff00000c8683460, fff00000c868346d)
[   32.450403] 
[   32.450432] The buggy address belongs to the physical page:
[   32.450471] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x108683
[   32.450525] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.450583] page_type: f5(slab)
[   32.450631] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   32.450688] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   32.450736] page dumped because: kasan: bad access detected
[   32.450785] 
[   32.450803] Memory state around the buggy address:
[   32.450855]  fff00000c8683300: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   32.450909]  fff00000c8683380: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   32.451189] >fff00000c8683400: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   32.451237]                                                           ^
[   32.451695]  fff00000c8683480: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.451754]  fff00000c8683500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.451977] ==================================================================

[   26.857365] ==================================================================
[   26.857821] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   26.858242] Write of size 16 at addr ffff8881046259a0 by task kunit_try_catch/214
[   26.858514] 
[   26.858635] CPU: 1 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) 
[   26.858687] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   26.858700] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.858721] Call Trace:
[   26.858735]  <TASK>
[   26.858755]  dump_stack_lvl+0x73/0xb0
[   26.858787]  print_report+0xd1/0x640
[   26.858811]  ? __virt_addr_valid+0x1db/0x2d0
[   26.858837]  ? kmalloc_oob_16+0x452/0x4a0
[   26.858857]  ? kasan_complete_mode_report_info+0x2a/0x200
[   26.858883]  ? kmalloc_oob_16+0x452/0x4a0
[   26.858904]  kasan_report+0x141/0x180
[   26.859030]  ? kmalloc_oob_16+0x452/0x4a0
[   26.859063]  __asan_report_store16_noabort+0x1b/0x30
[   26.859089]  kmalloc_oob_16+0x452/0x4a0
[   26.859110]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   26.859132]  ? __schedule+0x10da/0x2b60
[   26.859157]  ? __pfx_read_tsc+0x10/0x10
[   26.859190]  ? ktime_get_ts64+0x86/0x230
[   26.859216]  kunit_try_run_case+0x1a5/0x480
[   26.859242]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.859281]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.859306]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.859331]  ? __kthread_parkme+0x82/0x180
[   26.859352]  ? preempt_count_sub+0x50/0x80
[   26.859386]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.859409]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.859433]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.859466]  kthread+0x337/0x6f0
[   26.859486]  ? trace_preempt_on+0x20/0xc0
[   26.859511]  ? __pfx_kthread+0x10/0x10
[   26.859531]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.859554]  ? calculate_sigpending+0x7b/0xa0
[   26.859587]  ? __pfx_kthread+0x10/0x10
[   26.859608]  ret_from_fork+0x116/0x1d0
[   26.859627]  ? __pfx_kthread+0x10/0x10
[   26.859647]  ret_from_fork_asm+0x1a/0x30
[   26.859679]  </TASK>
[   26.859690] 
[   26.867366] Allocated by task 214:
[   26.867590]  kasan_save_stack+0x45/0x70
[   26.867745]  kasan_save_track+0x18/0x40
[   26.868146]  kasan_save_alloc_info+0x3b/0x50
[   26.868370]  __kasan_kmalloc+0xb7/0xc0
[   26.868549]  __kmalloc_cache_noprof+0x189/0x420
[   26.868766]  kmalloc_oob_16+0xa8/0x4a0
[   26.869025]  kunit_try_run_case+0x1a5/0x480
[   26.869233]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.869458]  kthread+0x337/0x6f0
[   26.869584]  ret_from_fork+0x116/0x1d0
[   26.869798]  ret_from_fork_asm+0x1a/0x30
[   26.870072] 
[   26.870163] The buggy address belongs to the object at ffff8881046259a0
[   26.870163]  which belongs to the cache kmalloc-16 of size 16
[   26.870590] The buggy address is located 0 bytes inside of
[   26.870590]  allocated 13-byte region [ffff8881046259a0, ffff8881046259ad)
[   26.871226] 
[   26.871305] The buggy address belongs to the physical page:
[   26.871480] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104625
[   26.871731] flags: 0x200000000000000(node=0|zone=2)
[   26.871913] page_type: f5(slab)
[   26.872078] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122
[   26.872597] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   26.872923] page dumped because: kasan: bad access detected
[   26.873164] 
[   26.873249] Memory state around the buggy address:
[   26.873557]  ffff888104625880: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   26.873777]  ffff888104625900: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   26.873984] >ffff888104625980: 00 00 fc fc 00 05 fc fc fa fb fc fc fa fb fc fc
[   26.874783]                                   ^
[   26.875181]  ffff888104625a00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   26.875425]  ffff888104625a80: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   26.875654] ==================================================================