Date
June 2, 2025, 2:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.644777] ================================================================== [ 19.645390] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3b8 [ 19.646100] Free of addr fff00000c3f5e001 by task kunit_try_catch/201 [ 19.647098] [ 19.647310] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 19.647557] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.647603] Hardware name: linux,dummy-virt (DT) [ 19.647658] Call trace: [ 19.647689] show_stack+0x20/0x38 (C) [ 19.647761] dump_stack_lvl+0x8c/0xd0 [ 19.647821] print_report+0x118/0x608 [ 19.647878] kasan_report_invalid_free+0xc0/0xe8 [ 19.647934] check_slab_allocation+0xfc/0x108 [ 19.647988] __kasan_slab_pre_free+0x2c/0x48 [ 19.648043] kmem_cache_free+0xf0/0x468 [ 19.648096] kmem_cache_invalid_free+0x184/0x3b8 [ 19.648150] kunit_try_run_case+0x170/0x3f0 [ 19.648227] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.648288] kthread+0x318/0x620 [ 19.648342] ret_from_fork+0x10/0x20 [ 19.648398] [ 19.651766] Allocated by task 201: [ 19.652076] kasan_save_stack+0x3c/0x68 [ 19.652356] kasan_save_track+0x20/0x40 [ 19.652744] kasan_save_alloc_info+0x40/0x58 [ 19.652975] __kasan_slab_alloc+0xa8/0xb0 [ 19.653267] kmem_cache_alloc_noprof+0x10c/0x398 [ 19.653629] kmem_cache_invalid_free+0x12c/0x3b8 [ 19.653927] kunit_try_run_case+0x170/0x3f0 [ 19.654435] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.655080] kthread+0x318/0x620 [ 19.655257] ret_from_fork+0x10/0x20 [ 19.655406] [ 19.655511] The buggy address belongs to the object at fff00000c3f5e000 [ 19.655511] which belongs to the cache test_cache of size 200 [ 19.656707] The buggy address is located 1 bytes inside of [ 19.656707] 200-byte region [fff00000c3f5e000, fff00000c3f5e0c8) [ 19.657531] [ 19.657791] The buggy address belongs to the physical page: [ 19.658210] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f5e [ 19.658944] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.659286] page_type: f5(slab) [ 19.659581] raw: 0bfffe0000000000 fff00000c1b498c0 dead000000000122 0000000000000000 [ 19.659962] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 19.660315] page dumped because: kasan: bad access detected [ 19.660561] [ 19.660702] Memory state around the buggy address: [ 19.660884] fff00000c3f5df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.661862] fff00000c3f5df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.662231] >fff00000c3f5e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.662452] ^ [ 19.662600] fff00000c3f5e080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 19.662876] fff00000c3f5e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.663407] ==================================================================
[ 13.414792] ================================================================== [ 13.415966] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d9/0x470 [ 13.417181] Free of addr ffff888102a35001 by task kunit_try_catch/219 [ 13.417463] [ 13.417576] CPU: 0 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 13.417618] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.417630] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.417651] Call Trace: [ 13.417666] <TASK> [ 13.417685] dump_stack_lvl+0x73/0xb0 [ 13.417717] print_report+0xd1/0x650 [ 13.417747] ? __virt_addr_valid+0x1db/0x2d0 [ 13.417773] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.417800] ? kmem_cache_invalid_free+0x1d9/0x470 [ 13.417827] kasan_report_invalid_free+0xfc/0x120 [ 13.417852] ? kmem_cache_invalid_free+0x1d9/0x470 [ 13.417880] ? kmem_cache_invalid_free+0x1d9/0x470 [ 13.417905] check_slab_allocation+0x11f/0x130 [ 13.417929] __kasan_slab_pre_free+0x28/0x40 [ 13.417951] kmem_cache_free+0xee/0x420 [ 13.417972] ? kmem_cache_alloc_noprof+0x124/0x400 [ 13.417994] ? kmem_cache_invalid_free+0x1d9/0x470 [ 13.418035] kmem_cache_invalid_free+0x1d9/0x470 [ 13.418061] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 13.418086] ? finish_task_switch.isra.0+0x153/0x700 [ 13.418112] ? __switch_to+0x5d9/0xf60 [ 13.418423] ? __pfx_read_tsc+0x10/0x10 [ 13.418458] ? ktime_get_ts64+0x86/0x230 [ 13.418487] kunit_try_run_case+0x1a6/0x480 [ 13.418514] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.418538] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 13.418565] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.418590] ? __kthread_parkme+0x82/0x160 [ 13.418615] ? preempt_count_sub+0x50/0x80 [ 13.418642] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.418666] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.418695] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.418722] kthread+0x324/0x6e0 [ 13.418746] ? trace_preempt_on+0x20/0xc0 [ 13.418772] ? __pfx_kthread+0x10/0x10 [ 13.418796] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.418821] ? calculate_sigpending+0x7b/0xa0 [ 13.418846] ? __pfx_kthread+0x10/0x10 [ 13.418870] ret_from_fork+0x41/0x80 [ 13.418891] ? __pfx_kthread+0x10/0x10 [ 13.418915] ret_from_fork_asm+0x1a/0x30 [ 13.418949] </TASK> [ 13.418960] [ 13.432423] Allocated by task 219: [ 13.432622] kasan_save_stack+0x45/0x70 [ 13.433278] kasan_save_track+0x18/0x40 [ 13.433485] kasan_save_alloc_info+0x3b/0x50 [ 13.433767] __kasan_slab_alloc+0x91/0xa0 [ 13.434284] kmem_cache_alloc_noprof+0x124/0x400 [ 13.434599] kmem_cache_invalid_free+0x158/0x470 [ 13.434836] kunit_try_run_case+0x1a6/0x480 [ 13.435404] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.435808] kthread+0x324/0x6e0 [ 13.435987] ret_from_fork+0x41/0x80 [ 13.436330] ret_from_fork_asm+0x1a/0x30 [ 13.436668] [ 13.436772] The buggy address belongs to the object at ffff888102a35000 [ 13.436772] which belongs to the cache test_cache of size 200 [ 13.437293] The buggy address is located 1 bytes inside of [ 13.437293] 200-byte region [ffff888102a35000, ffff888102a350c8) [ 13.438166] [ 13.438274] The buggy address belongs to the physical page: [ 13.438484] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a35 [ 13.439241] flags: 0x200000000000000(node=0|zone=2) [ 13.439447] page_type: f5(slab) [ 13.439907] raw: 0200000000000000 ffff888101689dc0 dead000000000122 0000000000000000 [ 13.440295] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.440807] page dumped because: kasan: bad access detected [ 13.441034] [ 13.441149] Memory state around the buggy address: [ 13.441439] ffff888102a34f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.442071] ffff888102a34f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.442443] >ffff888102a35000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.442830] ^ [ 13.443269] ffff888102a35080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.443709] ffff888102a35100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.444086] ==================================================================