Hay
Date
July 17, 2025, 10:12 a.m.

Environment
qemu-arm64
qemu-x86_64

[   29.275465] ==================================================================
[   29.275550] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320
[   29.275605] Read of size 1 at addr fff00000c7ac92bf by task kunit_try_catch/169
[   29.275653] 
[   29.275719] CPU: 1 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT 
[   29.275803] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.275829] Hardware name: linux,dummy-virt (DT)
[   29.275858] Call trace:
[   29.275880]  show_stack+0x20/0x38 (C)
[   29.275929]  dump_stack_lvl+0x8c/0xd0
[   29.275976]  print_report+0x118/0x5d0
[   29.276019]  kasan_report+0xdc/0x128
[   29.276074]  __asan_report_load1_noabort+0x20/0x30
[   29.276127]  kmalloc_oob_left+0x2ec/0x320
[   29.276174]  kunit_try_run_case+0x170/0x3f0
[   29.276234]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   29.276286]  kthread+0x328/0x630
[   29.276327]  ret_from_fork+0x10/0x20
[   29.276767] 
[   29.276814] Allocated by task 21:
[   29.276847]  kasan_save_stack+0x3c/0x68
[   29.276887]  kasan_save_track+0x20/0x40
[   29.276921]  kasan_save_alloc_info+0x40/0x58
[   29.276958]  __kasan_kmalloc+0xd4/0xd8
[   29.276992]  __kmalloc_cache_node_noprof+0x178/0x3d0
[   29.277034]  build_sched_domains+0x32c/0x36c0
[   29.277088]  partition_sched_domains+0x79c/0x1098
[   29.277125]  rebuild_sched_domains_locked+0x494/0xde0
[   29.277362]  cpuset_handle_hotplug+0xab0/0x1480
[   29.277489]  cpuset_update_active_cpus+0x18/0x30
[   29.277567]  sched_cpu_activate+0x2d0/0x388
[   29.277730]  cpuhp_invoke_callback+0x5b8/0x1630
[   29.277770]  cpuhp_thread_fun+0x230/0x5d8
[   29.278048]  smpboot_thread_fn+0x2e8/0x760
[   29.278165]  kthread+0x328/0x630
[   29.278277]  ret_from_fork+0x10/0x20
[   29.278346] 
[   29.278457] Freed by task 21:
[   29.278551]  kasan_save_stack+0x3c/0x68
[   29.278587]  kasan_save_track+0x20/0x40
[   29.278872]  kasan_save_free_info+0x4c/0x78
[   29.278949]  __kasan_slab_free+0x6c/0x98
[   29.279076]  kfree+0x214/0x3c8
[   29.279176]  destroy_sched_domain+0xdc/0x120
[   29.279294]  cpu_attach_domain+0xff8/0x15c0
[   29.279334]  build_sched_domains+0x299c/0x36c0
[   29.279596]  partition_sched_domains+0x79c/0x1098
[   29.279732]  rebuild_sched_domains_locked+0x494/0xde0
[   29.279813]  cpuset_handle_hotplug+0xab0/0x1480
[   29.279895]  cpuset_update_active_cpus+0x18/0x30
[   29.279983]  sched_cpu_activate+0x2d0/0x388
[   29.280079]  cpuhp_invoke_callback+0x5b8/0x1630
[   29.280134]  cpuhp_thread_fun+0x230/0x5d8
[   29.280169]  smpboot_thread_fn+0x2e8/0x760
[   29.280448]  kthread+0x328/0x630
[   29.280510]  ret_from_fork+0x10/0x20
[   29.280616] 
[   29.280651] The buggy address belongs to the object at fff00000c7ac92a0
[   29.280651]  which belongs to the cache kmalloc-16 of size 16
[   29.280744] The buggy address is located 15 bytes to the right of
[   29.280744]  allocated 16-byte region [fff00000c7ac92a0, fff00000c7ac92b0)
[   29.280821] 
[   29.280840] The buggy address belongs to the physical page:
[   29.280912] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107ac9
[   29.280964] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   29.281010] page_type: f5(slab)
[   29.281049] raw: 0bfffe0000000000 fff00000c0001640 dead000000000100 dead000000000122
[   29.281112] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   29.281151] page dumped because: kasan: bad access detected
[   29.281183] 
[   29.281200] Memory state around the buggy address:
[   29.281376]  fff00000c7ac9180: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   29.281465]  fff00000c7ac9200: fa fb fc fc fa fb fc fc fa fb fc fc 00 00 fc fc
[   29.281562] >fff00000c7ac9280: fa fb fc fc fa fb fc fc 00 07 fc fc fc fc fc fc
[   29.281633]                                         ^
[   29.281703]  fff00000c7ac9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.281766]  fff00000c7ac9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   29.281845] ==================================================================

[   25.041194] ==================================================================
[   25.042376] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0
[   25.043300] Read of size 1 at addr ffff888104561c5f by task kunit_try_catch/187
[   25.043890] 
[   25.044108] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) 
[   25.044159] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.044170] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.044191] Call Trace:
[   25.044203]  <TASK>
[   25.044220]  dump_stack_lvl+0x73/0xb0
[   25.044292]  print_report+0xd1/0x610
[   25.044313]  ? __virt_addr_valid+0x1db/0x2d0
[   25.044362]  ? kmalloc_oob_left+0x361/0x3c0
[   25.044402]  ? kasan_complete_mode_report_info+0x64/0x200
[   25.044426]  ? kmalloc_oob_left+0x361/0x3c0
[   25.044447]  kasan_report+0x141/0x180
[   25.044467]  ? kmalloc_oob_left+0x361/0x3c0
[   25.044492]  __asan_report_load1_noabort+0x18/0x20
[   25.044515]  kmalloc_oob_left+0x361/0x3c0
[   25.044535]  ? __pfx_kmalloc_oob_left+0x10/0x10
[   25.044557]  ? __schedule+0x10c6/0x2b60
[   25.044579]  ? __pfx_read_tsc+0x10/0x10
[   25.044599]  ? ktime_get_ts64+0x86/0x230
[   25.044623]  kunit_try_run_case+0x1a5/0x480
[   25.044647]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.044667]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.044689]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.044711]  ? __kthread_parkme+0x82/0x180
[   25.044734]  ? preempt_count_sub+0x50/0x80
[   25.044756]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.044779]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.044800]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.044823]  kthread+0x337/0x6f0
[   25.044841]  ? trace_preempt_on+0x20/0xc0
[   25.044864]  ? __pfx_kthread+0x10/0x10
[   25.044883]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.044903]  ? calculate_sigpending+0x7b/0xa0
[   25.044926]  ? __pfx_kthread+0x10/0x10
[   25.044946]  ret_from_fork+0x116/0x1d0
[   25.044963]  ? __pfx_kthread+0x10/0x10
[   25.044982]  ret_from_fork_asm+0x1a/0x30
[   25.045013]  </TASK>
[   25.045024] 
[   25.056717] Allocated by task 21:
[   25.056842]  kasan_save_stack+0x45/0x70
[   25.056981]  kasan_save_track+0x18/0x40
[   25.057122]  kasan_save_alloc_info+0x3b/0x50
[   25.057332]  __kasan_kmalloc+0xb7/0xc0
[   25.057465]  __kmalloc_cache_node_noprof+0x188/0x420
[   25.057662]  build_sched_domains+0x38c/0x5d80
[   25.057866]  partition_sched_domains+0x471/0x9c0
[   25.058033]  rebuild_sched_domains_locked+0x97d/0xd50
[   25.058267]  cpuset_update_active_cpus+0x80f/0x1a90
[   25.058581]  sched_cpu_activate+0x2bf/0x330
[   25.059012]  cpuhp_invoke_callback+0x2a1/0xf00
[   25.059249]  cpuhp_thread_fun+0x2ce/0x5c0
[   25.059768]  smpboot_thread_fn+0x2bc/0x730
[   25.059961]  kthread+0x337/0x6f0
[   25.060123]  ret_from_fork+0x116/0x1d0
[   25.060632]  ret_from_fork_asm+0x1a/0x30
[   25.060884] 
[   25.061163] Freed by task 21:
[   25.061387]  kasan_save_stack+0x45/0x70
[   25.061579]  kasan_save_track+0x18/0x40
[   25.061750]  kasan_save_free_info+0x3f/0x60
[   25.061939]  __kasan_slab_free+0x56/0x70
[   25.062125]  kfree+0x222/0x3f0
[   25.062608]  build_sched_domains+0x2072/0x5d80
[   25.062956]  partition_sched_domains+0x471/0x9c0
[   25.063199]  rebuild_sched_domains_locked+0x97d/0xd50
[   25.063940]  cpuset_update_active_cpus+0x80f/0x1a90
[   25.064189]  sched_cpu_activate+0x2bf/0x330
[   25.064678]  cpuhp_invoke_callback+0x2a1/0xf00
[   25.064890]  cpuhp_thread_fun+0x2ce/0x5c0
[   25.065065]  smpboot_thread_fn+0x2bc/0x730
[   25.065219]  kthread+0x337/0x6f0
[   25.065330]  ret_from_fork+0x116/0x1d0
[   25.065620]  ret_from_fork_asm+0x1a/0x30
[   25.065810] 
[   25.065880] The buggy address belongs to the object at ffff888104561c40
[   25.065880]  which belongs to the cache kmalloc-16 of size 16
[   25.066664] The buggy address is located 15 bytes to the right of
[   25.066664]  allocated 16-byte region [ffff888104561c40, ffff888104561c50)
[   25.067231] 
[   25.067301] The buggy address belongs to the physical page:
[   25.067599] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104561
[   25.067942] flags: 0x200000000000000(node=0|zone=2)
[   25.068146] page_type: f5(slab)
[   25.068268] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122
[   25.068565] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   25.069097] page dumped because: kasan: bad access detected
[   25.069475] 
[   25.069703] Memory state around the buggy address:
[   25.069919]  ffff888104561b00: fa fb fc fc 00 06 fc fc 00 06 fc fc 00 06 fc fc
[   25.070302]  ffff888104561b80: fa fb fc fc 00 00 fc fc fa fb fc fc fa fb fc fc
[   25.070555] >ffff888104561c00: fa fb fc fc fa fb fc fc fa fb fc fc 00 07 fc fc
[   25.070855]                                                     ^
[   25.071106]  ffff888104561c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.071600]  ffff888104561d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.071830] ==================================================================