Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.143166] ================================================================== [ 16.143232] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 16.144091] Free of addr fff00000c3f83001 by task kunit_try_catch/211 [ 16.144437] [ 16.144495] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 16.144692] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.144762] Hardware name: linux,dummy-virt (DT) [ 16.145203] Call trace: [ 16.145233] show_stack+0x20/0x38 (C) [ 16.145441] dump_stack_lvl+0x8c/0xd0 [ 16.145630] print_report+0x118/0x5d0 [ 16.145876] kasan_report_invalid_free+0xc0/0xe8 [ 16.145999] check_slab_allocation+0xfc/0x108 [ 16.146049] __kasan_slab_pre_free+0x2c/0x48 [ 16.146099] kmem_cache_free+0xf0/0x468 [ 16.146517] kmem_cache_invalid_free+0x184/0x3c8 [ 16.146840] kunit_try_run_case+0x170/0x3f0 [ 16.147132] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.147235] kthread+0x328/0x630 [ 16.147305] ret_from_fork+0x10/0x20 [ 16.147562] [ 16.147583] Allocated by task 211: [ 16.147617] kasan_save_stack+0x3c/0x68 [ 16.147662] kasan_save_track+0x20/0x40 [ 16.147917] kasan_save_alloc_info+0x40/0x58 [ 16.148132] __kasan_slab_alloc+0xa8/0xb0 [ 16.148284] kmem_cache_alloc_noprof+0x10c/0x398 [ 16.148334] kmem_cache_invalid_free+0x12c/0x3c8 [ 16.148382] kunit_try_run_case+0x170/0x3f0 [ 16.148838] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.149260] kthread+0x328/0x630 [ 16.149553] ret_from_fork+0x10/0x20 [ 16.149800] [ 16.149822] The buggy address belongs to the object at fff00000c3f83000 [ 16.149822] which belongs to the cache test_cache of size 200 [ 16.150020] The buggy address is located 1 bytes inside of [ 16.150020] 200-byte region [fff00000c3f83000, fff00000c3f830c8) [ 16.150099] [ 16.150131] The buggy address belongs to the physical page: [ 16.150321] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f83 [ 16.150637] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.150830] page_type: f5(slab) [ 16.151222] raw: 0bfffe0000000000 fff00000c3f173c0 dead000000000122 0000000000000000 [ 16.151399] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 16.151655] page dumped because: kasan: bad access detected [ 16.151724] [ 16.151744] Memory state around the buggy address: [ 16.151779] fff00000c3f82f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.151826] fff00000c3f82f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.152226] >fff00000c3f83000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.152286] ^ [ 16.152414] fff00000c3f83080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 16.152506] fff00000c3f83100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.152848] ==================================================================
[ 13.322410] ================================================================== [ 13.322861] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 13.323256] Free of addr ffff888102b0d001 by task kunit_try_catch/228 [ 13.323497] [ 13.323743] CPU: 0 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 13.323790] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.323802] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.323837] Call Trace: [ 13.323849] <TASK> [ 13.323865] dump_stack_lvl+0x73/0xb0 [ 13.323897] print_report+0xd1/0x610 [ 13.323920] ? __virt_addr_valid+0x1db/0x2d0 [ 13.323945] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.323966] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.323991] kasan_report_invalid_free+0x10a/0x130 [ 13.324014] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.324039] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.324089] check_slab_allocation+0x11f/0x130 [ 13.324110] __kasan_slab_pre_free+0x28/0x40 [ 13.324130] kmem_cache_free+0xed/0x420 [ 13.324149] ? kasan_save_track+0x18/0x40 [ 13.324168] ? kasan_save_stack+0x45/0x70 [ 13.324187] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.324210] ? kmem_cache_invalid_free+0x157/0x460 [ 13.324238] kmem_cache_invalid_free+0x1d8/0x460 [ 13.324263] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 13.324286] ? finish_task_switch.isra.0+0x153/0x700 [ 13.324309] ? __switch_to+0x47/0xf50 [ 13.324395] ? __pfx_read_tsc+0x10/0x10 [ 13.324421] ? ktime_get_ts64+0x86/0x230 [ 13.324445] kunit_try_run_case+0x1a5/0x480 [ 13.324473] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.324495] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.324520] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.324564] ? __kthread_parkme+0x82/0x180 [ 13.324584] ? preempt_count_sub+0x50/0x80 [ 13.324606] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.324630] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.324652] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.324675] kthread+0x337/0x6f0 [ 13.324694] ? trace_preempt_on+0x20/0xc0 [ 13.324716] ? __pfx_kthread+0x10/0x10 [ 13.324737] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.324757] ? calculate_sigpending+0x7b/0xa0 [ 13.324781] ? __pfx_kthread+0x10/0x10 [ 13.324802] ret_from_fork+0x116/0x1d0 [ 13.324829] ? __pfx_kthread+0x10/0x10 [ 13.324855] ret_from_fork_asm+0x1a/0x30 [ 13.324885] </TASK> [ 13.324896] [ 13.334330] Allocated by task 228: [ 13.334466] kasan_save_stack+0x45/0x70 [ 13.334607] kasan_save_track+0x18/0x40 [ 13.334746] kasan_save_alloc_info+0x3b/0x50 [ 13.335008] __kasan_slab_alloc+0x91/0xa0 [ 13.335382] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.335667] kmem_cache_invalid_free+0x157/0x460 [ 13.335916] kunit_try_run_case+0x1a5/0x480 [ 13.336156] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.336488] kthread+0x337/0x6f0 [ 13.336615] ret_from_fork+0x116/0x1d0 [ 13.336777] ret_from_fork_asm+0x1a/0x30 [ 13.337030] [ 13.337122] The buggy address belongs to the object at ffff888102b0d000 [ 13.337122] which belongs to the cache test_cache of size 200 [ 13.337780] The buggy address is located 1 bytes inside of [ 13.337780] 200-byte region [ffff888102b0d000, ffff888102b0d0c8) [ 13.338437] [ 13.338528] The buggy address belongs to the physical page: [ 13.338722] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b0d [ 13.339056] flags: 0x200000000000000(node=0|zone=2) [ 13.339463] page_type: f5(slab) [ 13.339640] raw: 0200000000000000 ffff888101a35b40 dead000000000122 0000000000000000 [ 13.340025] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.340473] page dumped because: kasan: bad access detected [ 13.340731] [ 13.340835] Memory state around the buggy address: [ 13.341085] ffff888102b0cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.341499] ffff888102b0cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.341784] >ffff888102b0d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.342092] ^ [ 13.342356] ffff888102b0d080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.342733] ffff888102b0d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.343130] ==================================================================