Hay
Date
July 3, 2025, 11:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   19.615462] ==================================================================
[   19.615617] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   19.615866] Write of size 16 at addr fff00000c61914c0 by task kunit_try_catch/166
[   19.615968] 
[   19.616057] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   19.616210] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.616267] Hardware name: linux,dummy-virt (DT)
[   19.616333] Call trace:
[   19.616638]  show_stack+0x20/0x38 (C)
[   19.616779]  dump_stack_lvl+0x8c/0xd0
[   19.616895]  print_report+0x118/0x608
[   19.616994]  kasan_report+0xdc/0x128
[   19.617107]  __asan_report_store16_noabort+0x20/0x30
[   19.617548]  kmalloc_oob_16+0x3a0/0x3f8
[   19.617665]  kunit_try_run_case+0x170/0x3f0
[   19.617777]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.618510]  kthread+0x328/0x630
[   19.618938]  ret_from_fork+0x10/0x20
[   19.619071] 
[   19.619110] Allocated by task 166:
[   19.619168]  kasan_save_stack+0x3c/0x68
[   19.619426]  kasan_save_track+0x20/0x40
[   19.619516]  kasan_save_alloc_info+0x40/0x58
[   19.619598]  __kasan_kmalloc+0xd4/0xd8
[   19.619831]  __kmalloc_cache_noprof+0x16c/0x3c0
[   19.619946]  kmalloc_oob_16+0xb4/0x3f8
[   19.620039]  kunit_try_run_case+0x170/0x3f0
[   19.620307]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.620409]  kthread+0x328/0x630
[   19.620502]  ret_from_fork+0x10/0x20
[   19.620589] 
[   19.620635] The buggy address belongs to the object at fff00000c61914c0
[   19.620635]  which belongs to the cache kmalloc-16 of size 16
[   19.620758] The buggy address is located 0 bytes inside of
[   19.620758]  allocated 13-byte region [fff00000c61914c0, fff00000c61914cd)
[   19.620892] 
[   19.620998] The buggy address belongs to the physical page:
[   19.621080] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106191
[   19.621506] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   19.621618] page_type: f5(slab)
[   19.621969] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   19.622099] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   19.622240] page dumped because: kasan: bad access detected
[   19.622378] 
[   19.622419] Memory state around the buggy address:
[   19.622554]  fff00000c6191380: 00 05 fc fc fa fb fc fc 00 02 fc fc fa fb fc fc
[   19.622708]  fff00000c6191400: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   19.622798] >fff00000c6191480: 00 04 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc
[   19.622888]                                               ^
[   19.622967]  fff00000c6191500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.623462]  fff00000c6191580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.623563] ==================================================================

[   11.516049] ==================================================================
[   11.517032] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   11.517589] Write of size 16 at addr ffff8881019d1aa0 by task kunit_try_catch/183
[   11.518389] 
[   11.518600] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   11.518643] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.518655] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.518674] Call Trace:
[   11.518686]  <TASK>
[   11.518699]  dump_stack_lvl+0x73/0xb0
[   11.518726]  print_report+0xd1/0x650
[   11.518768]  ? __virt_addr_valid+0x1db/0x2d0
[   11.518790]  ? kmalloc_oob_16+0x452/0x4a0
[   11.518809]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.518830]  ? kmalloc_oob_16+0x452/0x4a0
[   11.518849]  kasan_report+0x141/0x180
[   11.518869]  ? kmalloc_oob_16+0x452/0x4a0
[   11.518894]  __asan_report_store16_noabort+0x1b/0x30
[   11.518913]  kmalloc_oob_16+0x452/0x4a0
[   11.518933]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   11.518953]  ? __schedule+0x10cc/0x2b60
[   11.518974]  ? __pfx_read_tsc+0x10/0x10
[   11.518993]  ? ktime_get_ts64+0x86/0x230
[   11.519018]  kunit_try_run_case+0x1a5/0x480
[   11.519041]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.519061]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.519083]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.519104]  ? __kthread_parkme+0x82/0x180
[   11.519133]  ? preempt_count_sub+0x50/0x80
[   11.519156]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.519187]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.519208]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.519229]  kthread+0x337/0x6f0
[   11.519259]  ? trace_preempt_on+0x20/0xc0
[   11.519282]  ? __pfx_kthread+0x10/0x10
[   11.519301]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.519320]  ? calculate_sigpending+0x7b/0xa0
[   11.519342]  ? __pfx_kthread+0x10/0x10
[   11.519362]  ret_from_fork+0x116/0x1d0
[   11.519379]  ? __pfx_kthread+0x10/0x10
[   11.519398]  ret_from_fork_asm+0x1a/0x30
[   11.519427]  </TASK>
[   11.519438] 
[   11.528406] Allocated by task 183:
[   11.528577]  kasan_save_stack+0x45/0x70
[   11.528766]  kasan_save_track+0x18/0x40
[   11.528942]  kasan_save_alloc_info+0x3b/0x50
[   11.529417]  __kasan_kmalloc+0xb7/0xc0
[   11.529632]  __kmalloc_cache_noprof+0x189/0x420
[   11.530032]  kmalloc_oob_16+0xa8/0x4a0
[   11.530392]  kunit_try_run_case+0x1a5/0x480
[   11.530737]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.530979]  kthread+0x337/0x6f0
[   11.531381]  ret_from_fork+0x116/0x1d0
[   11.531644]  ret_from_fork_asm+0x1a/0x30
[   11.531983] 
[   11.532078] The buggy address belongs to the object at ffff8881019d1aa0
[   11.532078]  which belongs to the cache kmalloc-16 of size 16
[   11.533047] The buggy address is located 0 bytes inside of
[   11.533047]  allocated 13-byte region [ffff8881019d1aa0, ffff8881019d1aad)
[   11.533851] 
[   11.533952] The buggy address belongs to the physical page:
[   11.534516] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1019d1
[   11.534938] flags: 0x200000000000000(node=0|zone=2)
[   11.535413] page_type: f5(slab)
[   11.535659] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   11.536266] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   11.536582] page dumped because: kasan: bad access detected
[   11.536813] 
[   11.536901] Memory state around the buggy address:
[   11.537106]  ffff8881019d1980: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc
[   11.537733]  ffff8881019d1a00: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   11.538272] >ffff8881019d1a80: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc
[   11.538710]                                   ^
[   11.538906]  ffff8881019d1b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.539491]  ffff8881019d1b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.539924] ==================================================================