Hay
Date
July 16, 2025, 12:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   31.034130] ==================================================================
[   31.034343] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   31.034562] Read of size 1 at addr fff00000c9a5d0c8 by task kunit_try_catch/238
[   31.034627] 
[   31.034658] CPU: 0 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT 
[   31.034784] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.034811] Hardware name: linux,dummy-virt (DT)
[   31.034844] Call trace:
[   31.034885]  show_stack+0x20/0x38 (C)
[   31.034950]  dump_stack_lvl+0x8c/0xd0
[   31.035058]  print_report+0x118/0x5d0
[   31.035123]  kasan_report+0xdc/0x128
[   31.035200]  __asan_report_load1_noabort+0x20/0x30
[   31.035251]  kmem_cache_oob+0x344/0x430
[   31.035296]  kunit_try_run_case+0x170/0x3f0
[   31.035374]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.035525]  kthread+0x328/0x630
[   31.035570]  ret_from_fork+0x10/0x20
[   31.035978] 
[   31.036011] Allocated by task 238:
[   31.036291]  kasan_save_stack+0x3c/0x68
[   31.036378]  kasan_save_track+0x20/0x40
[   31.036488]  kasan_save_alloc_info+0x40/0x58
[   31.036589]  __kasan_slab_alloc+0xa8/0xb0
[   31.036681]  kmem_cache_alloc_noprof+0x10c/0x398
[   31.036782]  kmem_cache_oob+0x12c/0x430
[   31.036923]  kunit_try_run_case+0x170/0x3f0
[   31.036979]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.037022]  kthread+0x328/0x630
[   31.037076]  ret_from_fork+0x10/0x20
[   31.037114] 
[   31.037133] The buggy address belongs to the object at fff00000c9a5d000
[   31.037133]  which belongs to the cache test_cache of size 200
[   31.037193] The buggy address is located 0 bytes to the right of
[   31.037193]  allocated 200-byte region [fff00000c9a5d000, fff00000c9a5d0c8)
[   31.037479] 
[   31.037566] The buggy address belongs to the physical page:
[   31.037665] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a5d
[   31.037796] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.037861] page_type: f5(slab)
[   31.037898] raw: 0bfffe0000000000 fff00000c56a1780 dead000000000122 0000000000000000
[   31.037972] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   31.038028] page dumped because: kasan: bad access detected
[   31.038263] 
[   31.038306] Memory state around the buggy address:
[   31.038422]  fff00000c9a5cf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   31.038529]  fff00000c9a5d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   31.038573] >fff00000c9a5d080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   31.038612]                                               ^
[   31.038758]  fff00000c9a5d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.038892]  fff00000c9a5d180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.038971] ==================================================================

[   23.938091] ==================================================================
[   23.939531] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   23.940291] Read of size 1 at addr ffff8881060870c8 by task kunit_try_catch/256
[   23.940521] 
[   23.941117] CPU: 1 UID: 0 PID: 256 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) 
[   23.941178] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.941191] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.941212] Call Trace:
[   23.941227]  <TASK>
[   23.941247]  dump_stack_lvl+0x73/0xb0
[   23.941294]  print_report+0xd1/0x610
[   23.941318]  ? __virt_addr_valid+0x1db/0x2d0
[   23.941342]  ? kmem_cache_oob+0x402/0x530
[   23.941363]  ? kasan_complete_mode_report_info+0x2a/0x200
[   23.941388]  ? kmem_cache_oob+0x402/0x530
[   23.941410]  kasan_report+0x141/0x180
[   23.941431]  ? kmem_cache_oob+0x402/0x530
[   23.941458]  __asan_report_load1_noabort+0x18/0x20
[   23.941482]  kmem_cache_oob+0x402/0x530
[   23.941503]  ? trace_hardirqs_on+0x37/0xe0
[   23.941527]  ? __pfx_kmem_cache_oob+0x10/0x10
[   23.941782]  ? finish_task_switch.isra.0+0x153/0x700
[   23.941813]  ? __switch_to+0x47/0xf80
[   23.941903]  ? __pfx_read_tsc+0x10/0x10
[   23.941928]  ? ktime_get_ts64+0x86/0x230
[   23.941954]  kunit_try_run_case+0x1a5/0x480
[   23.941980]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.942002]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   23.942026]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.942049]  ? __kthread_parkme+0x82/0x180
[   23.942068]  ? preempt_count_sub+0x50/0x80
[   23.942090]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.942113]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.942139]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.942165]  kthread+0x337/0x6f0
[   23.942184]  ? trace_preempt_on+0x20/0xc0
[   23.942206]  ? __pfx_kthread+0x10/0x10
[   23.942226]  ? _raw_spin_unlock_irq+0x47/0x80
[   23.942246]  ? calculate_sigpending+0x7b/0xa0
[   23.942270]  ? __pfx_kthread+0x10/0x10
[   23.942303]  ret_from_fork+0x116/0x1d0
[   23.942322]  ? __pfx_kthread+0x10/0x10
[   23.942342]  ret_from_fork_asm+0x1a/0x30
[   23.942372]  </TASK>
[   23.942384] 
[   23.954810] Allocated by task 256:
[   23.955375]  kasan_save_stack+0x45/0x70
[   23.955884]  kasan_save_track+0x18/0x40
[   23.956380]  kasan_save_alloc_info+0x3b/0x50
[   23.956909]  __kasan_slab_alloc+0x91/0xa0
[   23.957428]  kmem_cache_alloc_noprof+0x123/0x3f0
[   23.957998]  kmem_cache_oob+0x157/0x530
[   23.958471]  kunit_try_run_case+0x1a5/0x480
[   23.959006]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.959651]  kthread+0x337/0x6f0
[   23.960034]  ret_from_fork+0x116/0x1d0
[   23.960171]  ret_from_fork_asm+0x1a/0x30
[   23.960317] 
[   23.960390] The buggy address belongs to the object at ffff888106087000
[   23.960390]  which belongs to the cache test_cache of size 200
[   23.961514] The buggy address is located 0 bytes to the right of
[   23.961514]  allocated 200-byte region [ffff888106087000, ffff8881060870c8)
[   23.963064] 
[   23.963234] The buggy address belongs to the physical page:
[   23.963948] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106087
[   23.964236] flags: 0x200000000000000(node=0|zone=2)
[   23.964744] page_type: f5(slab)
[   23.965150] raw: 0200000000000000 ffff888106085000 dead000000000122 0000000000000000
[   23.965951] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   23.966468] page dumped because: kasan: bad access detected
[   23.966928] 
[   23.967117] Memory state around the buggy address:
[   23.967743]  ffff888106086f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.968135]  ffff888106087000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   23.968950] >ffff888106087080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   23.969161]                                               ^
[   23.969837]  ffff888106087100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.970404]  ffff888106087180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.970669] ==================================================================