Hay
Date
July 13, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   16.422492] ==================================================================
[   16.422557] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   16.422616] Read of size 1 at addr fff00000c70870c8 by task kunit_try_catch/208
[   16.422666] 
[   16.422703] CPU: 0 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   16.422787] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.422814] Hardware name: linux,dummy-virt (DT)
[   16.422848] Call trace:
[   16.422873]  show_stack+0x20/0x38 (C)
[   16.422928]  dump_stack_lvl+0x8c/0xd0
[   16.422978]  print_report+0x118/0x5d0
[   16.423493]  kasan_report+0xdc/0x128
[   16.423558]  __asan_report_load1_noabort+0x20/0x30
[   16.423625]  kmem_cache_oob+0x344/0x430
[   16.424083]  kunit_try_run_case+0x170/0x3f0
[   16.424313]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.424627]  kthread+0x328/0x630
[   16.424945]  ret_from_fork+0x10/0x20
[   16.425001] 
[   16.425187] Allocated by task 208:
[   16.425425]  kasan_save_stack+0x3c/0x68
[   16.425652]  kasan_save_track+0x20/0x40
[   16.425877]  kasan_save_alloc_info+0x40/0x58
[   16.425991]  __kasan_slab_alloc+0xa8/0xb0
[   16.426028]  kmem_cache_alloc_noprof+0x10c/0x398
[   16.426074]  kmem_cache_oob+0x12c/0x430
[   16.426111]  kunit_try_run_case+0x170/0x3f0
[   16.426150]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   16.426195]  kthread+0x328/0x630
[   16.426243]  ret_from_fork+0x10/0x20
[   16.426279] 
[   16.426299] The buggy address belongs to the object at fff00000c7087000
[   16.426299]  which belongs to the cache test_cache of size 200
[   16.426482] The buggy address is located 0 bytes to the right of
[   16.426482]  allocated 200-byte region [fff00000c7087000, fff00000c70870c8)
[   16.426782] 
[   16.426808] The buggy address belongs to the physical page:
[   16.426869] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107087
[   16.427988] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   16.428147] page_type: f5(slab)
[   16.428284] raw: 0bfffe0000000000 fff00000c708c000 dead000000000122 0000000000000000
[   16.428336] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   16.428399] page dumped because: kasan: bad access detected
[   16.428833] 
[   16.428856] Memory state around the buggy address:
[   16.429018]  fff00000c7086f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   16.429474]  fff00000c7087000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   16.429773] >fff00000c7087080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   16.429814]                                               ^
[   16.429851]  fff00000c7087100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.429895]  fff00000c7087180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   16.429932] ==================================================================

[   17.077377] ==================================================================
[   17.077462] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430
[   17.077584] Read of size 1 at addr fff00000c5acb0c8 by task kunit_try_catch/208
[   17.077698] 
[   17.077771] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   17.077860] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.077888] Hardware name: linux,dummy-virt (DT)
[   17.077965] Call trace:
[   17.078018]  show_stack+0x20/0x38 (C)
[   17.078071]  dump_stack_lvl+0x8c/0xd0
[   17.078174]  print_report+0x118/0x5d0
[   17.078236]  kasan_report+0xdc/0x128
[   17.078574]  __asan_report_load1_noabort+0x20/0x30
[   17.078654]  kmem_cache_oob+0x344/0x430
[   17.078699]  kunit_try_run_case+0x170/0x3f0
[   17.078886]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.078975]  kthread+0x328/0x630
[   17.079110]  ret_from_fork+0x10/0x20
[   17.079170] 
[   17.079199] Allocated by task 208:
[   17.079231]  kasan_save_stack+0x3c/0x68
[   17.079272]  kasan_save_track+0x20/0x40
[   17.079311]  kasan_save_alloc_info+0x40/0x58
[   17.079516]  __kasan_slab_alloc+0xa8/0xb0
[   17.079780]  kmem_cache_alloc_noprof+0x10c/0x398
[   17.080006]  kmem_cache_oob+0x12c/0x430
[   17.080368]  kunit_try_run_case+0x170/0x3f0
[   17.080492]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.080619]  kthread+0x328/0x630
[   17.080823]  ret_from_fork+0x10/0x20
[   17.081039] 
[   17.081152] The buggy address belongs to the object at fff00000c5acb000
[   17.081152]  which belongs to the cache test_cache of size 200
[   17.081228] The buggy address is located 0 bytes to the right of
[   17.081228]  allocated 200-byte region [fff00000c5acb000, fff00000c5acb0c8)
[   17.081327] 
[   17.081650] The buggy address belongs to the physical page:
[   17.081758] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105acb
[   17.082205] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.082338] page_type: f5(slab)
[   17.082454] raw: 0bfffe0000000000 fff00000c472a780 dead000000000122 0000000000000000
[   17.082756] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   17.082927] page dumped because: kasan: bad access detected
[   17.083041] 
[   17.083061] Memory state around the buggy address:
[   17.083106]  fff00000c5acaf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.083159]  fff00000c5acb000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.083222] >fff00000c5acb080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   17.083262]                                               ^
[   17.083298]  fff00000c5acb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.083357]  fff00000c5acb180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.083598] ==================================================================

[   13.319151] ==================================================================
[   13.320506] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   13.320979] Read of size 1 at addr ffff88810343a0c8 by task kunit_try_catch/224
[   13.321741] 
[   13.321957] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.322006] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.322017] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.322038] Call Trace:
[   13.322051]  <TASK>
[   13.322069]  dump_stack_lvl+0x73/0xb0
[   13.322112]  print_report+0xd1/0x610
[   13.322136]  ? __virt_addr_valid+0x1db/0x2d0
[   13.322159]  ? kmem_cache_oob+0x402/0x530
[   13.322193]  ? kasan_complete_mode_report_info+0x2a/0x200
[   13.322217]  ? kmem_cache_oob+0x402/0x530
[   13.322240]  kasan_report+0x141/0x180
[   13.322262]  ? kmem_cache_oob+0x402/0x530
[   13.322289]  __asan_report_load1_noabort+0x18/0x20
[   13.322314]  kmem_cache_oob+0x402/0x530
[   13.322336]  ? trace_hardirqs_on+0x37/0xe0
[   13.322361]  ? __pfx_kmem_cache_oob+0x10/0x10
[   13.322383]  ? finish_task_switch.isra.0+0x153/0x700
[   13.322418]  ? __switch_to+0x47/0xf50
[   13.322458]  ? __pfx_read_tsc+0x10/0x10
[   13.322480]  ? ktime_get_ts64+0x86/0x230
[   13.322513]  kunit_try_run_case+0x1a5/0x480
[   13.322539]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.322562]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.322598]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.322629]  ? __kthread_parkme+0x82/0x180
[   13.322650]  ? preempt_count_sub+0x50/0x80
[   13.322673]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.322697]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.322722]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.322747]  kthread+0x337/0x6f0
[   13.322776]  ? trace_preempt_on+0x20/0xc0
[   13.322798]  ? __pfx_kthread+0x10/0x10
[   13.322818]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.322860]  ? calculate_sigpending+0x7b/0xa0
[   13.322887]  ? __pfx_kthread+0x10/0x10
[   13.322908]  ret_from_fork+0x116/0x1d0
[   13.322928]  ? __pfx_kthread+0x10/0x10
[   13.322948]  ret_from_fork_asm+0x1a/0x30
[   13.322979]  </TASK>
[   13.322989] 
[   13.333285] Allocated by task 224:
[   13.333684]  kasan_save_stack+0x45/0x70
[   13.334050]  kasan_save_track+0x18/0x40
[   13.334399]  kasan_save_alloc_info+0x3b/0x50
[   13.334869]  __kasan_slab_alloc+0x91/0xa0
[   13.335053]  kmem_cache_alloc_noprof+0x123/0x3f0
[   13.335212]  kmem_cache_oob+0x157/0x530
[   13.335353]  kunit_try_run_case+0x1a5/0x480
[   13.335695]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.336260]  kthread+0x337/0x6f0
[   13.336630]  ret_from_fork+0x116/0x1d0
[   13.337041]  ret_from_fork_asm+0x1a/0x30
[   13.337419] 
[   13.337592] The buggy address belongs to the object at ffff88810343a000
[   13.337592]  which belongs to the cache test_cache of size 200
[   13.338578] The buggy address is located 0 bytes to the right of
[   13.338578]  allocated 200-byte region [ffff88810343a000, ffff88810343a0c8)
[   13.339702] 
[   13.339777] The buggy address belongs to the physical page:
[   13.339951] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10343a
[   13.340190] flags: 0x200000000000000(node=0|zone=2)
[   13.340360] page_type: f5(slab)
[   13.340524] raw: 0200000000000000 ffff888101a22140 dead000000000122 0000000000000000
[   13.340901] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   13.341245] page dumped because: kasan: bad access detected
[   13.341424] 
[   13.341504] Memory state around the buggy address:
[   13.341895]  ffff888103439f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.342217]  ffff88810343a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.342541] >ffff88810343a080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   13.342911]                                               ^
[   13.343088]  ffff88810343a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.343402]  ffff88810343a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.343778] ==================================================================

[   13.505359] ==================================================================
[   13.505920] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530
[   13.506413] Read of size 1 at addr ffff8881025a60c8 by task kunit_try_catch/225
[   13.506760] 
[   13.506893] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   13.506938] Tainted: [B]=BAD_PAGE, [N]=TEST
[   13.506950] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   13.506990] Call Trace:
[   13.507002]  <TASK>
[   13.507018]  dump_stack_lvl+0x73/0xb0
[   13.507066]  print_report+0xd1/0x610
[   13.507089]  ? __virt_addr_valid+0x1db/0x2d0
[   13.507113]  ? kmem_cache_oob+0x402/0x530
[   13.507137]  ? kasan_complete_mode_report_info+0x2a/0x200
[   13.507161]  ? kmem_cache_oob+0x402/0x530
[   13.507195]  kasan_report+0x141/0x180
[   13.507217]  ? kmem_cache_oob+0x402/0x530
[   13.507245]  __asan_report_load1_noabort+0x18/0x20
[   13.507270]  kmem_cache_oob+0x402/0x530
[   13.507292]  ? trace_hardirqs_on+0x37/0xe0
[   13.507316]  ? __pfx_kmem_cache_oob+0x10/0x10
[   13.507339]  ? finish_task_switch.isra.0+0x153/0x700
[   13.507363]  ? __switch_to+0x47/0xf50
[   13.507392]  ? __pfx_read_tsc+0x10/0x10
[   13.507423]  ? ktime_get_ts64+0x86/0x230
[   13.507448]  kunit_try_run_case+0x1a5/0x480
[   13.507473]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.507506]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   13.507540]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   13.507564]  ? __kthread_parkme+0x82/0x180
[   13.507584]  ? preempt_count_sub+0x50/0x80
[   13.507618]  ? __pfx_kunit_try_run_case+0x10/0x10
[   13.507643]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.507678]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   13.507704]  kthread+0x337/0x6f0
[   13.507723]  ? trace_preempt_on+0x20/0xc0
[   13.507745]  ? __pfx_kthread+0x10/0x10
[   13.507766]  ? _raw_spin_unlock_irq+0x47/0x80
[   13.507788]  ? calculate_sigpending+0x7b/0xa0
[   13.507813]  ? __pfx_kthread+0x10/0x10
[   13.507834]  ret_from_fork+0x116/0x1d0
[   13.507853]  ? __pfx_kthread+0x10/0x10
[   13.507874]  ret_from_fork_asm+0x1a/0x30
[   13.507905]  </TASK>
[   13.507916] 
[   13.516102] Allocated by task 225:
[   13.516296]  kasan_save_stack+0x45/0x70
[   13.516444]  kasan_save_track+0x18/0x40
[   13.516646]  kasan_save_alloc_info+0x3b/0x50
[   13.517003]  __kasan_slab_alloc+0x91/0xa0
[   13.517330]  kmem_cache_alloc_noprof+0x123/0x3f0
[   13.517496]  kmem_cache_oob+0x157/0x530
[   13.517635]  kunit_try_run_case+0x1a5/0x480
[   13.517891]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   13.518195]  kthread+0x337/0x6f0
[   13.518502]  ret_from_fork+0x116/0x1d0
[   13.518637]  ret_from_fork_asm+0x1a/0x30
[   13.518787] 
[   13.518885] The buggy address belongs to the object at ffff8881025a6000
[   13.518885]  which belongs to the cache test_cache of size 200
[   13.519598] The buggy address is located 0 bytes to the right of
[   13.519598]  allocated 200-byte region [ffff8881025a6000, ffff8881025a60c8)
[   13.519966] 
[   13.520038] The buggy address belongs to the physical page:
[   13.520668] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025a6
[   13.521032] flags: 0x200000000000000(node=0|zone=2)
[   13.521303] page_type: f5(slab)
[   13.521427] raw: 0200000000000000 ffff8881016c1140 dead000000000122 0000000000000000
[   13.521768] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000
[   13.522114] page dumped because: kasan: bad access detected
[   13.522325] 
[   13.522396] Memory state around the buggy address:
[   13.522552]  ffff8881025a5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.522774]  ffff8881025a6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   13.523189] >ffff8881025a6080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
[   13.523564]                                               ^
[   13.524140]  ffff8881025a6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.524452]  ffff8881025a6180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   13.524862] ==================================================================