Hay
Date
July 25, 2025, 3:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.961666] ==================================================================
[   32.961729] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   32.961793] Read of size 1 at addr fff00000c9ae10c8 by task kunit_try_catch/239
[   32.962909] 
[   32.962985] CPU: 1 UID: 0 PID: 239 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   32.963198] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.963231] Hardware name: linux,dummy-virt (DT)
[   32.963663] Call trace:
[   32.963698]  show_stack+0x20/0x38 (C)
[   32.963906]  dump_stack_lvl+0x8c/0xd0
[   32.964037]  print_report+0x118/0x5e8
[   32.964162]  kasan_report+0xdc/0x128
[   32.964293]  __asan_report_load1_noabort+0x20/0x30
[   32.964357]  kmem_cache_oob+0x344/0x430
[   32.964427]  kunit_try_run_case+0x170/0x3f0
[   32.964819]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.964952]  kthread+0x328/0x630
[   32.965136]  ret_from_fork+0x10/0x20
[   32.965244] 
[   32.965599] Allocated by task 239:
[   32.965708]  kasan_save_stack+0x3c/0x68
[   32.966068]  kasan_save_track+0x20/0x40
[   32.966227]  kasan_save_alloc_info+0x40/0x58
[   32.966334]  __kasan_slab_alloc+0xa8/0xb0
[   32.966514]  kmem_cache_alloc_noprof+0x10c/0x398
[   32.966788]  kmem_cache_oob+0x12c/0x430
[   32.967010]  kunit_try_run_case+0x170/0x3f0
[   32.967171]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.967290]  kthread+0x328/0x630
[   32.967542]  ret_from_fork+0x10/0x20
[   32.967826] 
[   32.967895] The buggy address belongs to the object at fff00000c9ae1000
[   32.967895]  which belongs to the cache test_cache of size 200
[   32.968021] The buggy address is located 0 bytes to the right of
[   32.968021]  allocated 200-byte region [fff00000c9ae1000, fff00000c9ae10c8)
[   32.968148] 
[   32.968303] The buggy address belongs to the physical page:
[   32.968559] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ae1
[   32.968743] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   32.969106] page_type: f5(slab)
[   32.969260] raw: 0bfffe0000000000 fff00000c56bc780 dead000000000122 0000000000000000
[   32.969584] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   32.969778] page dumped because: kasan: bad access detected
[   32.970056] 
[   32.970135] Memory state around the buggy address:
[   32.970455]  fff00000c9ae0f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   32.970716]  fff00000c9ae1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   32.970796] >fff00000c9ae1080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   32.970930]                                               ^
[   32.971126]  fff00000c9ae1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.971343]  fff00000c9ae1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   32.971427] ==================================================================

[   26.432066] ==================================================================
[   26.432485] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   26.432738] Read of size 1 at addr ffff8881062570c8 by task kunit_try_catch/256
[   26.433121] 
[   26.433292] CPU: 1 UID: 0 PID: 256 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   26.433346] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.433370] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.433392] Call Trace:
[   26.433406]  <TASK>
[   26.433424]  dump_stack_lvl+0x73/0xb0
[   26.433469]  print_report+0xd1/0x640
[   26.433492]  ? __virt_addr_valid+0x1db/0x2d0
[   26.433518]  ? kmem_cache_oob+0x402/0x530
[   26.433540]  ? kasan_complete_mode_report_info+0x2a/0x200
[   26.433567]  ? kmem_cache_oob+0x402/0x530
[   26.433590]  kasan_report+0x141/0x180
[   26.433623]  ? kmem_cache_oob+0x402/0x530
[   26.433651]  __asan_report_load1_noabort+0x18/0x20
[   26.433687]  kmem_cache_oob+0x402/0x530
[   26.433709]  ? trace_hardirqs_on+0x37/0xe0
[   26.433734]  ? __pfx_kmem_cache_oob+0x10/0x10
[   26.433757]  ? finish_task_switch.isra.0+0x153/0x700
[   26.433823]  ? __switch_to+0x47/0xf80
[   26.433856]  ? __pfx_read_tsc+0x10/0x10
[   26.433890]  ? ktime_get_ts64+0x86/0x230
[   26.433915]  kunit_try_run_case+0x1a5/0x480
[   26.433958]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.433982]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   26.434006]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   26.434033]  ? __kthread_parkme+0x82/0x180
[   26.434053]  ? preempt_count_sub+0x50/0x80
[   26.434077]  ? __pfx_kunit_try_run_case+0x10/0x10
[   26.434111]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.434135]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   26.434160]  kthread+0x337/0x6f0
[   26.434191]  ? trace_preempt_on+0x20/0xc0
[   26.434224]  ? __pfx_kthread+0x10/0x10
[   26.434245]  ? _raw_spin_unlock_irq+0x47/0x80
[   26.434269]  ? calculate_sigpending+0x7b/0xa0
[   26.434294]  ? __pfx_kthread+0x10/0x10
[   26.434316]  ret_from_fork+0x116/0x1d0
[   26.434336]  ? __pfx_kthread+0x10/0x10
[   26.434357]  ret_from_fork_asm+0x1a/0x30
[   26.434389]  </TASK>
[   26.434401] 
[   26.442691] Allocated by task 256:
[   26.442871]  kasan_save_stack+0x45/0x70
[   26.443138]  kasan_save_track+0x18/0x40
[   26.443364]  kasan_save_alloc_info+0x3b/0x50
[   26.443568]  __kasan_slab_alloc+0x91/0xa0
[   26.443722]  kmem_cache_alloc_noprof+0x123/0x3f0
[   26.443886]  kmem_cache_oob+0x157/0x530
[   26.444055]  kunit_try_run_case+0x1a5/0x480
[   26.444283]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.444535]  kthread+0x337/0x6f0
[   26.444702]  ret_from_fork+0x116/0x1d0
[   26.444841]  ret_from_fork_asm+0x1a/0x30
[   26.444989] 
[   26.445243] The buggy address belongs to the object at ffff888106257000
[   26.445243]  which belongs to the cache test_cache of size 200
[   26.445968] The buggy address is located 0 bytes to the right of
[   26.445968]  allocated 200-byte region [ffff888106257000, ffff8881062570c8)
[   26.446597] 
[   26.446670] The buggy address belongs to the physical page:
[   26.446849] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106257
[   26.447201] flags: 0x200000000000000(node=0|zone=2)
[   26.447434] page_type: f5(slab)
[   26.447700] raw: 0200000000000000 ffff888100f85c80 dead000000000122 0000000000000000
[   26.448143] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   26.448375] page dumped because: kasan: bad access detected
[   26.448546] 
[   26.448692] Memory state around the buggy address:
[   26.449092]  ffff888106256f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.449875]  ffff888106257000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   26.450319] >ffff888106257080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   26.450586]                                               ^
[   26.450764]  ffff888106257100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.451244]  ffff888106257180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   26.451591] ==================================================================