Hay
Date
July 23, 2025, 3:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   30.074599] ==================================================================
[   30.074647] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488
[   30.075257] Write of size 1 at addr fff00000c99bc878 by task kunit_try_catch/175
[   30.075428] 
[   30.075502] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   30.075667] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.075693] Hardware name: linux,dummy-virt (DT)
[   30.075729] Call trace:
[   30.075830]  show_stack+0x20/0x38 (C)
[   30.075886]  dump_stack_lvl+0x8c/0xd0
[   30.076251]  print_report+0x118/0x5e8
[   30.076538]  kasan_report+0xdc/0x128
[   30.076621]  __asan_report_store1_noabort+0x20/0x30
[   30.076716]  kmalloc_track_caller_oob_right+0x418/0x488
[   30.076923]  kunit_try_run_case+0x170/0x3f0
[   30.077250]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.077314]  kthread+0x328/0x630
[   30.077361]  ret_from_fork+0x10/0x20
[   30.077407] 
[   30.077640] Allocated by task 175:
[   30.077818]  kasan_save_stack+0x3c/0x68
[   30.077864]  kasan_save_track+0x20/0x40
[   30.077910]  kasan_save_alloc_info+0x40/0x58
[   30.077946]  __kasan_kmalloc+0xd4/0xd8
[   30.077988]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   30.078029]  kmalloc_track_caller_oob_right+0x184/0x488
[   30.078324]  kunit_try_run_case+0x170/0x3f0
[   30.078748]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.078851]  kthread+0x328/0x630
[   30.078883]  ret_from_fork+0x10/0x20
[   30.078927] 
[   30.078946] The buggy address belongs to the object at fff00000c99bc800
[   30.078946]  which belongs to the cache kmalloc-128 of size 128
[   30.079400] The buggy address is located 0 bytes to the right of
[   30.079400]  allocated 120-byte region [fff00000c99bc800, fff00000c99bc878)
[   30.079828] 
[   30.079875] The buggy address belongs to the physical page:
[   30.079918] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099bc
[   30.079971] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.080183] page_type: f5(slab)
[   30.080393] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.080445] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.080483] page dumped because: kasan: bad access detected
[   30.080512] 
[   30.080557] Memory state around the buggy address:
[   30.080587]  fff00000c99bc700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.080779]  fff00000c99bc780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.080970] >fff00000c99bc800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.081007]                                                                 ^
[   30.081048]  fff00000c99bc880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.081265]  fff00000c99bc900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.081306] ==================================================================
[   30.067980] ==================================================================
[   30.068041] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488
[   30.068108] Write of size 1 at addr fff00000c99bc778 by task kunit_try_catch/175
[   30.068415] 
[   30.068461] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   30.068644] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.068727] Hardware name: linux,dummy-virt (DT)
[   30.068802] Call trace:
[   30.068911]  show_stack+0x20/0x38 (C)
[   30.069009]  dump_stack_lvl+0x8c/0xd0
[   30.069129]  print_report+0x118/0x5e8
[   30.069195]  kasan_report+0xdc/0x128
[   30.069238]  __asan_report_store1_noabort+0x20/0x30
[   30.069286]  kmalloc_track_caller_oob_right+0x40c/0x488
[   30.069363]  kunit_try_run_case+0x170/0x3f0
[   30.069409]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.069737]  kthread+0x328/0x630
[   30.069791]  ret_from_fork+0x10/0x20
[   30.069861] 
[   30.069879] Allocated by task 175:
[   30.069917]  kasan_save_stack+0x3c/0x68
[   30.069966]  kasan_save_track+0x20/0x40
[   30.070010]  kasan_save_alloc_info+0x40/0x58
[   30.070056]  __kasan_kmalloc+0xd4/0xd8
[   30.070089]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   30.070130]  kmalloc_track_caller_oob_right+0xa8/0x488
[   30.070180]  kunit_try_run_case+0x170/0x3f0
[   30.070218]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.070299]  kthread+0x328/0x630
[   30.070422]  ret_from_fork+0x10/0x20
[   30.070456] 
[   30.070474] The buggy address belongs to the object at fff00000c99bc700
[   30.070474]  which belongs to the cache kmalloc-128 of size 128
[   30.070616] The buggy address is located 0 bytes to the right of
[   30.070616]  allocated 120-byte region [fff00000c99bc700, fff00000c99bc778)
[   30.070678] 
[   30.070697] The buggy address belongs to the physical page:
[   30.070738] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099bc
[   30.071361] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   30.071419] page_type: f5(slab)
[   30.071458] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000
[   30.071640] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   30.072392] page dumped because: kasan: bad access detected
[   30.072654] 
[   30.072683] Memory state around the buggy address:
[   30.072716]  fff00000c99bc600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   30.072758]  fff00000c99bc680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.072799] >fff00000c99bc700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   30.072838]                                                                 ^
[   30.072933]  fff00000c99bc780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.073104]  fff00000c99bc800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   30.073341] ==================================================================

[   24.494307] ==================================================================
[   24.494812] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520
[   24.495464] Write of size 1 at addr ffff888104657978 by task kunit_try_catch/191
[   24.496066] 
[   24.496178] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   24.496450] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.496466] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.496488] Call Trace:
[   24.496502]  <TASK>
[   24.496521]  dump_stack_lvl+0x73/0xb0
[   24.496555]  print_report+0xd1/0x640
[   24.496665]  ? __virt_addr_valid+0x1db/0x2d0
[   24.496691]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   24.496715]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.496741]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   24.496765]  kasan_report+0x141/0x180
[   24.496787]  ? kmalloc_track_caller_oob_right+0x4c8/0x520
[   24.496815]  __asan_report_store1_noabort+0x1b/0x30
[   24.496840]  kmalloc_track_caller_oob_right+0x4c8/0x520
[   24.496864]  ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10
[   24.496890]  ? __schedule+0x10da/0x2b60
[   24.496915]  ? __pfx_read_tsc+0x10/0x10
[   24.496948]  ? ktime_get_ts64+0x86/0x230
[   24.496977]  kunit_try_run_case+0x1a5/0x480
[   24.497005]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.497027]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.497052]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.497077]  ? __kthread_parkme+0x82/0x180
[   24.497097]  ? preempt_count_sub+0x50/0x80
[   24.497120]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.497144]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.497176]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.497200]  kthread+0x337/0x6f0
[   24.497220]  ? trace_preempt_on+0x20/0xc0
[   24.497244]  ? __pfx_kthread+0x10/0x10
[   24.497265]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.497288]  ? calculate_sigpending+0x7b/0xa0
[   24.497312]  ? __pfx_kthread+0x10/0x10
[   24.497333]  ret_from_fork+0x116/0x1d0
[   24.497352]  ? __pfx_kthread+0x10/0x10
[   24.497445]  ret_from_fork_asm+0x1a/0x30
[   24.497481]  </TASK>
[   24.497493] 
[   24.508157] Allocated by task 191:
[   24.508383]  kasan_save_stack+0x45/0x70
[   24.508821]  kasan_save_track+0x18/0x40
[   24.509002]  kasan_save_alloc_info+0x3b/0x50
[   24.509359]  __kasan_kmalloc+0xb7/0xc0
[   24.509747]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   24.510008]  kmalloc_track_caller_oob_right+0x99/0x520
[   24.510542]  kunit_try_run_case+0x1a5/0x480
[   24.510710]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.510962]  kthread+0x337/0x6f0
[   24.511403]  ret_from_fork+0x116/0x1d0
[   24.511678]  ret_from_fork_asm+0x1a/0x30
[   24.512051] 
[   24.512160] The buggy address belongs to the object at ffff888104657900
[   24.512160]  which belongs to the cache kmalloc-128 of size 128
[   24.512802] The buggy address is located 0 bytes to the right of
[   24.512802]  allocated 120-byte region [ffff888104657900, ffff888104657978)
[   24.513867] 
[   24.513955] The buggy address belongs to the physical page:
[   24.514188] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104657
[   24.514838] flags: 0x200000000000000(node=0|zone=2)
[   24.515157] page_type: f5(slab)
[   24.515323] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000
[   24.515873] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
[   24.516300] page dumped because: kasan: bad access detected
[   24.516700] 
[   24.516789] Memory state around the buggy address:
[   24.516973]  ffff888104657800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.517949]  ffff888104657880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.518317] >ffff888104657900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
[   24.518984]                                                                 ^
[   24.519393]  ffff888104657980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.519741]  ffff888104657a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.520274] ==================================================================