Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   29.735261] ==================================================================
[   29.735319] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   29.735379] Read of size 1 at addr fff00000c96bd0c8 by task kunit_try_catch/239
[   29.735430] 
[   29.735463] CPU: 0 UID: 0 PID: 239 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   29.735565] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.735594] Hardware name: linux,dummy-virt (DT)
[   29.735626] Call trace:
[   29.735650]  show_stack+0x20/0x38 (C)
[   29.735874]  dump_stack_lvl+0x8c/0xd0
[   29.735968]  print_report+0x118/0x5d0
[   29.736133]  kasan_report+0xdc/0x128
[   29.736260]  __asan_report_load1_noabort+0x20/0x30
[   29.736394]  kmem_cache_oob+0x344/0x430
[   29.736492]  kunit_try_run_case+0x170/0x3f0
[   29.736689]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.736832]  kthread+0x328/0x630
[   29.736913]  ret_from_fork+0x10/0x20
[   29.736962] 
[   29.736982] Allocated by task 239:
[   29.737010]  kasan_save_stack+0x3c/0x68
[   29.737222]  kasan_save_track+0x20/0x40
[   29.737268]  kasan_save_alloc_info+0x40/0x58
[   29.737327]  __kasan_slab_alloc+0xa8/0xb0
[   29.737366]  kmem_cache_alloc_noprof+0x10c/0x398
[   29.737409]  kmem_cache_oob+0x12c/0x430
[   29.737444]  kunit_try_run_case+0x170/0x3f0
[   29.737482]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.737649]  kthread+0x328/0x630
[   29.737801]  ret_from_fork+0x10/0x20
[   29.737840] 
[   29.737935] The buggy address belongs to the object at fff00000c96bd000
[   29.737935]  which belongs to the cache test_cache of size 200
[   29.738089] The buggy address is located 0 bytes to the right of
[   29.738089]  allocated 200-byte region [fff00000c96bd000, fff00000c96bd0c8)
[   29.738164] 
[   29.738185] The buggy address belongs to the physical page:
[   29.738213] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1096bd
[   29.738266] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.738549] page_type: f5(slab)
[   29.738623] raw: 0bfffe0000000000 fff00000c4412640 dead000000000122 0000000000000000
[   29.738736] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   29.738852] page dumped because: kasan: bad access detected
[   29.738937] 
[   29.739068] Memory state around the buggy address:
[   29.739112]  fff00000c96bcf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   29.739157]  fff00000c96bd000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   29.739214] >fff00000c96bd080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   29.739252]                                               ^
[   29.739288]  fff00000c96bd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.739329]  fff00000c96bd180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.739366] ==================================================================

[   24.715345] ==================================================================
[   24.716643] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   24.717422] Read of size 1 at addr ffff8881050b20c8 by task kunit_try_catch/257
[   24.717650] 
[   24.717754] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   24.718663] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   24.718680] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.718838] Call Trace:
[   24.718853]  <TASK>
[   24.718931]  dump_stack_lvl+0x73/0xb0
[   24.718980]  print_report+0xd1/0x610
[   24.719005]  ? __virt_addr_valid+0x1db/0x2d0
[   24.719033]  ? kmem_cache_oob+0x402/0x530
[   24.719056]  ? kasan_complete_mode_report_info+0x2a/0x200
[   24.719081]  ? kmem_cache_oob+0x402/0x530
[   24.719103]  kasan_report+0x141/0x180
[   24.719124]  ? kmem_cache_oob+0x402/0x530
[   24.719151]  __asan_report_load1_noabort+0x18/0x20
[   24.719174]  kmem_cache_oob+0x402/0x530
[   24.719195]  ? trace_hardirqs_on+0x37/0xe0
[   24.719219]  ? __pfx_kmem_cache_oob+0x10/0x10
[   24.719240]  ? finish_task_switch.isra.0+0x153/0x700
[   24.719263]  ? __switch_to+0x47/0xf80
[   24.719292]  ? __pfx_read_tsc+0x10/0x10
[   24.719314]  ? ktime_get_ts64+0x86/0x230
[   24.719340]  kunit_try_run_case+0x1a5/0x480
[   24.719363]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.719383]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   24.719408]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   24.719431]  ? __kthread_parkme+0x82/0x180
[   24.719451]  ? preempt_count_sub+0x50/0x80
[   24.719473]  ? __pfx_kunit_try_run_case+0x10/0x10
[   24.719494]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.719518]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   24.719542]  kthread+0x337/0x6f0
[   24.719561]  ? trace_preempt_on+0x20/0xc0
[   24.719582]  ? __pfx_kthread+0x10/0x10
[   24.719602]  ? _raw_spin_unlock_irq+0x47/0x80
[   24.719623]  ? calculate_sigpending+0x7b/0xa0
[   24.719647]  ? __pfx_kthread+0x10/0x10
[   24.719668]  ret_from_fork+0x116/0x1d0
[   24.719687]  ? __pfx_kthread+0x10/0x10
[   24.719719]  ret_from_fork_asm+0x1a/0x30
[   24.719750]  </TASK>
[   24.719762] 
[   24.727602] Allocated by task 257:
[   24.727778]  kasan_save_stack+0x45/0x70
[   24.728127]  kasan_save_track+0x18/0x40
[   24.728535]  kasan_save_alloc_info+0x3b/0x50
[   24.728813]  __kasan_slab_alloc+0x91/0xa0
[   24.729234]  kmem_cache_alloc_noprof+0x123/0x3f0
[   24.729716]  kmem_cache_oob+0x157/0x530
[   24.730830]  kunit_try_run_case+0x1a5/0x480
[   24.731459]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.732132]  kthread+0x337/0x6f0
[   24.732283]  ret_from_fork+0x116/0x1d0
[   24.732415]  ret_from_fork_asm+0x1a/0x30
[   24.732550] 
[   24.732616] The buggy address belongs to the object at ffff8881050b2000
[   24.732616]  which belongs to the cache test_cache of size 200
[   24.734344] The buggy address is located 0 bytes to the right of
[   24.734344]  allocated 200-byte region [ffff8881050b2000, ffff8881050b20c8)
[   24.736059] 
[   24.736452] The buggy address belongs to the physical page:
[   24.737158] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1050b2
[   24.737758] flags: 0x200000000000000(node=0|zone=2)
[   24.738535] page_type: f5(slab)
[   24.739013] raw: 0200000000000000 ffff8881017ad640 dead000000000122 0000000000000000
[   24.739365] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   24.739717] page dumped because: kasan: bad access detected
[   24.740199] 
[   24.740303] Memory state around the buggy address:
[   24.740527]  ffff8881050b1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.740830]  ffff8881050b2000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.741435] >ffff8881050b2080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   24.741751]                                               ^
[   24.742113]  ffff8881050b2100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.742397]  ffff8881050b2180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.742710] ==================================================================