Hay
Date
July 17, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   17.057899] ==================================================================
[   17.057978] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   17.058347] Read of size 1 at addr fff00000c78c90c8 by task kunit_try_catch/207
[   17.058785] 
[   17.058845] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.058945] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.058973] Hardware name: linux,dummy-virt (DT)
[   17.059007] Call trace:
[   17.059156]  show_stack+0x20/0x38 (C)
[   17.059230]  dump_stack_lvl+0x8c/0xd0
[   17.059282]  print_report+0x118/0x5d0
[   17.059489]  kasan_report+0xdc/0x128
[   17.059692]  __asan_report_load1_noabort+0x20/0x30
[   17.059821]  kmem_cache_oob+0x344/0x430
[   17.059983]  kunit_try_run_case+0x170/0x3f0
[   17.060180]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.060267]  kthread+0x328/0x630
[   17.060726]  ret_from_fork+0x10/0x20
[   17.060923] 
[   17.061062] Allocated by task 207:
[   17.061196]  kasan_save_stack+0x3c/0x68
[   17.061359]  kasan_save_track+0x20/0x40
[   17.061403]  kasan_save_alloc_info+0x40/0x58
[   17.061465]  __kasan_slab_alloc+0xa8/0xb0
[   17.061697]  kmem_cache_alloc_noprof+0x10c/0x398
[   17.062003]  kmem_cache_oob+0x12c/0x430
[   17.062174]  kunit_try_run_case+0x170/0x3f0
[   17.062252]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.062363]  kthread+0x328/0x630
[   17.062397]  ret_from_fork+0x10/0x20
[   17.062769] 
[   17.062877] The buggy address belongs to the object at fff00000c78c9000
[   17.062877]  which belongs to the cache test_cache of size 200
[   17.062982] The buggy address is located 0 bytes to the right of
[   17.062982]  allocated 200-byte region [fff00000c78c9000, fff00000c78c90c8)
[   17.063168] 
[   17.063312] The buggy address belongs to the physical page:
[   17.063363] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c9
[   17.063564] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.063682] page_type: f5(slab)
[   17.063855] raw: 0bfffe0000000000 fff00000c3e56500 dead000000000122 0000000000000000
[   17.064043] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   17.064196] page dumped because: kasan: bad access detected
[   17.064315] 
[   17.064334] Memory state around the buggy address:
[   17.064380]  fff00000c78c8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.064670]  fff00000c78c9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.064943] >fff00000c78c9080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   17.065051]                                               ^
[   17.065147]  fff00000c78c9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.065453]  fff00000c78c9180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.065728] ==================================================================

[   12.940728] ==================================================================
[   12.941891] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   12.943042] Read of size 1 at addr ffff8881026be0c8 by task kunit_try_catch/224
[   12.944028] 
[   12.944419] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   12.944639] Tainted: [B]=BAD_PAGE, [N]=TEST
[   12.944654] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   12.944717] Call Trace:
[   12.944731]  <TASK>
[   12.944750]  dump_stack_lvl+0x73/0xb0
[   12.944784]  print_report+0xd1/0x610
[   12.944827]  ? __virt_addr_valid+0x1db/0x2d0
[   12.944852]  ? kmem_cache_oob+0x402/0x530
[   12.944874]  ? kasan_complete_mode_report_info+0x2a/0x200
[   12.944896]  ? kmem_cache_oob+0x402/0x530
[   12.944918]  kasan_report+0x141/0x180
[   12.944939]  ? kmem_cache_oob+0x402/0x530
[   12.944966]  __asan_report_load1_noabort+0x18/0x20
[   12.944989]  kmem_cache_oob+0x402/0x530
[   12.945012]  ? __pfx_kmem_cache_oob+0x10/0x10
[   12.945033]  ? sysvec_apic_timer_interrupt+0x50/0x90
[   12.945073]  ? __pfx_kmem_cache_oob+0x10/0x10
[   12.945100]  kunit_try_run_case+0x1a5/0x480
[   12.945125]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.945146]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   12.945170]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   12.945192]  ? __kthread_parkme+0x82/0x180
[   12.945212]  ? preempt_count_sub+0x50/0x80
[   12.945235]  ? __pfx_kunit_try_run_case+0x10/0x10
[   12.945258]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.945281]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   12.945304]  kthread+0x337/0x6f0
[   12.945321]  ? trace_preempt_on+0x20/0xc0
[   12.945344]  ? __pfx_kthread+0x10/0x10
[   12.945364]  ? _raw_spin_unlock_irq+0x47/0x80
[   12.945384]  ? calculate_sigpending+0x7b/0xa0
[   12.945407]  ? __pfx_kthread+0x10/0x10
[   12.945427]  ret_from_fork+0x116/0x1d0
[   12.945446]  ? __pfx_kthread+0x10/0x10
[   12.945465]  ret_from_fork_asm+0x1a/0x30
[   12.945497]  </TASK>
[   12.945507] 
[   12.959208] Allocated by task 224:
[   12.959346]  kasan_save_stack+0x45/0x70
[   12.959497]  kasan_save_track+0x18/0x40
[   12.959633]  kasan_save_alloc_info+0x3b/0x50
[   12.959782]  __kasan_slab_alloc+0x91/0xa0
[   12.959921]  kmem_cache_alloc_noprof+0x123/0x3f0
[   12.960136]  kmem_cache_oob+0x157/0x530
[   12.960885]  kunit_try_run_case+0x1a5/0x480
[   12.961261]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   12.961710]  kthread+0x337/0x6f0
[   12.962223]  ret_from_fork+0x116/0x1d0
[   12.962807]  ret_from_fork_asm+0x1a/0x30
[   12.963376] 
[   12.963539] The buggy address belongs to the object at ffff8881026be000
[   12.963539]  which belongs to the cache test_cache of size 200
[   12.964944] The buggy address is located 0 bytes to the right of
[   12.964944]  allocated 200-byte region [ffff8881026be000, ffff8881026be0c8)
[   12.966445] 
[   12.966663] The buggy address belongs to the physical page:
[   12.967307] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026be
[   12.968114] flags: 0x200000000000000(node=0|zone=2)
[   12.968641] page_type: f5(slab)
[   12.969071] raw: 0200000000000000 ffff8881010b4640 dead000000000122 0000000000000000
[   12.969770] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   12.970369] page dumped because: kasan: bad access detected
[   12.970774] 
[   12.970962] Memory state around the buggy address:
[   12.971317]  ffff8881026bdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.971625]  ffff8881026be000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   12.972403] >ffff8881026be080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   12.972676]                                               ^
[   12.973295]  ffff8881026be100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.974098]  ffff8881026be180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   12.974378] ==================================================================