Date
June 25, 2025, 8:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.281560] ================================================================== [ 26.281661] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 26.281726] Read of size 1 at addr fff00000c3f9da7f by task kunit_try_catch/150 [ 26.281777] [ 26.281814] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT [ 26.281908] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.282047] Hardware name: linux,dummy-virt (DT) [ 26.282214] Call trace: [ 26.282259] show_stack+0x20/0x38 (C) [ 26.282365] dump_stack_lvl+0x8c/0xd0 [ 26.282447] print_report+0x118/0x608 [ 26.282492] kasan_report+0xdc/0x128 [ 26.282536] __asan_report_load1_noabort+0x20/0x30 [ 26.282582] kmalloc_oob_left+0x2ec/0x320 [ 26.282625] kunit_try_run_case+0x170/0x3f0 [ 26.282673] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.282724] kthread+0x328/0x630 [ 26.282764] ret_from_fork+0x10/0x20 [ 26.282812] [ 26.282829] Allocated by task 21: [ 26.282857] kasan_save_stack+0x3c/0x68 [ 26.282896] kasan_save_track+0x20/0x40 [ 26.282932] kasan_save_alloc_info+0x40/0x58 [ 26.282966] __kasan_kmalloc+0xd4/0xd8 [ 26.283001] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 26.283042] build_sched_domains+0x32c/0x3768 [ 26.283095] partition_sched_domains+0x79c/0x1098 [ 26.283250] rebuild_sched_domains_locked+0x494/0xde0 [ 26.283326] cpuset_handle_hotplug+0xab0/0x1480 [ 26.283426] cpuset_update_active_cpus+0x18/0x30 [ 26.283561] sched_cpu_activate+0x2d0/0x388 [ 26.283616] cpuhp_invoke_callback+0x5b8/0x1620 [ 26.283657] cpuhp_thread_fun+0x230/0x5d8 [ 26.283693] smpboot_thread_fn+0x2e8/0x760 [ 26.283730] kthread+0x328/0x630 [ 26.283760] ret_from_fork+0x10/0x20 [ 26.283794] [ 26.283823] Freed by task 21: [ 26.283858] kasan_save_stack+0x3c/0x68 [ 26.283926] kasan_save_track+0x20/0x40 [ 26.284030] kasan_save_free_info+0x4c/0x78 [ 26.284084] __kasan_slab_free+0x6c/0x98 [ 26.284129] kfree+0x214/0x3c8 [ 26.284217] build_sched_domains+0x1c64/0x3768 [ 26.284331] partition_sched_domains+0x79c/0x1098 [ 26.284374] rebuild_sched_domains_locked+0x494/0xde0 [ 26.284425] cpuset_handle_hotplug+0xab0/0x1480 [ 26.284460] cpuset_update_active_cpus+0x18/0x30 [ 26.284505] sched_cpu_activate+0x2d0/0x388 [ 26.284588] cpuhp_invoke_callback+0x5b8/0x1620 [ 26.284627] cpuhp_thread_fun+0x230/0x5d8 [ 26.284815] smpboot_thread_fn+0x2e8/0x760 [ 26.284856] kthread+0x328/0x630 [ 26.284886] ret_from_fork+0x10/0x20 [ 26.284930] [ 26.284952] The buggy address belongs to the object at fff00000c3f9da60 [ 26.284952] which belongs to the cache kmalloc-16 of size 16 [ 26.285008] The buggy address is located 15 bytes to the right of [ 26.285008] allocated 16-byte region [fff00000c3f9da60, fff00000c3f9da70) [ 26.285068] [ 26.285088] The buggy address belongs to the physical page: [ 26.285119] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f9d [ 26.285186] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.285341] page_type: f5(slab) [ 26.285380] raw: 0bfffe0000000000 fff00000c0001640 dead000000000100 dead000000000122 [ 26.285439] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 26.285477] page dumped because: kasan: bad access detected [ 26.285506] [ 26.285524] Memory state around the buggy address: [ 26.285650] fff00000c3f9d900: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 26.285949] fff00000c3f9d980: fa fb fc fc fa fb fc fc 00 00 fc fc fa fb fc fc [ 26.286004] >fff00000c3f9da00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 26.286041] ^ [ 26.286089] fff00000c3f9da80: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.286156] fff00000c3f9db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.286223] ==================================================================
[ 21.250292] ================================================================== [ 21.250769] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 21.251282] Read of size 1 at addr ffff888102797ebf by task kunit_try_catch/167 [ 21.251589] [ 21.251721] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) [ 21.251771] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.251783] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.251806] Call Trace: [ 21.251819] <TASK> [ 21.251837] dump_stack_lvl+0x73/0xb0 [ 21.251877] print_report+0xd1/0x650 [ 21.251898] ? __virt_addr_valid+0x1db/0x2d0 [ 21.252109] ? kmalloc_oob_left+0x361/0x3c0 [ 21.252140] ? kasan_complete_mode_report_info+0x64/0x200 [ 21.252164] ? kmalloc_oob_left+0x361/0x3c0 [ 21.252198] kasan_report+0x141/0x180 [ 21.252219] ? kmalloc_oob_left+0x361/0x3c0 [ 21.252242] __asan_report_load1_noabort+0x18/0x20 [ 21.252273] kmalloc_oob_left+0x361/0x3c0 [ 21.252293] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 21.252314] ? __pfx_queued_spin_lock_slowpath+0x10/0x10 [ 21.252352] ? __pfx_read_tsc+0x10/0x10 [ 21.252373] ? ktime_get_ts64+0x86/0x230 [ 21.252398] kunit_try_run_case+0x1a5/0x480 [ 21.252423] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.252453] ? _raw_spin_lock_irqsave+0xf9/0x100 [ 21.252472] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.252496] ? __kthread_parkme+0x82/0x180 [ 21.252526] ? preempt_count_sub+0x50/0x80 [ 21.252548] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.252570] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.252591] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.252613] kthread+0x337/0x6f0 [ 21.252631] ? trace_preempt_on+0x20/0xc0 [ 21.252653] ? __pfx_kthread+0x10/0x10 [ 21.252672] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.252693] ? calculate_sigpending+0x7b/0xa0 [ 21.252716] ? __pfx_kthread+0x10/0x10 [ 21.252736] ret_from_fork+0x116/0x1d0 [ 21.252754] ? __pfx_kthread+0x10/0x10 [ 21.252773] ret_from_fork_asm+0x1a/0x30 [ 21.252801] </TASK> [ 21.252859] [ 21.260513] Allocated by task 21: [ 21.260657] kasan_save_stack+0x45/0x70 [ 21.260794] kasan_save_track+0x18/0x40 [ 21.260920] kasan_save_alloc_info+0x3b/0x50 [ 21.261260] __kasan_kmalloc+0xb7/0xc0 [ 21.261442] __kmalloc_cache_node_noprof+0x188/0x420 [ 21.261669] build_sched_domains+0x38c/0x5dd0 [ 21.261945] partition_sched_domains+0x471/0x9c0 [ 21.262177] rebuild_sched_domains_locked+0x97d/0xd50 [ 21.262412] cpuset_update_active_cpus+0x80f/0x1a90 [ 21.262565] sched_cpu_activate+0x2bf/0x330 [ 21.262739] cpuhp_invoke_callback+0x2a1/0xf00 [ 21.263034] cpuhp_thread_fun+0x2ce/0x5c0 [ 21.263267] smpboot_thread_fn+0x2bc/0x730 [ 21.263429] kthread+0x337/0x6f0 [ 21.263542] ret_from_fork+0x116/0x1d0 [ 21.263666] ret_from_fork_asm+0x1a/0x30 [ 21.264047] [ 21.264202] Freed by task 21: [ 21.264371] kasan_save_stack+0x45/0x70 [ 21.264557] kasan_save_track+0x18/0x40 [ 21.264738] kasan_save_free_info+0x3f/0x60 [ 21.265017] __kasan_slab_free+0x56/0x70 [ 21.265253] kfree+0x222/0x3f0 [ 21.265411] build_sched_domains+0x1fff/0x5dd0 [ 21.265619] partition_sched_domains+0x471/0x9c0 [ 21.265926] rebuild_sched_domains_locked+0x97d/0xd50 [ 21.266129] cpuset_update_active_cpus+0x80f/0x1a90 [ 21.266286] sched_cpu_activate+0x2bf/0x330 [ 21.266483] cpuhp_invoke_callback+0x2a1/0xf00 [ 21.266685] cpuhp_thread_fun+0x2ce/0x5c0 [ 21.266967] smpboot_thread_fn+0x2bc/0x730 [ 21.267170] kthread+0x337/0x6f0 [ 21.267330] ret_from_fork+0x116/0x1d0 [ 21.267490] ret_from_fork_asm+0x1a/0x30 [ 21.267718] [ 21.267789] The buggy address belongs to the object at ffff888102797ea0 [ 21.267789] which belongs to the cache kmalloc-16 of size 16 [ 21.268700] The buggy address is located 15 bytes to the right of [ 21.268700] allocated 16-byte region [ffff888102797ea0, ffff888102797eb0) [ 21.269355] [ 21.269459] The buggy address belongs to the physical page: [ 21.269695] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102797 [ 21.270093] flags: 0x200000000000000(node=0|zone=2) [ 21.270347] page_type: f5(slab) [ 21.270463] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122 [ 21.270873] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 21.271184] page dumped because: kasan: bad access detected [ 21.271452] [ 21.271522] Memory state around the buggy address: [ 21.271670] ffff888102797d80: 00 06 fc fc 00 06 fc fc fa fb fc fc fa fb fc fc [ 21.272135] ffff888102797e00: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 21.272467] >ffff888102797e80: fa fb fc fc fa fb fc fc 00 07 fc fc fc fc fc fc [ 21.272862] ^ [ 21.273130] ffff888102797f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.273337] ffff888102797f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.273596] ==================================================================