Hay
Date
July 18, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   15.348542] ==================================================================
[   15.348878] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   15.349144] Write of size 16 at addr fff00000c3ef7d80 by task kunit_try_catch/166
[   15.349215] 
[   15.349587] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.349981] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.350034] Hardware name: linux,dummy-virt (DT)
[   15.350135] Call trace:
[   15.350198]  show_stack+0x20/0x38 (C)
[   15.350615]  dump_stack_lvl+0x8c/0xd0
[   15.350902]  print_report+0x118/0x5d0
[   15.350998]  kasan_report+0xdc/0x128
[   15.351151]  __asan_report_store16_noabort+0x20/0x30
[   15.351300]  kmalloc_oob_16+0x3a0/0x3f8
[   15.351431]  kunit_try_run_case+0x170/0x3f0
[   15.351624]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.351935]  kthread+0x328/0x630
[   15.352152]  ret_from_fork+0x10/0x20
[   15.352349] 
[   15.352439] Allocated by task 166:
[   15.352542]  kasan_save_stack+0x3c/0x68
[   15.352641]  kasan_save_track+0x20/0x40
[   15.352780]  kasan_save_alloc_info+0x40/0x58
[   15.352821]  __kasan_kmalloc+0xd4/0xd8
[   15.353026]  __kmalloc_cache_noprof+0x16c/0x3c0
[   15.353244]  kmalloc_oob_16+0xb4/0x3f8
[   15.353378]  kunit_try_run_case+0x170/0x3f0
[   15.353438]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.353810]  kthread+0x328/0x630
[   15.353929]  ret_from_fork+0x10/0x20
[   15.354035] 
[   15.354138] The buggy address belongs to the object at fff00000c3ef7d80
[   15.354138]  which belongs to the cache kmalloc-16 of size 16
[   15.354410] The buggy address is located 0 bytes inside of
[   15.354410]  allocated 13-byte region [fff00000c3ef7d80, fff00000c3ef7d8d)
[   15.354732] 
[   15.354825] The buggy address belongs to the physical page:
[   15.355047] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ef7
[   15.355145] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.355511] page_type: f5(slab)
[   15.355566] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   15.356087] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   15.356178] page dumped because: kasan: bad access detected
[   15.356378] 
[   15.356530] Memory state around the buggy address:
[   15.356587]  fff00000c3ef7c80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   15.356939]  fff00000c3ef7d00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   15.357004] >fff00000c3ef7d80: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   15.357129]                       ^
[   15.357204]  fff00000c3ef7e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.357500]  fff00000c3ef7e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.357619] ==================================================================

[   12.163561] ==================================================================
[   12.165142] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   12.166410] Write of size 16 at addr ffff88810216cb00 by task kunit_try_catch/185
[   12.167365] 
[   12.167489] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.167537] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.167548] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.167568] Call Trace:
[   12.167580]  <TASK>
[   12.167596]  dump_stack_lvl+0x73/0xb0
[   12.167626]  print_report+0xd1/0x610
[   12.167648]  ? __virt_addr_valid+0x1db/0x2d0
[   12.167672]  ? kmalloc_oob_16+0x452/0x4a0
[   12.167692]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.167715]  ? kmalloc_oob_16+0x452/0x4a0
[   12.167735]  kasan_report+0x141/0x180
[   12.167757]  ? kmalloc_oob_16+0x452/0x4a0
[   12.167781]  __asan_report_store16_noabort+0x1b/0x30
[   12.167806]  kmalloc_oob_16+0x452/0x4a0
[   12.167827]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   12.167848]  ? __schedule+0x10cc/0x2b60
[   12.167870]  ? __pfx_read_tsc+0x10/0x10
[   12.167890]  ? ktime_get_ts64+0x86/0x230
[   12.167914]  kunit_try_run_case+0x1a5/0x480
[   12.167938]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.167960]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.167984]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.168007]  ? __kthread_parkme+0x82/0x180
[   12.168027]  ? preempt_count_sub+0x50/0x80
[   12.168051]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.168075]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.168099]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.168122]  kthread+0x337/0x6f0
[   12.168141]  ? trace_preempt_on+0x20/0xc0
[   12.168164]  ? __pfx_kthread+0x10/0x10
[   12.168184]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.168204]  ? calculate_sigpending+0x7b/0xa0
[   12.168229]  ? __pfx_kthread+0x10/0x10
[   12.168261]  ret_from_fork+0x116/0x1d0
[   12.168289]  ? __pfx_kthread+0x10/0x10
[   12.168308]  ret_from_fork_asm+0x1a/0x30
[   12.168339]  </TASK>
[   12.168349] 
[   12.175384] Allocated by task 185:
[   12.175611]  kasan_save_stack+0x45/0x70
[   12.175774]  kasan_save_track+0x18/0x40
[   12.175957]  kasan_save_alloc_info+0x3b/0x50
[   12.176152]  __kasan_kmalloc+0xb7/0xc0
[   12.176379]  __kmalloc_cache_noprof+0x189/0x420
[   12.176572]  kmalloc_oob_16+0xa8/0x4a0
[   12.176868]  kunit_try_run_case+0x1a5/0x480
[   12.177179]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.177383]  kthread+0x337/0x6f0
[   12.177664]  ret_from_fork+0x116/0x1d0
[   12.177825]  ret_from_fork_asm+0x1a/0x30
[   12.178007] 
[   12.178103] The buggy address belongs to the object at ffff88810216cb00
[   12.178103]  which belongs to the cache kmalloc-16 of size 16
[   12.178630] The buggy address is located 0 bytes inside of
[   12.178630]  allocated 13-byte region [ffff88810216cb00, ffff88810216cb0d)
[   12.179012] 
[   12.179118] The buggy address belongs to the physical page:
[   12.179384] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10216c
[   12.179756] flags: 0x200000000000000(node=0|zone=2)
[   12.179922] page_type: f5(slab)
[   12.180042] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   12.180283] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   12.180612] page dumped because: kasan: bad access detected
[   12.180857] 
[   12.180952] Memory state around the buggy address:
[   12.181247]  ffff88810216ca00: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc
[   12.181576]  ffff88810216ca80: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc
[   12.182008] >ffff88810216cb00: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   12.182347]                       ^
[   12.182548]  ffff88810216cb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.182826]  ffff88810216cc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.183207] ==================================================================