Hay
Date
June 25, 2025, 8:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   26.574693] ==================================================================
[   26.574769] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   26.574836] Write of size 16 at addr fff00000c3f9daa0 by task kunit_try_catch/178
[   26.574886] 
[   26.574936] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT 
[   26.575021] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.575046] Hardware name: linux,dummy-virt (DT)
[   26.575078] Call trace:
[   26.575101]  show_stack+0x20/0x38 (C)
[   26.575163]  dump_stack_lvl+0x8c/0xd0
[   26.575221]  print_report+0x118/0x608
[   26.575268]  kasan_report+0xdc/0x128
[   26.575326]  __asan_report_store16_noabort+0x20/0x30
[   26.575374]  kmalloc_oob_16+0x3a0/0x3f8
[   26.575439]  kunit_try_run_case+0x170/0x3f0
[   26.575488]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.575539]  kthread+0x328/0x630
[   26.575579]  ret_from_fork+0x10/0x20
[   26.575626] 
[   26.575651] Allocated by task 178:
[   26.575680]  kasan_save_stack+0x3c/0x68
[   26.575718]  kasan_save_track+0x20/0x40
[   26.575754]  kasan_save_alloc_info+0x40/0x58
[   26.575788]  __kasan_kmalloc+0xd4/0xd8
[   26.575831]  __kmalloc_cache_noprof+0x16c/0x3c0
[   26.576637]  kmalloc_oob_16+0xb4/0x3f8
[   26.576788]  kunit_try_run_case+0x170/0x3f0
[   26.576937]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.577085]  kthread+0x328/0x630
[   26.577118]  ret_from_fork+0x10/0x20
[   26.577332] 
[   26.577494] The buggy address belongs to the object at fff00000c3f9daa0
[   26.577494]  which belongs to the cache kmalloc-16 of size 16
[   26.577625] The buggy address is located 0 bytes inside of
[   26.577625]  allocated 13-byte region [fff00000c3f9daa0, fff00000c3f9daad)
[   26.577787] 
[   26.577997] The buggy address belongs to the physical page:
[   26.578105] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f9d
[   26.578546] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   26.578668] page_type: f5(slab)
[   26.578753] raw: 0bfffe0000000000 fff00000c0001640 dead000000000100 dead000000000122
[   26.578856] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   26.578996] page dumped because: kasan: bad access detected
[   26.579064] 
[   26.579082] Memory state around the buggy address:
[   26.579285]  fff00000c3f9d980: fa fb fc fc fa fb fc fc 00 00 fc fc fa fb fc fc
[   26.579591]  fff00000c3f9da00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   26.579727] >fff00000c3f9da80: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc
[   26.579971]                                   ^
[   26.580044]  fff00000c3f9db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.580085]  fff00000c3f9db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.580130] ==================================================================

[   21.825356] ==================================================================
[   21.825955] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   21.826174] Write of size 16 at addr ffff8881016c5460 by task kunit_try_catch/195
[   21.826391] 
[   21.826475] CPU: 0 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) 
[   21.826520] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.826532] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.826552] Call Trace:
[   21.826565]  <TASK>
[   21.826581]  dump_stack_lvl+0x73/0xb0
[   21.826607]  print_report+0xd1/0x650
[   21.826626]  ? __virt_addr_valid+0x1db/0x2d0
[   21.826649]  ? kmalloc_oob_16+0x452/0x4a0
[   21.826667]  ? kasan_complete_mode_report_info+0x2a/0x200
[   21.826690]  ? kmalloc_oob_16+0x452/0x4a0
[   21.826709]  kasan_report+0x141/0x180
[   21.826728]  ? kmalloc_oob_16+0x452/0x4a0
[   21.826751]  __asan_report_store16_noabort+0x1b/0x30
[   21.826773]  kmalloc_oob_16+0x452/0x4a0
[   21.826792]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   21.826811]  ? __schedule+0x10cc/0x2b60
[   21.826834]  ? __pfx_read_tsc+0x10/0x10
[   21.826855]  ? ktime_get_ts64+0x86/0x230
[   21.826879]  kunit_try_run_case+0x1a5/0x480
[   21.826903]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.826924]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   21.827288]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   21.827321]  ? __kthread_parkme+0x82/0x180
[   21.827342]  ? preempt_count_sub+0x50/0x80
[   21.827364]  ? __pfx_kunit_try_run_case+0x10/0x10
[   21.827387]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.827583]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   21.827615]  kthread+0x337/0x6f0
[   21.827635]  ? trace_preempt_on+0x20/0xc0
[   21.827659]  ? __pfx_kthread+0x10/0x10
[   21.827678]  ? _raw_spin_unlock_irq+0x47/0x80
[   21.827700]  ? calculate_sigpending+0x7b/0xa0
[   21.827722]  ? __pfx_kthread+0x10/0x10
[   21.827741]  ret_from_fork+0x116/0x1d0
[   21.827759]  ? __pfx_kthread+0x10/0x10
[   21.827778]  ret_from_fork_asm+0x1a/0x30
[   21.827830]  </TASK>
[   21.827841] 
[   21.844423] Allocated by task 195:
[   21.844902]  kasan_save_stack+0x45/0x70
[   21.845589]  kasan_save_track+0x18/0x40
[   21.845999]  kasan_save_alloc_info+0x3b/0x50
[   21.846559]  __kasan_kmalloc+0xb7/0xc0
[   21.847131]  __kmalloc_cache_noprof+0x189/0x420
[   21.847474]  kmalloc_oob_16+0xa8/0x4a0
[   21.847611]  kunit_try_run_case+0x1a5/0x480
[   21.847753]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.847928]  kthread+0x337/0x6f0
[   21.848098]  ret_from_fork+0x116/0x1d0
[   21.848278]  ret_from_fork_asm+0x1a/0x30
[   21.848491] 
[   21.848643] The buggy address belongs to the object at ffff8881016c5460
[   21.848643]  which belongs to the cache kmalloc-16 of size 16
[   21.849496] The buggy address is located 0 bytes inside of
[   21.849496]  allocated 13-byte region [ffff8881016c5460, ffff8881016c546d)
[   21.850505] 
[   21.850689] The buggy address belongs to the physical page:
[   21.851281] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1016c5
[   21.852022] flags: 0x200000000000000(node=0|zone=2)
[   21.852186] page_type: f5(slab)
[   21.852302] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   21.852529] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   21.852748] page dumped because: kasan: bad access detected
[   21.852917] 
[   21.852993] Memory state around the buggy address:
[   21.853198]  ffff8881016c5300: 00 06 fc fc 00 06 fc fc fa fb fc fc fa fb fc fc
[   21.853431]  ffff8881016c5380: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   21.853702] >ffff8881016c5400: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   21.854038]                                                           ^
[   21.854402]  ffff8881016c5480: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.854649]  ffff8881016c5500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.854946] ==================================================================