Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.771411] ================================================================== [ 17.771481] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 17.771549] Free of addr fff00000c5a3b001 by task kunit_try_catch/211 [ 17.771591] [ 17.771630] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 17.771716] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.771742] Hardware name: linux,dummy-virt (DT) [ 17.771774] Call trace: [ 17.771799] show_stack+0x20/0x38 (C) [ 17.771852] dump_stack_lvl+0x8c/0xd0 [ 17.771904] print_report+0x118/0x608 [ 17.771953] kasan_report_invalid_free+0xc0/0xe8 [ 17.772004] check_slab_allocation+0xfc/0x108 [ 17.772054] __kasan_slab_pre_free+0x2c/0x48 [ 17.772102] kmem_cache_free+0xf0/0x468 [ 17.772151] kmem_cache_invalid_free+0x184/0x3c8 [ 17.772211] kunit_try_run_case+0x170/0x3f0 [ 17.772870] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.772945] kthread+0x328/0x630 [ 17.773281] ret_from_fork+0x10/0x20 [ 17.773351] [ 17.773369] Allocated by task 211: [ 17.773401] kasan_save_stack+0x3c/0x68 [ 17.773451] kasan_save_track+0x20/0x40 [ 17.773593] kasan_save_alloc_info+0x40/0x58 [ 17.773714] __kasan_slab_alloc+0xa8/0xb0 [ 17.773755] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.773794] kmem_cache_invalid_free+0x12c/0x3c8 [ 17.773833] kunit_try_run_case+0x170/0x3f0 [ 17.773871] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.774025] kthread+0x328/0x630 [ 17.774154] ret_from_fork+0x10/0x20 [ 17.774191] [ 17.774216] The buggy address belongs to the object at fff00000c5a3b000 [ 17.774216] which belongs to the cache test_cache of size 200 [ 17.774401] The buggy address is located 1 bytes inside of [ 17.774401] 200-byte region [fff00000c5a3b000, fff00000c5a3b0c8) [ 17.774462] [ 17.774486] The buggy address belongs to the physical page: [ 17.774518] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a3b [ 17.774574] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.774635] page_type: f5(slab) [ 17.774674] raw: 0bfffe0000000000 fff00000c5973500 dead000000000122 0000000000000000 [ 17.774911] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.775122] page dumped because: kasan: bad access detected [ 17.775187] [ 17.775205] Memory state around the buggy address: [ 17.775307] fff00000c5a3af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.775359] fff00000c5a3af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.775403] >fff00000c5a3b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.775446] ^ [ 17.775473] fff00000c5a3b080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.775540] fff00000c5a3b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.775579] ==================================================================
[ 13.216408] ================================================================== [ 13.216873] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 13.217385] Free of addr ffff8881027a6001 by task kunit_try_catch/228 [ 13.218164] [ 13.218468] CPU: 1 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.218515] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.218526] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.218546] Call Trace: [ 13.218558] <TASK> [ 13.218575] dump_stack_lvl+0x73/0xb0 [ 13.218606] print_report+0xd1/0x650 [ 13.218627] ? __virt_addr_valid+0x1db/0x2d0 [ 13.218651] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.218674] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.218699] kasan_report_invalid_free+0x10a/0x130 [ 13.218723] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.218749] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.218774] check_slab_allocation+0x11f/0x130 [ 13.218818] __kasan_slab_pre_free+0x28/0x40 [ 13.218840] kmem_cache_free+0xed/0x420 [ 13.218860] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.218880] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.218907] kmem_cache_invalid_free+0x1d8/0x460 [ 13.218949] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 13.218973] ? finish_task_switch.isra.0+0x153/0x700 [ 13.219043] ? __switch_to+0x47/0xf50 [ 13.219072] ? __pfx_read_tsc+0x10/0x10 [ 13.219109] ? ktime_get_ts64+0x86/0x230 [ 13.219134] kunit_try_run_case+0x1a5/0x480 [ 13.219159] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.219181] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.219205] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.219228] ? __kthread_parkme+0x82/0x180 [ 13.219249] ? preempt_count_sub+0x50/0x80 [ 13.219272] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.219295] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.219319] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.219344] kthread+0x337/0x6f0 [ 13.219362] ? trace_preempt_on+0x20/0xc0 [ 13.219385] ? __pfx_kthread+0x10/0x10 [ 13.219405] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.219426] ? calculate_sigpending+0x7b/0xa0 [ 13.219450] ? __pfx_kthread+0x10/0x10 [ 13.219471] ret_from_fork+0x116/0x1d0 [ 13.219489] ? __pfx_kthread+0x10/0x10 [ 13.219508] ret_from_fork_asm+0x1a/0x30 [ 13.219539] </TASK> [ 13.219549] [ 13.236073] Allocated by task 228: [ 13.236269] kasan_save_stack+0x45/0x70 [ 13.236424] kasan_save_track+0x18/0x40 [ 13.236767] kasan_save_alloc_info+0x3b/0x50 [ 13.237215] __kasan_slab_alloc+0x91/0xa0 [ 13.237797] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.238298] kmem_cache_invalid_free+0x157/0x460 [ 13.238690] kunit_try_run_case+0x1a5/0x480 [ 13.238831] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.239057] kthread+0x337/0x6f0 [ 13.239412] ret_from_fork+0x116/0x1d0 [ 13.239758] ret_from_fork_asm+0x1a/0x30 [ 13.240167] [ 13.240369] The buggy address belongs to the object at ffff8881027a6000 [ 13.240369] which belongs to the cache test_cache of size 200 [ 13.241599] The buggy address is located 1 bytes inside of [ 13.241599] 200-byte region [ffff8881027a6000, ffff8881027a60c8) [ 13.242364] [ 13.242435] The buggy address belongs to the physical page: [ 13.242602] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027a6 [ 13.242850] flags: 0x200000000000000(node=0|zone=2) [ 13.243014] page_type: f5(slab) [ 13.243141] raw: 0200000000000000 ffff8881027a4000 dead000000000122 0000000000000000 [ 13.243536] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.243879] page dumped because: kasan: bad access detected [ 13.244145] [ 13.244214] Memory state around the buggy address: [ 13.244388] ffff8881027a5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.244707] ffff8881027a5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.245213] >ffff8881027a6000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.245834] ^ [ 13.246074] ffff8881027a6080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.246373] ffff8881027a6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.246679] ==================================================================