Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.423644] ================================================================== [ 30.423938] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 30.424413] Free of addr fff00000c9b27001 by task kunit_try_catch/242 [ 30.424478] [ 30.424658] CPU: 1 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 30.424754] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.424780] Hardware name: linux,dummy-virt (DT) [ 30.424814] Call trace: [ 30.424838] show_stack+0x20/0x38 (C) [ 30.424892] dump_stack_lvl+0x8c/0xd0 [ 30.424945] print_report+0x118/0x5d0 [ 30.424988] kasan_report_invalid_free+0xc0/0xe8 [ 30.425036] check_slab_allocation+0xfc/0x108 [ 30.426437] __kasan_slab_pre_free+0x2c/0x48 [ 30.426557] kmem_cache_free+0xf0/0x468 [ 30.426610] kmem_cache_invalid_free+0x184/0x3c8 [ 30.426660] kunit_try_run_case+0x170/0x3f0 [ 30.426746] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.426852] kthread+0x328/0x630 [ 30.426997] ret_from_fork+0x10/0x20 [ 30.427078] [ 30.427099] Allocated by task 242: [ 30.427129] kasan_save_stack+0x3c/0x68 [ 30.427553] kasan_save_track+0x20/0x40 [ 30.428076] kasan_save_alloc_info+0x40/0x58 [ 30.428125] __kasan_slab_alloc+0xa8/0xb0 [ 30.428162] kmem_cache_alloc_noprof+0x10c/0x398 [ 30.428203] kmem_cache_invalid_free+0x12c/0x3c8 [ 30.428244] kunit_try_run_case+0x170/0x3f0 [ 30.428282] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.428332] kthread+0x328/0x630 [ 30.428492] ret_from_fork+0x10/0x20 [ 30.428559] [ 30.428579] The buggy address belongs to the object at fff00000c9b27000 [ 30.428579] which belongs to the cache test_cache of size 200 [ 30.428655] The buggy address is located 1 bytes inside of [ 30.428655] 200-byte region [fff00000c9b27000, fff00000c9b270c8) [ 30.428717] [ 30.428739] The buggy address belongs to the physical page: [ 30.428824] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b27 [ 30.429239] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.429330] page_type: f5(slab) [ 30.429714] raw: 0bfffe0000000000 fff00000c58173c0 dead000000000122 0000000000000000 [ 30.429869] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 30.429913] page dumped because: kasan: bad access detected [ 30.429944] [ 30.429963] Memory state around the buggy address: [ 30.430284] fff00000c9b26f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.430342] fff00000c9b26f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.430658] >fff00000c9b27000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.430719] ^ [ 30.430748] fff00000c9b27080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 30.430847] fff00000c9b27100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.430886] ==================================================================
[ 26.384999] ================================================================== [ 26.385815] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 26.386053] Free of addr ffff888105ff8001 by task kunit_try_catch/260 [ 26.386374] [ 26.386813] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 26.386869] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.386880] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.386901] Call Trace: [ 26.386914] <TASK> [ 26.386932] dump_stack_lvl+0x73/0xb0 [ 26.387276] print_report+0xd1/0x610 [ 26.387313] ? __virt_addr_valid+0x1db/0x2d0 [ 26.387339] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.387363] ? kmem_cache_invalid_free+0x1d8/0x460 [ 26.387387] kasan_report_invalid_free+0x10a/0x130 [ 26.387410] ? kmem_cache_invalid_free+0x1d8/0x460 [ 26.387435] ? kmem_cache_invalid_free+0x1d8/0x460 [ 26.387458] check_slab_allocation+0x11f/0x130 [ 26.387479] __kasan_slab_pre_free+0x28/0x40 [ 26.387498] kmem_cache_free+0xed/0x420 [ 26.387517] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 26.387539] ? kmem_cache_invalid_free+0x1d8/0x460 [ 26.387565] kmem_cache_invalid_free+0x1d8/0x460 [ 26.387588] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 26.387610] ? finish_task_switch.isra.0+0x153/0x700 [ 26.387630] ? __switch_to+0x47/0xf80 [ 26.387659] ? __pfx_read_tsc+0x10/0x10 [ 26.387680] ? ktime_get_ts64+0x86/0x230 [ 26.387704] kunit_try_run_case+0x1a5/0x480 [ 26.387729] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.387749] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.387772] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.387794] ? __kthread_parkme+0x82/0x180 [ 26.387817] ? preempt_count_sub+0x50/0x80 [ 26.387839] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.387862] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.387889] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.387911] kthread+0x337/0x6f0 [ 26.387929] ? trace_preempt_on+0x20/0xc0 [ 26.387953] ? __pfx_kthread+0x10/0x10 [ 26.387972] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.387993] ? calculate_sigpending+0x7b/0xa0 [ 26.388016] ? __pfx_kthread+0x10/0x10 [ 26.388036] ret_from_fork+0x116/0x1d0 [ 26.388055] ? __pfx_kthread+0x10/0x10 [ 26.388074] ret_from_fork_asm+0x1a/0x30 [ 26.388114] </TASK> [ 26.388125] [ 26.404329] Allocated by task 260: [ 26.404792] kasan_save_stack+0x45/0x70 [ 26.405037] kasan_save_track+0x18/0x40 [ 26.405177] kasan_save_alloc_info+0x3b/0x50 [ 26.405336] __kasan_slab_alloc+0x91/0xa0 [ 26.405714] kmem_cache_alloc_noprof+0x123/0x3f0 [ 26.406239] kmem_cache_invalid_free+0x157/0x460 [ 26.406690] kunit_try_run_case+0x1a5/0x480 [ 26.407101] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.407456] kthread+0x337/0x6f0 [ 26.407802] ret_from_fork+0x116/0x1d0 [ 26.408091] ret_from_fork_asm+0x1a/0x30 [ 26.408225] [ 26.408306] The buggy address belongs to the object at ffff888105ff8000 [ 26.408306] which belongs to the cache test_cache of size 200 [ 26.409567] The buggy address is located 1 bytes inside of [ 26.409567] 200-byte region [ffff888105ff8000, ffff888105ff80c8) [ 26.410382] [ 26.410468] The buggy address belongs to the physical page: [ 26.410895] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ff8 [ 26.411688] flags: 0x200000000000000(node=0|zone=2) [ 26.412179] page_type: f5(slab) [ 26.412683] raw: 0200000000000000 ffff8881015d8780 dead000000000122 0000000000000000 [ 26.413217] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 26.413693] page dumped because: kasan: bad access detected [ 26.414180] [ 26.414330] Memory state around the buggy address: [ 26.414521] ffff888105ff7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.414864] ffff888105ff7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.415170] >ffff888105ff8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.415920] ^ [ 26.416091] ffff888105ff8080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 26.416624] ffff888105ff8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.417346] ==================================================================