Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.854076] ================================================================== [ 30.854174] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 30.854241] Read of size 1 at addr fff00000c798161f by task kunit_try_catch/169 [ 30.854614] [ 30.854713] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT [ 30.855150] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.855310] Hardware name: linux,dummy-virt (DT) [ 30.855493] Call trace: [ 30.855546] show_stack+0x20/0x38 (C) [ 30.855680] dump_stack_lvl+0x8c/0xd0 [ 30.855771] print_report+0x118/0x5d0 [ 30.855818] kasan_report+0xdc/0x128 [ 30.855880] __asan_report_load1_noabort+0x20/0x30 [ 30.855927] kmalloc_oob_left+0x2ec/0x320 [ 30.856172] kunit_try_run_case+0x170/0x3f0 [ 30.856242] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.856295] kthread+0x328/0x630 [ 30.856428] ret_from_fork+0x10/0x20 [ 30.856872] [ 30.856904] Allocated by task 102: [ 30.856940] kasan_save_stack+0x3c/0x68 [ 30.856982] kasan_save_track+0x20/0x40 [ 30.857019] kasan_save_alloc_info+0x40/0x58 [ 30.857086] __kasan_kmalloc+0xd4/0xd8 [ 30.857123] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 30.857254] kvasprintf+0xe0/0x180 [ 30.857297] kasprintf+0xd0/0x110 [ 30.857331] miscdev_test_can_open+0xac/0x2c8 [ 30.857375] miscdev_test_collision+0x2f0/0x560 [ 30.857411] kunit_try_run_case+0x170/0x3f0 [ 30.857448] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.857493] kthread+0x328/0x630 [ 30.857524] ret_from_fork+0x10/0x20 [ 30.857559] [ 30.857591] Freed by task 102: [ 30.857630] kasan_save_stack+0x3c/0x68 [ 30.857668] kasan_save_track+0x20/0x40 [ 30.857705] kasan_save_free_info+0x4c/0x78 [ 30.857740] __kasan_slab_free+0x6c/0x98 [ 30.857777] kfree+0x214/0x3c8 [ 30.857810] miscdev_test_can_open+0x138/0x2c8 [ 30.857846] miscdev_test_collision+0x2f0/0x560 [ 30.857882] kunit_try_run_case+0x170/0x3f0 [ 30.858170] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.858254] kthread+0x328/0x630 [ 30.858286] ret_from_fork+0x10/0x20 [ 30.858334] [ 30.858411] The buggy address belongs to the object at fff00000c7981600 [ 30.858411] which belongs to the cache kmalloc-16 of size 16 [ 30.858596] The buggy address is located 15 bytes to the right of [ 30.858596] allocated 16-byte region [fff00000c7981600, fff00000c7981610) [ 30.858681] [ 30.858713] The buggy address belongs to the physical page: [ 30.858779] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107981 [ 30.858842] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.858888] page_type: f5(slab) [ 30.858926] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 30.859126] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 30.859217] page dumped because: kasan: bad access detected [ 30.859247] [ 30.859265] Memory state around the buggy address: [ 30.859295] fff00000c7981500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.859336] fff00000c7981580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.859378] >fff00000c7981600: fa fb fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 30.859782] ^ [ 30.859853] fff00000c7981680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.859940] fff00000c7981700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.859978] ==================================================================
[ 22.717885] ================================================================== [ 22.718418] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 22.718714] Read of size 1 at addr ffff8881025fe5bf by task kunit_try_catch/186 [ 22.719043] [ 22.719183] CPU: 1 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 22.719287] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.719300] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.719325] Call Trace: [ 22.719339] <TASK> [ 22.719361] dump_stack_lvl+0x73/0xb0 [ 22.719397] print_report+0xd1/0x610 [ 22.719421] ? __virt_addr_valid+0x1db/0x2d0 [ 22.719449] ? kmalloc_oob_left+0x361/0x3c0 [ 22.719470] ? kasan_complete_mode_report_info+0x64/0x200 [ 22.719498] ? kmalloc_oob_left+0x361/0x3c0 [ 22.719520] kasan_report+0x141/0x180 [ 22.719543] ? kmalloc_oob_left+0x361/0x3c0 [ 22.719569] __asan_report_load1_noabort+0x18/0x20 [ 22.719596] kmalloc_oob_left+0x361/0x3c0 [ 22.719618] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 22.719640] ? __schedule+0x10cc/0x2b60 [ 22.719670] ? __pfx_read_tsc+0x10/0x10 [ 22.719696] ? ktime_get_ts64+0x86/0x230 [ 22.719725] kunit_try_run_case+0x1a5/0x480 [ 22.719750] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.719884] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.719906] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.719935] ? __kthread_parkme+0x82/0x180 [ 22.719957] ? preempt_count_sub+0x50/0x80 [ 22.719982] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.720004] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.720042] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.720087] kthread+0x337/0x6f0 [ 22.720108] ? trace_preempt_on+0x20/0xc0 [ 22.720134] ? __pfx_kthread+0x10/0x10 [ 22.720157] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.720184] ? calculate_sigpending+0x7b/0xa0 [ 22.720212] ? __pfx_kthread+0x10/0x10 [ 22.720235] ret_from_fork+0x116/0x1d0 [ 22.720265] ? __pfx_kthread+0x10/0x10 [ 22.720287] ret_from_fork_asm+0x1a/0x30 [ 22.720323] </TASK> [ 22.720335] [ 22.730343] Allocated by task 21: [ 22.730515] kasan_save_stack+0x45/0x70 [ 22.730660] kasan_save_track+0x18/0x40 [ 22.730811] kasan_save_alloc_info+0x3b/0x50 [ 22.731020] __kasan_kmalloc+0xb7/0xc0 [ 22.731788] __kmalloc_cache_node_noprof+0x188/0x420 [ 22.732001] build_sched_domains+0x38c/0x5dd0 [ 22.732252] partition_sched_domains+0x471/0x9c0 [ 22.732549] rebuild_sched_domains_locked+0x97d/0xd50 [ 22.733113] cpuset_update_active_cpus+0x80f/0x1a90 [ 22.733532] sched_cpu_activate+0x2bf/0x330 [ 22.733718] cpuhp_invoke_callback+0x2a1/0xf00 [ 22.734108] cpuhp_thread_fun+0x2ce/0x5c0 [ 22.734265] smpboot_thread_fn+0x2bc/0x730 [ 22.734402] kthread+0x337/0x6f0 [ 22.734749] ret_from_fork+0x116/0x1d0 [ 22.735442] ret_from_fork_asm+0x1a/0x30 [ 22.735638] [ 22.736377] Freed by task 21: [ 22.737605] kasan_save_stack+0x45/0x70 [ 22.738576] kasan_save_track+0x18/0x40 [ 22.739023] kasan_save_free_info+0x3f/0x60 [ 22.739180] __kasan_slab_free+0x56/0x70 [ 22.739333] kfree+0x222/0x3f0 [ 22.739453] build_sched_domains+0x1fff/0x5dd0 [ 22.739603] partition_sched_domains+0x471/0x9c0 [ 22.739764] rebuild_sched_domains_locked+0x97d/0xd50 [ 22.739929] cpuset_update_active_cpus+0x80f/0x1a90 [ 22.740088] sched_cpu_activate+0x2bf/0x330 [ 22.740232] cpuhp_invoke_callback+0x2a1/0xf00 [ 22.740387] cpuhp_thread_fun+0x2ce/0x5c0 [ 22.741493] smpboot_thread_fn+0x2bc/0x730 [ 22.742450] kthread+0x337/0x6f0 [ 22.742638] ret_from_fork+0x116/0x1d0 [ 22.743520] ret_from_fork_asm+0x1a/0x30 [ 22.744099] [ 22.744495] The buggy address belongs to the object at ffff8881025fe5a0 [ 22.744495] which belongs to the cache kmalloc-16 of size 16 [ 22.745354] The buggy address is located 15 bytes to the right of [ 22.745354] allocated 16-byte region [ffff8881025fe5a0, ffff8881025fe5b0) [ 22.746136] [ 22.746218] The buggy address belongs to the physical page: [ 22.746409] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025fe [ 22.746651] flags: 0x200000000000000(node=0|zone=2) [ 22.746844] page_type: f5(slab) [ 22.746966] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122 [ 22.747892] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 22.748161] page dumped because: kasan: bad access detected [ 22.748424] [ 22.748515] Memory state around the buggy address: [ 22.749146] ffff8881025fe480: 00 06 fc fc 00 06 fc fc fa fb fc fc fa fb fc fc [ 22.749662] ffff8881025fe500: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 22.750300] >ffff8881025fe580: fa fb fc fc fa fb fc fc 00 07 fc fc fc fc fc fc [ 22.750949] ^ [ 22.751581] ffff8881025fe600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.752470] ffff8881025fe680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.753076] ==================================================================