Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.563616] ================================================================== [ 31.564108] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 31.564494] Free of addr fff00000c774f001 by task kunit_try_catch/222 [ 31.564721] [ 31.564946] CPU: 1 UID: 0 PID: 222 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 31.565425] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.565600] Hardware name: linux,dummy-virt (DT) [ 31.565707] Call trace: [ 31.565944] show_stack+0x20/0x38 (C) [ 31.566082] dump_stack_lvl+0x8c/0xd0 [ 31.566221] print_report+0x118/0x608 [ 31.566355] kasan_report_invalid_free+0xc0/0xe8 [ 31.566706] check_slab_allocation+0xfc/0x108 [ 31.567000] __kasan_slab_pre_free+0x2c/0x48 [ 31.567276] kmem_cache_free+0xf0/0x468 [ 31.567631] kmem_cache_invalid_free+0x184/0x3c8 [ 31.567862] kunit_try_run_case+0x170/0x3f0 [ 31.568051] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.568204] kthread+0x328/0x630 [ 31.568393] ret_from_fork+0x10/0x20 [ 31.568600] [ 31.568652] Allocated by task 222: [ 31.568727] kasan_save_stack+0x3c/0x68 [ 31.568824] kasan_save_track+0x20/0x40 [ 31.568924] kasan_save_alloc_info+0x40/0x58 [ 31.569026] __kasan_slab_alloc+0xa8/0xb0 [ 31.569564] kmem_cache_alloc_noprof+0x10c/0x398 [ 31.569919] kmem_cache_invalid_free+0x12c/0x3c8 [ 31.570032] kunit_try_run_case+0x170/0x3f0 [ 31.570148] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.570239] kthread+0x328/0x630 [ 31.570337] ret_from_fork+0x10/0x20 [ 31.570410] [ 31.570456] The buggy address belongs to the object at fff00000c774f000 [ 31.570456] which belongs to the cache test_cache of size 200 [ 31.570906] The buggy address is located 1 bytes inside of [ 31.570906] 200-byte region [fff00000c774f000, fff00000c774f0c8) [ 31.571087] [ 31.571150] The buggy address belongs to the physical page: [ 31.571263] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10774f [ 31.571561] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.571689] page_type: f5(slab) [ 31.571897] raw: 0bfffe0000000000 fff00000c1112c80 dead000000000122 0000000000000000 [ 31.572217] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 31.572325] page dumped because: kasan: bad access detected [ 31.572393] [ 31.572435] Memory state around the buggy address: [ 31.572517] fff00000c774ef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.572668] fff00000c774ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.572821] >fff00000c774f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.572969] ^ [ 31.573069] fff00000c774f080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.573178] fff00000c774f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.573275] ==================================================================
[ 27.896642] ================================================================== [ 27.897278] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 27.898276] Free of addr ffff88810376d001 by task kunit_try_catch/240 [ 27.898840] [ 27.899204] CPU: 1 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 27.899373] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.899439] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.899502] Call Trace: [ 27.899539] <TASK> [ 27.899581] dump_stack_lvl+0x73/0xb0 [ 27.899662] print_report+0xd1/0x650 [ 27.899770] ? __virt_addr_valid+0x1db/0x2d0 [ 27.899862] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.899928] ? kmem_cache_invalid_free+0x1d8/0x460 [ 27.899982] kasan_report_invalid_free+0x10a/0x130 [ 27.900028] ? kmem_cache_invalid_free+0x1d8/0x460 [ 27.900076] ? kmem_cache_invalid_free+0x1d8/0x460 [ 27.900143] check_slab_allocation+0x11f/0x130 [ 27.900189] __kasan_slab_pre_free+0x28/0x40 [ 27.900235] kmem_cache_free+0xed/0x420 [ 27.900283] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 27.900329] ? kmem_cache_invalid_free+0x1d8/0x460 [ 27.900385] kmem_cache_invalid_free+0x1d8/0x460 [ 27.900467] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 27.900534] ? finish_task_switch.isra.0+0x153/0x700 [ 27.900588] ? __switch_to+0x47/0xf50 [ 27.900645] ? __pfx_read_tsc+0x10/0x10 [ 27.900670] ? ktime_get_ts64+0x86/0x230 [ 27.900698] kunit_try_run_case+0x1a5/0x480 [ 27.900727] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.900751] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.900776] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.900800] ? __kthread_parkme+0x82/0x180 [ 27.900823] ? preempt_count_sub+0x50/0x80 [ 27.900847] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.900871] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.900895] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.900934] kthread+0x337/0x6f0 [ 27.900961] ? trace_preempt_on+0x20/0xc0 [ 27.900987] ? __pfx_kthread+0x10/0x10 [ 27.901008] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.901031] ? calculate_sigpending+0x7b/0xa0 [ 27.901056] ? __pfx_kthread+0x10/0x10 [ 27.901078] ret_from_fork+0x116/0x1d0 [ 27.901114] ? __pfx_kthread+0x10/0x10 [ 27.901143] ret_from_fork_asm+0x1a/0x30 [ 27.901176] </TASK> [ 27.901189] [ 27.914096] Allocated by task 240: [ 27.914544] kasan_save_stack+0x45/0x70 [ 27.914993] kasan_save_track+0x18/0x40 [ 27.915371] kasan_save_alloc_info+0x3b/0x50 [ 27.915831] __kasan_slab_alloc+0x91/0xa0 [ 27.916301] kmem_cache_alloc_noprof+0x123/0x3f0 [ 27.916770] kmem_cache_invalid_free+0x157/0x460 [ 27.917259] kunit_try_run_case+0x1a5/0x480 [ 27.917690] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.918246] kthread+0x337/0x6f0 [ 27.918622] ret_from_fork+0x116/0x1d0 [ 27.919053] ret_from_fork_asm+0x1a/0x30 [ 27.919407] [ 27.919517] The buggy address belongs to the object at ffff88810376d000 [ 27.919517] which belongs to the cache test_cache of size 200 [ 27.919765] The buggy address is located 1 bytes inside of [ 27.919765] 200-byte region [ffff88810376d000, ffff88810376d0c8) [ 27.920410] [ 27.920683] The buggy address belongs to the physical page: [ 27.921289] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10376d [ 27.921986] flags: 0x200000000000000(node=0|zone=2) [ 27.922474] page_type: f5(slab) [ 27.922809] raw: 0200000000000000 ffff88810376a000 dead000000000122 0000000000000000 [ 27.923205] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 27.923734] page dumped because: kasan: bad access detected [ 27.924250] [ 27.924473] Memory state around the buggy address: [ 27.924793] ffff88810376cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.925321] ffff88810376cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.925969] >ffff88810376d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.926594] ^ [ 27.926838] ffff88810376d080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 27.927354] ffff88810376d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.927525] ==================================================================