Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.686722] ==================================================================
[   16.687151] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   16.687225] Write of size 16 at addr fff00000c61bc3e0 by task kunit_try_catch/166
[   16.687274] 
[   16.687313] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   16.687694] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.687780] Hardware name: linux,dummy-virt (DT)
[   16.687831] Call trace:
[   16.687854]  show_stack+0x20/0x38 (C)
[   16.687997]  dump_stack_lvl+0x8c/0xd0
[   16.688046]  print_report+0x118/0x608
[   16.688092]  kasan_report+0xdc/0x128
[   16.688198]  __asan_report_store16_noabort+0x20/0x30
[   16.688246]  kmalloc_oob_16+0x3a0/0x3f8
[   16.688290]  kunit_try_run_case+0x170/0x3f0
[   16.688557]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.688638]  kthread+0x328/0x630
[   16.688882]  ret_from_fork+0x10/0x20
[   16.688958] 
[   16.689015] Allocated by task 166:
[   16.689135]  kasan_save_stack+0x3c/0x68
[   16.689206]  kasan_save_track+0x20/0x40
[   16.689253]  kasan_save_alloc_info+0x40/0x58
[   16.689292]  __kasan_kmalloc+0xd4/0xd8
[   16.689326]  __kmalloc_cache_noprof+0x16c/0x3c0
[   16.689374]  kmalloc_oob_16+0xb4/0x3f8
[   16.689408]  kunit_try_run_case+0x170/0x3f0
[   16.689445]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.689807]  kthread+0x328/0x630
[   16.690552]  ret_from_fork+0x10/0x20
[   16.690676] 
[   16.690722] The buggy address belongs to the object at fff00000c61bc3e0
[   16.690722]  which belongs to the cache kmalloc-16 of size 16
[   16.690814] The buggy address is located 0 bytes inside of
[   16.690814]  allocated 13-byte region [fff00000c61bc3e0, fff00000c61bc3ed)
[   16.690884] 
[   16.690978] The buggy address belongs to the physical page:
[   16.691048] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061bc
[   16.691102] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.691164] page_type: f5(slab)
[   16.691263] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   16.691518] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   16.691709] page dumped because: kasan: bad access detected
[   16.691803] 
[   16.691822] Memory state around the buggy address:
[   16.691854]  fff00000c61bc280: 00 02 fc fc 00 05 fc fc fa fb fc fc 00 02 fc fc
[   16.691895]  fff00000c61bc300: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   16.691935] >fff00000c61bc380: fa fb fc fc 00 04 fc fc fa fb fc fc 00 05 fc fc
[   16.691993]                                                           ^
[   16.692031]  fff00000c61bc400: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.692092]  fff00000c61bc480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.692204] ==================================================================

[   12.560411] ==================================================================
[   12.560908] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   12.561974] Write of size 16 at addr ffff88810226cf80 by task kunit_try_catch/183
[   12.562901] 
[   12.563189] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   12.563250] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.563262] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.563304] Call Trace:
[   12.563317]  <TASK>
[   12.563334]  dump_stack_lvl+0x73/0xb0
[   12.563369]  print_report+0xd1/0x650
[   12.563412]  ? __virt_addr_valid+0x1db/0x2d0
[   12.563436]  ? kmalloc_oob_16+0x452/0x4a0
[   12.563457]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.563480]  ? kmalloc_oob_16+0x452/0x4a0
[   12.563501]  kasan_report+0x141/0x180
[   12.563524]  ? kmalloc_oob_16+0x452/0x4a0
[   12.563549]  __asan_report_store16_noabort+0x1b/0x30
[   12.563575]  kmalloc_oob_16+0x452/0x4a0
[   12.563596]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   12.563619]  ? __schedule+0x10cc/0x2b60
[   12.563641]  ? __pfx_read_tsc+0x10/0x10
[   12.563663]  ? ktime_get_ts64+0x86/0x230
[   12.563689]  kunit_try_run_case+0x1a5/0x480
[   12.563735]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.563759]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.563783]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.563818]  ? __kthread_parkme+0x82/0x180
[   12.563840]  ? preempt_count_sub+0x50/0x80
[   12.563864]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.563889]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.563914]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.563940]  kthread+0x337/0x6f0
[   12.563958]  ? trace_preempt_on+0x20/0xc0
[   12.563983]  ? __pfx_kthread+0x10/0x10
[   12.564004]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.564032]  ? calculate_sigpending+0x7b/0xa0
[   12.564056]  ? __pfx_kthread+0x10/0x10
[   12.564077]  ret_from_fork+0x116/0x1d0
[   12.564095]  ? __pfx_kthread+0x10/0x10
[   12.564116]  ret_from_fork_asm+0x1a/0x30
[   12.564147]  </TASK>
[   12.564157] 
[   12.574696] Allocated by task 183:
[   12.575105]  kasan_save_stack+0x45/0x70
[   12.575590]  kasan_save_track+0x18/0x40
[   12.575818]  kasan_save_alloc_info+0x3b/0x50
[   12.576116]  __kasan_kmalloc+0xb7/0xc0
[   12.576258]  __kmalloc_cache_noprof+0x189/0x420
[   12.576464]  kmalloc_oob_16+0xa8/0x4a0
[   12.576747]  kunit_try_run_case+0x1a5/0x480
[   12.576987]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.577353]  kthread+0x337/0x6f0
[   12.577501]  ret_from_fork+0x116/0x1d0
[   12.577720]  ret_from_fork_asm+0x1a/0x30
[   12.577949] 
[   12.578221] The buggy address belongs to the object at ffff88810226cf80
[   12.578221]  which belongs to the cache kmalloc-16 of size 16
[   12.578792] The buggy address is located 0 bytes inside of
[   12.578792]  allocated 13-byte region [ffff88810226cf80, ffff88810226cf8d)
[   12.579487] 
[   12.579600] The buggy address belongs to the physical page:
[   12.579885] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10226c
[   12.580311] flags: 0x200000000000000(node=0|zone=2)
[   12.580579] page_type: f5(slab)
[   12.580798] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   12.581194] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   12.581743] page dumped because: kasan: bad access detected
[   12.582170] 
[   12.582275] Memory state around the buggy address:
[   12.582472]  ffff88810226ce80: fa fb fc fc 00 04 fc fc 00 00 fc fc 00 04 fc fc
[   12.582826]  ffff88810226cf00: 00 04 fc fc 00 00 fc fc fa fb fc fc fa fb fc fc
[   12.583168] >ffff88810226cf80: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   12.583448]                       ^
[   12.583815]  ffff88810226d000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   12.584213]  ffff88810226d080: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb
[   12.584607] ==================================================================