Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   18.478772] ==================================================================
[   18.478834] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   18.478894] Read of size 1 at addr fff00000c59e80c8 by task kunit_try_catch/209
[   18.478945] 
[   18.478981] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   18.479065] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.479092] Hardware name: linux,dummy-virt (DT)
[   18.479123] Call trace:
[   18.479147]  show_stack+0x20/0x38 (C)
[   18.479572]  dump_stack_lvl+0x8c/0xd0
[   18.479642]  print_report+0x118/0x5d0
[   18.479690]  kasan_report+0xdc/0x128
[   18.480248]  __asan_report_load1_noabort+0x20/0x30
[   18.480302]  kmem_cache_oob+0x344/0x430
[   18.480384]  kunit_try_run_case+0x170/0x3f0
[   18.480435]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.480491]  kthread+0x328/0x630
[   18.480563]  ret_from_fork+0x10/0x20
[   18.481739] 
[   18.481770] Allocated by task 209:
[   18.481802]  kasan_save_stack+0x3c/0x68
[   18.481848]  kasan_save_track+0x20/0x40
[   18.481886]  kasan_save_alloc_info+0x40/0x58
[   18.481926]  __kasan_slab_alloc+0xa8/0xb0
[   18.481963]  kmem_cache_alloc_noprof+0x10c/0x398
[   18.482002]  kmem_cache_oob+0x12c/0x430
[   18.482040]  kunit_try_run_case+0x170/0x3f0
[   18.482079]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   18.482126]  kthread+0x328/0x630
[   18.482160]  ret_from_fork+0x10/0x20
[   18.482196] 
[   18.482229] The buggy address belongs to the object at fff00000c59e8000
[   18.482229]  which belongs to the cache test_cache of size 200
[   18.482290] The buggy address is located 0 bytes to the right of
[   18.482290]  allocated 200-byte region [fff00000c59e8000, fff00000c59e80c8)
[   18.482369] 
[   18.482388] The buggy address belongs to the physical page:
[   18.482523] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059e8
[   18.482617] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   18.482744] page_type: f5(slab)
[   18.482834] raw: 0bfffe0000000000 fff00000c1c3a8c0 dead000000000122 0000000000000000
[   18.482922] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   18.483044] page dumped because: kasan: bad access detected
[   18.483124] 
[   18.483228] Memory state around the buggy address:
[   18.483328]  fff00000c59e7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.483461]  fff00000c59e8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   18.483536] >fff00000c59e8080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   18.483578]                                               ^
[   18.483845]  fff00000c59e8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.484000]  fff00000c59e8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   18.484102] ==================================================================

[   11.654339] ==================================================================
[   11.654842] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   11.655152] Read of size 1 at addr ffff8881022370c8 by task kunit_try_catch/226
[   11.655436] 
[   11.655545] CPU: 0 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   11.655588] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.655599] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.655617] Call Trace:
[   11.655629]  <TASK>
[   11.655684]  dump_stack_lvl+0x73/0xb0
[   11.655710]  print_report+0xd1/0x610
[   11.655733]  ? __virt_addr_valid+0x1db/0x2d0
[   11.655753]  ? kmem_cache_oob+0x402/0x530
[   11.655770]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.655791]  ? kmem_cache_oob+0x402/0x530
[   11.655809]  kasan_report+0x141/0x180
[   11.655831]  ? kmem_cache_oob+0x402/0x530
[   11.655854]  __asan_report_load1_noabort+0x18/0x20
[   11.655873]  kmem_cache_oob+0x402/0x530
[   11.655900]  ? trace_hardirqs_on+0x37/0xe0
[   11.655923]  ? __pfx_kmem_cache_oob+0x10/0x10
[   11.655941]  ? finish_task_switch.isra.0+0x153/0x700
[   11.655993]  ? __switch_to+0x5d9/0xf60
[   11.656036]  ? dequeue_task_fair+0x166/0x4e0
[   11.656063]  ? __pfx_read_tsc+0x10/0x10
[   11.656082]  ? ktime_get_ts64+0x86/0x230
[   11.656107]  kunit_try_run_case+0x1a5/0x480
[   11.656127]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.656146]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.656171]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.656193]  ? __kthread_parkme+0x82/0x180
[   11.656214]  ? preempt_count_sub+0x50/0x80
[   11.656237]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.656256]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.656279]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.656301]  kthread+0x337/0x6f0
[   11.656317]  ? trace_preempt_on+0x20/0xc0
[   11.656338]  ? __pfx_kthread+0x10/0x10
[   11.656354]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.656375]  ? calculate_sigpending+0x7b/0xa0
[   11.656396]  ? __pfx_kthread+0x10/0x10
[   11.656413]  ret_from_fork+0x41/0x80
[   11.656433]  ? __pfx_kthread+0x10/0x10
[   11.656449]  ret_from_fork_asm+0x1a/0x30
[   11.656478]  </TASK>
[   11.656488] 
[   11.666681] Allocated by task 226:
[   11.666915]  kasan_save_stack+0x45/0x70
[   11.667391]  kasan_save_track+0x18/0x40
[   11.667574]  kasan_save_alloc_info+0x3b/0x50
[   11.667939]  __kasan_slab_alloc+0x91/0xa0
[   11.668122]  kmem_cache_alloc_noprof+0x123/0x3f0
[   11.668319]  kmem_cache_oob+0x157/0x530
[   11.668508]  kunit_try_run_case+0x1a5/0x480
[   11.668694]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.669387]  kthread+0x337/0x6f0
[   11.669522]  ret_from_fork+0x41/0x80
[   11.669696]  ret_from_fork_asm+0x1a/0x30
[   11.669952] 
[   11.670066] The buggy address belongs to the object at ffff888102237000
[   11.670066]  which belongs to the cache test_cache of size 200
[   11.670503] The buggy address is located 0 bytes to the right of
[   11.670503]  allocated 200-byte region [ffff888102237000, ffff8881022370c8)
[   11.671537] 
[   11.671645] The buggy address belongs to the physical page:
[   11.671938] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102237
[   11.672545] flags: 0x200000000000000(node=0|zone=2)
[   11.672872] page_type: f5(slab)
[   11.673040] raw: 0200000000000000 ffff8881019493c0 dead000000000122 0000000000000000
[   11.673353] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   11.673649] page dumped because: kasan: bad access detected
[   11.674205] 
[   11.674298] Memory state around the buggy address:
[   11.674484]  ffff888102236f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.674816]  ffff888102237000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.675130] >ffff888102237080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   11.675413]                                               ^
[   11.675634]  ffff888102237100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.676095]  ffff888102237180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.676409] ==================================================================