Hay
Date
July 3, 2025, 3:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.057789] ==================================================================
[   16.058339] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   16.058408] Read of size 1 at addr fff00000c78a70c8 by task kunit_try_catch/210
[   16.058489] 
[   16.058538] CPU: 1 UID: 0 PID: 210 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   16.058623] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.058650] Hardware name: linux,dummy-virt (DT)
[   16.058684] Call trace:
[   16.058710]  show_stack+0x20/0x38 (C)
[   16.058763]  dump_stack_lvl+0x8c/0xd0
[   16.058860]  print_report+0x118/0x608
[   16.058906]  kasan_report+0xdc/0x128
[   16.059020]  __asan_report_load1_noabort+0x20/0x30
[   16.059070]  kmem_cache_oob+0x344/0x430
[   16.059118]  kunit_try_run_case+0x170/0x3f0
[   16.059167]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.059220]  kthread+0x328/0x630
[   16.059290]  ret_from_fork+0x10/0x20
[   16.059336] 
[   16.059354] Allocated by task 210:
[   16.059383]  kasan_save_stack+0x3c/0x68
[   16.059423]  kasan_save_track+0x20/0x40
[   16.059458]  kasan_save_alloc_info+0x40/0x58
[   16.059495]  __kasan_slab_alloc+0xa8/0xb0
[   16.059529]  kmem_cache_alloc_noprof+0x10c/0x398
[   16.059570]  kmem_cache_oob+0x12c/0x430
[   16.059606]  kunit_try_run_case+0x170/0x3f0
[   16.059644]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.059814]  kthread+0x328/0x630
[   16.059868]  ret_from_fork+0x10/0x20
[   16.059966] 
[   16.060028] The buggy address belongs to the object at fff00000c78a7000
[   16.060028]  which belongs to the cache test_cache of size 200
[   16.060095] The buggy address is located 0 bytes to the right of
[   16.060095]  allocated 200-byte region [fff00000c78a7000, fff00000c78a70c8)
[   16.060163] 
[   16.060518] The buggy address belongs to the physical page:
[   16.060658] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078a7
[   16.060768] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.060842] page_type: f5(slab)
[   16.060883] raw: 0bfffe0000000000 fff00000c114bdc0 dead000000000122 0000000000000000
[   16.060933] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   16.060981] page dumped because: kasan: bad access detected
[   16.061012] 
[   16.061029] Memory state around the buggy address:
[   16.061061]  fff00000c78a6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.061105]  fff00000c78a7000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.061165] >fff00000c78a7080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   16.061204]                                               ^
[   16.061239]  fff00000c78a7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.061281]  fff00000c78a7180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.061319] ==================================================================

[   11.802842] ==================================================================
[   11.803324] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   11.803852] Read of size 1 at addr ffff888102dd70c8 by task kunit_try_catch/226
[   11.804406] 
[   11.804531] CPU: 1 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   11.804578] Tainted: [B]=BAD_PAGE, [N]=TEST
[   11.804590] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   11.804611] Call Trace:
[   11.804623]  <TASK>
[   11.804641]  dump_stack_lvl+0x73/0xb0
[   11.804667]  print_report+0xd1/0x650
[   11.804690]  ? __virt_addr_valid+0x1db/0x2d0
[   11.804713]  ? kmem_cache_oob+0x402/0x530
[   11.804731]  ? kasan_complete_mode_report_info+0x2a/0x200
[   11.804754]  ? kmem_cache_oob+0x402/0x530
[   11.804774]  kasan_report+0x141/0x180
[   11.804797]  ? kmem_cache_oob+0x402/0x530
[   11.804821]  __asan_report_load1_noabort+0x18/0x20
[   11.804842]  kmem_cache_oob+0x402/0x530
[   11.804860]  ? trace_hardirqs_on+0x37/0xe0
[   11.804883]  ? __pfx_kmem_cache_oob+0x10/0x10
[   11.804902]  ? finish_task_switch.isra.0+0x153/0x700
[   11.804926]  ? __switch_to+0x5d9/0xf60
[   11.804969]  ? dequeue_task_fair+0x166/0x4e0
[   11.804996]  ? __pfx_read_tsc+0x10/0x10
[   11.805015]  ? ktime_get_ts64+0x86/0x230
[   11.805041]  kunit_try_run_case+0x1a5/0x480
[   11.805066]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.805088]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   11.805113]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   11.805136]  ? __kthread_parkme+0x82/0x180
[   11.805158]  ? preempt_count_sub+0x50/0x80
[   11.805182]  ? __pfx_kunit_try_run_case+0x10/0x10
[   11.805205]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.805227]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   11.805261]  kthread+0x337/0x6f0
[   11.805298]  ? trace_preempt_on+0x20/0xc0
[   11.805320]  ? __pfx_kthread+0x10/0x10
[   11.805338]  ? _raw_spin_unlock_irq+0x47/0x80
[   11.805360]  ? calculate_sigpending+0x7b/0xa0
[   11.805382]  ? __pfx_kthread+0x10/0x10
[   11.805399]  ret_from_fork+0x41/0x80
[   11.805420]  ? __pfx_kthread+0x10/0x10
[   11.805438]  ret_from_fork_asm+0x1a/0x30
[   11.805468]  </TASK>
[   11.805479] 
[   11.817029] Allocated by task 226:
[   11.817221]  kasan_save_stack+0x45/0x70
[   11.817650]  kasan_save_track+0x18/0x40
[   11.818011]  kasan_save_alloc_info+0x3b/0x50
[   11.818319]  __kasan_slab_alloc+0x91/0xa0
[   11.818613]  kmem_cache_alloc_noprof+0x123/0x3f0
[   11.818828]  kmem_cache_oob+0x157/0x530
[   11.819151]  kunit_try_run_case+0x1a5/0x480
[   11.819442]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   11.819860]  kthread+0x337/0x6f0
[   11.820017]  ret_from_fork+0x41/0x80
[   11.820299]  ret_from_fork_asm+0x1a/0x30
[   11.820529] 
[   11.820689] The buggy address belongs to the object at ffff888102dd7000
[   11.820689]  which belongs to the cache test_cache of size 200
[   11.821189] The buggy address is located 0 bytes to the right of
[   11.821189]  allocated 200-byte region [ffff888102dd7000, ffff888102dd70c8)
[   11.822076] 
[   11.822159] The buggy address belongs to the physical page:
[   11.822457] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102dd7
[   11.823017] flags: 0x200000000000000(node=0|zone=2)
[   11.823489] page_type: f5(slab)
[   11.823685] raw: 0200000000000000 ffff888101ac5280 dead000000000122 0000000000000000
[   11.823978] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   11.824507] page dumped because: kasan: bad access detected
[   11.824793] 
[   11.824886] Memory state around the buggy address:
[   11.825067]  ffff888102dd6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.825720]  ffff888102dd7000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   11.826165] >ffff888102dd7080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   11.826498]                                               ^
[   11.826904]  ffff888102dd7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.827347]  ffff888102dd7180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   11.827764] ==================================================================