Hay
Date
July 20, 2025, 8:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   15.625623] ==================================================================
[   15.625740] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   15.625801] Read of size 1 at addr fff00000c77040c8 by task kunit_try_catch/208
[   15.625853] 
[   15.625889] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   15.625991] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.626038] Hardware name: linux,dummy-virt (DT)
[   15.626099] Call trace:
[   15.626124]  show_stack+0x20/0x38 (C)
[   15.626223]  dump_stack_lvl+0x8c/0xd0
[   15.626284]  print_report+0x118/0x5d0
[   15.626349]  kasan_report+0xdc/0x128
[   15.626402]  __asan_report_load1_noabort+0x20/0x30
[   15.626456]  kmem_cache_oob+0x344/0x430
[   15.626501]  kunit_try_run_case+0x170/0x3f0
[   15.626548]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.626739]  kthread+0x328/0x630
[   15.626854]  ret_from_fork+0x10/0x20
[   15.626936] 
[   15.626975] Allocated by task 208:
[   15.627022]  kasan_save_stack+0x3c/0x68
[   15.627065]  kasan_save_track+0x20/0x40
[   15.627101]  kasan_save_alloc_info+0x40/0x58
[   15.627167]  __kasan_slab_alloc+0xa8/0xb0
[   15.627235]  kmem_cache_alloc_noprof+0x10c/0x398
[   15.627291]  kmem_cache_oob+0x12c/0x430
[   15.627334]  kunit_try_run_case+0x170/0x3f0
[   15.627371]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   15.627414]  kthread+0x328/0x630
[   15.627464]  ret_from_fork+0x10/0x20
[   15.627527] 
[   15.627593] The buggy address belongs to the object at fff00000c7704000
[   15.627593]  which belongs to the cache test_cache of size 200
[   15.627660] The buggy address is located 0 bytes to the right of
[   15.627660]  allocated 200-byte region [fff00000c7704000, fff00000c77040c8)
[   15.627735] 
[   15.627772] The buggy address belongs to the physical page:
[   15.628043] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107704
[   15.628123] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   15.628237] page_type: f5(slab)
[   15.628306] raw: 0bfffe0000000000 fff00000c5bc03c0 dead000000000122 0000000000000000
[   15.628359] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   15.628432] page dumped because: kasan: bad access detected
[   15.628473] 
[   15.628512] Memory state around the buggy address:
[   15.628546]  fff00000c7703f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   15.628589]  fff00000c7704000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.628633] >fff00000c7704080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   15.628692]                                               ^
[   15.628739]  fff00000c7704100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.628784]  fff00000c7704180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.628837] ==================================================================

[   13.595447] ==================================================================
[   13.595959] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   13.596426] Read of size 1 at addr ffff8881038a60c8 by task kunit_try_catch/225
[   13.596806] 
[   13.596934] CPU: 1 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.596985] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.596997] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.597020] Call Trace:
[   13.597071]  <TASK>
[   13.597093]  dump_stack_lvl+0x73/0xb0
[   13.597127]  print_report+0xd1/0x610
[   13.597178]  ? __virt_addr_valid+0x1db/0x2d0
[   13.597203]  ? kmem_cache_oob+0x402/0x530
[   13.597226]  ? kasan_complete_mode_report_info+0x2a/0x200
[   13.597249]  ? kmem_cache_oob+0x402/0x530
[   13.597273]  kasan_report+0x141/0x180
[   13.597295]  ? kmem_cache_oob+0x402/0x530
[   13.597341]  __asan_report_load1_noabort+0x18/0x20
[   13.597366]  kmem_cache_oob+0x402/0x530
[   13.597389]  ? trace_hardirqs_on+0x37/0xe0
[   13.597413]  ? __pfx_kmem_cache_oob+0x10/0x10
[   13.597436]  ? finish_task_switch.isra.0+0x153/0x700
[   13.597460]  ? __switch_to+0x47/0xf50
[   13.597501]  ? __pfx_read_tsc+0x10/0x10
[   13.597523]  ? ktime_get_ts64+0x86/0x230
[   13.597549]  kunit_try_run_case+0x1a5/0x480
[   13.597574]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.597616]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.597642]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.597665]  ? __kthread_parkme+0x82/0x180
[   13.597702]  ? preempt_count_sub+0x50/0x80
[   13.597725]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.597749]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.597773]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.597807]  kthread+0x337/0x6f0
[   13.597827]  ? trace_preempt_on+0x20/0xc0
[   13.597849]  ? __pfx_kthread+0x10/0x10
[   13.597871]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.597892]  ? calculate_sigpending+0x7b/0xa0
[   13.597917]  ? __pfx_kthread+0x10/0x10
[   13.597939]  ret_from_fork+0x116/0x1d0
[   13.597957]  ? __pfx_kthread+0x10/0x10
[   13.597978]  ret_from_fork_asm+0x1a/0x30
[   13.598008]  </TASK>
[   13.598018] 
[   13.606466] Allocated by task 225:
[   13.606673]  kasan_save_stack+0x45/0x70
[   13.606928]  kasan_save_track+0x18/0x40
[   13.607300]  kasan_save_alloc_info+0x3b/0x50
[   13.607565]  __kasan_slab_alloc+0x91/0xa0
[   13.607714]  kmem_cache_alloc_noprof+0x123/0x3f0
[   13.608156]  kmem_cache_oob+0x157/0x530
[   13.608556]  kunit_try_run_case+0x1a5/0x480
[   13.608783]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.609051]  kthread+0x337/0x6f0
[   13.609275]  ret_from_fork+0x116/0x1d0
[   13.609453]  ret_from_fork_asm+0x1a/0x30
[   13.609691] 
[   13.609792] The buggy address belongs to the object at ffff8881038a6000
[   13.609792]  which belongs to the cache test_cache of size 200
[   13.610377] The buggy address is located 0 bytes to the right of
[   13.610377]  allocated 200-byte region [ffff8881038a6000, ffff8881038a60c8)
[   13.610959] 
[   13.611060] The buggy address belongs to the physical page:
[   13.611334] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038a6
[   13.611700] flags: 0x200000000000000(node=0|zone=2)
[   13.611939] page_type: f5(slab)
[   13.612091] raw: 0200000000000000 ffff888100fc9b40 dead000000000122 0000000000000000
[   13.612322] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   13.612793] page dumped because: kasan: bad access detected
[   13.613088] 
[   13.613210] Memory state around the buggy address:
[   13.613445]  ffff8881038a5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.613882]  ffff8881038a6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.614346] >ffff8881038a6080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   13.614642]                                               ^
[   13.615113]  ffff8881038a6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.615431]  ffff8881038a6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.615782] ==================================================================