Hay
Date
June 17, 2025, 3:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.656840] ==================================================================
[   22.657081] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   22.657260] Read of size 1 at addr fff00000c792c0c8 by task kunit_try_catch/209
[   22.657425] 
[   22.657798] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT 
[   22.658182] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.658238] Hardware name: linux,dummy-virt (DT)
[   22.658651] Call trace:
[   22.658832]  show_stack+0x20/0x38 (C)
[   22.659157]  dump_stack_lvl+0x8c/0xd0
[   22.659426]  print_report+0x118/0x608
[   22.659835]  kasan_report+0xdc/0x128
[   22.660237]  __asan_report_load1_noabort+0x20/0x30
[   22.660526]  kmem_cache_oob+0x344/0x430
[   22.660699]  kunit_try_run_case+0x170/0x3f0
[   22.660831]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.660968]  kthread+0x328/0x630
[   22.661818]  ret_from_fork+0x10/0x20
[   22.662172] 
[   22.662419] Allocated by task 209:
[   22.662504]  kasan_save_stack+0x3c/0x68
[   22.662610]  kasan_save_track+0x20/0x40
[   22.662757]  kasan_save_alloc_info+0x40/0x58
[   22.662849]  __kasan_slab_alloc+0xa8/0xb0
[   22.664028]  kmem_cache_alloc_noprof+0x10c/0x398
[   22.664175]  kmem_cache_oob+0x12c/0x430
[   22.664223]  kunit_try_run_case+0x170/0x3f0
[   22.664271]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.664319]  kthread+0x328/0x630
[   22.664361]  ret_from_fork+0x10/0x20
[   22.664401] 
[   22.664426] The buggy address belongs to the object at fff00000c792c000
[   22.664426]  which belongs to the cache test_cache of size 200
[   22.664496] The buggy address is located 0 bytes to the right of
[   22.664496]  allocated 200-byte region [fff00000c792c000, fff00000c792c0c8)
[   22.664564] 
[   22.664587] The buggy address belongs to the physical page:
[   22.664623] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10792c
[   22.664690] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   22.664773] page_type: f5(slab)
[   22.664829] raw: 0bfffe0000000000 fff00000c5918140 dead000000000122 0000000000000000
[   22.664886] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   22.664933] page dumped because: kasan: bad access detected
[   22.664966] 
[   22.664988] Memory state around the buggy address:
[   22.665024]  fff00000c792bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   22.665073]  fff00000c792c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   22.665122] >fff00000c792c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   22.665164]                                               ^
[   22.665204]  fff00000c792c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.665250]  fff00000c792c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   22.665411] ==================================================================

[   20.424418] ==================================================================
[   20.425699] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   20.426423] Read of size 1 at addr ffff8881030aa0c8 by task kunit_try_catch/227
[   20.427323] 
[   20.427605] CPU: 0 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   20.427715] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.427736] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.427766] Call Trace:
[   20.427784]  <TASK>
[   20.427808]  dump_stack_lvl+0x73/0xb0
[   20.427897]  print_report+0xd1/0x650
[   20.427943]  ? __virt_addr_valid+0x1db/0x2d0
[   20.427978]  ? kmem_cache_oob+0x402/0x530
[   20.428007]  ? kasan_complete_mode_report_info+0x2a/0x200
[   20.428053]  ? kmem_cache_oob+0x402/0x530
[   20.428102]  kasan_report+0x141/0x180
[   20.428139]  ? kmem_cache_oob+0x402/0x530
[   20.428176]  __asan_report_load1_noabort+0x18/0x20
[   20.428208]  kmem_cache_oob+0x402/0x530
[   20.428235]  ? trace_hardirqs_on+0x37/0xe0
[   20.428272]  ? __pfx_kmem_cache_oob+0x10/0x10
[   20.428358]  ? finish_task_switch.isra.0+0x153/0x700
[   20.428435]  ? __switch_to+0x5d9/0xf60
[   20.428526]  ? dequeue_task_fair+0x166/0x4e0
[   20.428588]  ? __pfx_read_tsc+0x10/0x10
[   20.428639]  ? ktime_get_ts64+0x86/0x230
[   20.428679]  kunit_try_run_case+0x1a5/0x480
[   20.428719]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.428754]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   20.428791]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.428827]  ? __kthread_parkme+0x82/0x180
[   20.428861]  ? preempt_count_sub+0x50/0x80
[   20.428897]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.428933]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.428968]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.429003]  kthread+0x337/0x6f0
[   20.429030]  ? trace_preempt_on+0x20/0xc0
[   20.429092]  ? __pfx_kthread+0x10/0x10
[   20.429120]  ? _raw_spin_unlock_irq+0x47/0x80
[   20.429152]  ? calculate_sigpending+0x7b/0xa0
[   20.429185]  ? __pfx_kthread+0x10/0x10
[   20.429212]  ret_from_fork+0x41/0x80
[   20.429245]  ? __pfx_kthread+0x10/0x10
[   20.429272]  ret_from_fork_asm+0x1a/0x30
[   20.429342]  </TASK>
[   20.429360] 
[   20.449251] Allocated by task 227:
[   20.449977]  kasan_save_stack+0x45/0x70
[   20.450796]  kasan_save_track+0x18/0x40
[   20.451239]  kasan_save_alloc_info+0x3b/0x50
[   20.451934]  __kasan_slab_alloc+0x91/0xa0
[   20.452357]  kmem_cache_alloc_noprof+0x123/0x3f0
[   20.452750]  kmem_cache_oob+0x157/0x530
[   20.453125]  kunit_try_run_case+0x1a5/0x480
[   20.454034]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.454704]  kthread+0x337/0x6f0
[   20.455257]  ret_from_fork+0x41/0x80
[   20.455846]  ret_from_fork_asm+0x1a/0x30
[   20.456253] 
[   20.456906] The buggy address belongs to the object at ffff8881030aa000
[   20.456906]  which belongs to the cache test_cache of size 200
[   20.457890] The buggy address is located 0 bytes to the right of
[   20.457890]  allocated 200-byte region [ffff8881030aa000, ffff8881030aa0c8)
[   20.458801] 
[   20.459027] The buggy address belongs to the physical page:
[   20.459606] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1030aa
[   20.460179] flags: 0x200000000000000(node=0|zone=2)
[   20.460799] page_type: f5(slab)
[   20.461316] raw: 0200000000000000 ffff888100fad780 dead000000000122 0000000000000000
[   20.462022] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   20.462621] page dumped because: kasan: bad access detected
[   20.463300] 
[   20.463479] Memory state around the buggy address:
[   20.463923]  ffff8881030a9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.464743]  ffff8881030aa000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   20.465639] >ffff8881030aa080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   20.466339]                                               ^
[   20.466840]  ffff8881030aa100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.467605]  ffff8881030aa180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.468302] ==================================================================