Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   29.282882] ==================================================================
[   29.282950] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   29.283008] Write of size 16 at addr fff00000c592c880 by task kunit_try_catch/198
[   29.283071] 
[   29.283108] CPU: 0 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   29.283775] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.284026] Hardware name: linux,dummy-virt (DT)
[   29.284070] Call trace:
[   29.284093]  show_stack+0x20/0x38 (C)
[   29.284148]  dump_stack_lvl+0x8c/0xd0
[   29.284617]  print_report+0x118/0x5d0
[   29.284727]  kasan_report+0xdc/0x128
[   29.285017]  __asan_report_store16_noabort+0x20/0x30
[   29.285297]  kmalloc_oob_16+0x3a0/0x3f8
[   29.285544]  kunit_try_run_case+0x170/0x3f0
[   29.285773]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.285925]  kthread+0x328/0x630
[   29.285974]  ret_from_fork+0x10/0x20
[   29.286519] 
[   29.286540] Allocated by task 198:
[   29.286700]  kasan_save_stack+0x3c/0x68
[   29.286880]  kasan_save_track+0x20/0x40
[   29.286925]  kasan_save_alloc_info+0x40/0x58
[   29.286960]  __kasan_kmalloc+0xd4/0xd8
[   29.286996]  __kmalloc_cache_noprof+0x16c/0x3c0
[   29.287435]  kmalloc_oob_16+0xb4/0x3f8
[   29.287688]  kunit_try_run_case+0x170/0x3f0
[   29.287734]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.287786]  kthread+0x328/0x630
[   29.287818]  ret_from_fork+0x10/0x20
[   29.288019] 
[   29.288288] The buggy address belongs to the object at fff00000c592c880
[   29.288288]  which belongs to the cache kmalloc-16 of size 16
[   29.288349] The buggy address is located 0 bytes inside of
[   29.288349]  allocated 13-byte region [fff00000c592c880, fff00000c592c88d)
[   29.288409] 
[   29.288429] The buggy address belongs to the physical page:
[   29.288691] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10592c
[   29.288979] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.289207] page_type: f5(slab)
[   29.289250] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   29.290045] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   29.290104] page dumped because: kasan: bad access detected
[   29.290329] 
[   29.290399] Memory state around the buggy address:
[   29.290435]  fff00000c592c780: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   29.290478]  fff00000c592c800: fa fb fc fc fa fb fc fc 00 04 fc fc fa fb fc fc
[   29.291006] >fff00000c592c880: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   29.291271]                       ^
[   29.291435]  fff00000c592c900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.291756]  fff00000c592c980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.291863] ==================================================================

[   24.097203] ==================================================================
[   24.097644] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0
[   24.098200] Write of size 16 at addr ffff88810484f2e0 by task kunit_try_catch/216
[   24.098536] 
[   24.098623] CPU: 1 UID: 0 PID: 216 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   24.098772] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   24.098813] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.098834] Call Trace:
[   24.098848]  <TASK>
[   24.098869]  dump_stack_lvl+0x73/0xb0
[   24.098948]  print_report+0xd1/0x610
[   24.098973]  ? __virt_addr_valid+0x1db/0x2d0
[   24.099021]  ? kmalloc_oob_16+0x452/0x4a0
[   24.099042]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.099067]  ? kmalloc_oob_16+0x452/0x4a0
[   24.099088]  kasan_report+0x141/0x180
[   24.099109]  ? kmalloc_oob_16+0x452/0x4a0
[   24.099133]  __asan_report_store16_noabort+0x1b/0x30
[   24.099157]  kmalloc_oob_16+0x452/0x4a0
[   24.099177]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   24.099198]  ? __schedule+0x10cc/0x2b60
[   24.099221]  ? __pfx_read_tsc+0x10/0x10
[   24.099243]  ? ktime_get_ts64+0x86/0x230
[   24.099269]  kunit_try_run_case+0x1a5/0x480
[   24.099292]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.099311]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.099335]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.099358]  ? __kthread_parkme+0x82/0x180
[   24.099399]  ? preempt_count_sub+0x50/0x80
[   24.099422]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.099443]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.099468]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.099492]  kthread+0x337/0x6f0
[   24.099512]  ? trace_preempt_on+0x20/0xc0
[   24.099535]  ? __pfx_kthread+0x10/0x10
[   24.099574]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.099596]  ? calculate_sigpending+0x7b/0xa0
[   24.099620]  ? __pfx_kthread+0x10/0x10
[   24.099641]  ret_from_fork+0x116/0x1d0
[   24.099659]  ? __pfx_kthread+0x10/0x10
[   24.099679]  ret_from_fork_asm+0x1a/0x30
[   24.099722]  </TASK>
[   24.099734] 
[   24.107129] Allocated by task 216:
[   24.107255]  kasan_save_stack+0x45/0x70
[   24.107400]  kasan_save_track+0x18/0x40
[   24.107623]  kasan_save_alloc_info+0x3b/0x50
[   24.107841]  __kasan_kmalloc+0xb7/0xc0
[   24.108022]  __kmalloc_cache_noprof+0x189/0x420
[   24.108389]  kmalloc_oob_16+0xa8/0x4a0
[   24.108530]  kunit_try_run_case+0x1a5/0x480
[   24.108760]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.109202]  kthread+0x337/0x6f0
[   24.109392]  ret_from_fork+0x116/0x1d0
[   24.109528]  ret_from_fork_asm+0x1a/0x30
[   24.109752] 
[   24.109957] The buggy address belongs to the object at ffff88810484f2e0
[   24.109957]  which belongs to the cache kmalloc-16 of size 16
[   24.110457] The buggy address is located 0 bytes inside of
[   24.110457]  allocated 13-byte region [ffff88810484f2e0, ffff88810484f2ed)
[   24.111023] 
[   24.111142] The buggy address belongs to the physical page:
[   24.111341] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10484f
[   24.111568] flags: 0x200000000000000(node=0|zone=2)
[   24.111751] page_type: f5(slab)
[   24.112132] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122
[   24.112478] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   24.112923] page dumped because: kasan: bad access detected
[   24.113091] 
[   24.113152] Memory state around the buggy address:
[   24.113349]  ffff88810484f180: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.113682]  ffff88810484f200: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.113920] >ffff88810484f280: fa fb fc fc fa fb fc fc 00 00 fc fc 00 05 fc fc
[   24.114116]                                                           ^
[   24.114493]  ffff88810484f300: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   24.114815]  ffff88810484f380: fa fb fc fc fa fb fc fc 00 00 fc fc fa fb fc fc
[   24.115238] ==================================================================