Date
March 19, 2025, 10:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.499526] ================================================================== [ 35.500797] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3b8 [ 35.501549] Free of addr fff00000c5d9c001 by task kunit_try_catch/213 [ 35.502270] [ 35.502760] CPU: 1 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT [ 35.504536] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.504657] Hardware name: linux,dummy-virt (DT) [ 35.504758] Call trace: [ 35.505570] show_stack+0x20/0x38 (C) [ 35.506346] dump_stack_lvl+0x8c/0xd0 [ 35.507144] print_report+0x118/0x5f0 [ 35.507429] kasan_report_invalid_free+0xb0/0xd8 [ 35.507591] check_slab_allocation+0xfc/0x108 [ 35.507748] __kasan_slab_pre_free+0x2c/0x48 [ 35.507905] kmem_cache_free+0xf0/0x490 [ 35.509215] kmem_cache_invalid_free+0x184/0x3b8 [ 35.510184] kunit_try_run_case+0x14c/0x3d0 [ 35.511279] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.512267] kthread+0x318/0x618 [ 35.512448] ret_from_fork+0x10/0x20 [ 35.512613] [ 35.512677] Allocated by task 213: [ 35.513911] kasan_save_stack+0x3c/0x68 [ 35.514369] kasan_save_track+0x20/0x40 [ 35.514500] kasan_save_alloc_info+0x40/0x58 [ 35.514900] __kasan_slab_alloc+0xa8/0xb0 [ 35.515868] kmem_cache_alloc_noprof+0x108/0x398 [ 35.516562] kmem_cache_invalid_free+0x12c/0x3b8 [ 35.517149] kunit_try_run_case+0x14c/0x3d0 [ 35.517649] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.517823] kthread+0x318/0x618 [ 35.517938] ret_from_fork+0x10/0x20 [ 35.518074] [ 35.518315] The buggy address belongs to the object at fff00000c5d9c000 [ 35.518315] which belongs to the cache test_cache of size 200 [ 35.519120] The buggy address is located 1 bytes inside of [ 35.519120] 200-byte region [fff00000c5d9c000, fff00000c5d9c0c8) [ 35.519346] [ 35.519412] The buggy address belongs to the physical page: [ 35.519516] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105d9c [ 35.520336] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 35.520762] page_type: f5(slab) [ 35.521086] raw: 0bfffe0000000000 fff00000c5d9a000 dead000000000122 0000000000000000 [ 35.521248] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 35.521380] page dumped because: kasan: bad access detected [ 35.521483] [ 35.522113] Memory state around the buggy address: [ 35.522243] fff00000c5d9bf00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 35.522637] fff00000c5d9bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.523314] >fff00000c5d9c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.523648] ^ [ 35.523964] fff00000c5d9c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 35.524245] fff00000c5d9c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.524401] ==================================================================
[ 23.061293] ================================================================== [ 23.062467] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 23.063374] Free of addr ffff888103067001 by task kunit_try_catch/232 [ 23.064237] [ 23.064528] CPU: 0 UID: 0 PID: 232 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 23.064922] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.064974] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.065089] Call Trace: [ 23.065153] <TASK> [ 23.065194] dump_stack_lvl+0x73/0xb0 [ 23.065280] print_report+0xd1/0x660 [ 23.065347] ? __virt_addr_valid+0x1db/0x2d0 [ 23.065470] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.065538] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.065594] kasan_report_invalid_free+0xce/0x100 [ 23.065651] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.065818] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.065870] check_slab_allocation+0x11f/0x130 [ 23.065905] __kasan_slab_pre_free+0x28/0x40 [ 23.065937] kmem_cache_free+0xed/0x420 [ 23.065971] ? kmem_cache_alloc_noprof+0x11d/0x3f0 [ 23.066002] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.066038] kmem_cache_invalid_free+0x1d8/0x460 [ 23.066069] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 23.066098] ? finish_task_switch.isra.0+0x153/0x730 [ 23.066155] ? __switch_to+0x5d9/0xf70 [ 23.066201] ? __pfx_read_tsc+0x10/0x10 [ 23.066230] ? ktime_get_ts64+0x86/0x240 [ 23.066268] kunit_try_run_case+0x1b2/0x490 [ 23.066304] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.066335] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.066366] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.066396] ? __kthread_parkme+0x82/0x160 [ 23.066427] ? preempt_count_sub+0x50/0x80 [ 23.066461] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.066494] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.066526] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.066558] kthread+0x323/0x710 [ 23.066587] ? trace_preempt_on+0x20/0xc0 [ 23.066621] ? __pfx_kthread+0x10/0x10 [ 23.066651] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.066687] ? calculate_sigpending+0x7b/0xa0 [ 23.066831] ? __pfx_kthread+0x10/0x10 [ 23.066882] ret_from_fork+0x41/0x80 [ 23.066917] ? __pfx_kthread+0x10/0x10 [ 23.066948] ret_from_fork_asm+0x1a/0x30 [ 23.066996] </TASK> [ 23.067012] [ 23.086937] Allocated by task 232: [ 23.087226] kasan_save_stack+0x3d/0x60 [ 23.087680] kasan_save_track+0x18/0x40 [ 23.089451] kasan_save_alloc_info+0x3b/0x50 [ 23.090083] __kasan_slab_alloc+0x91/0xa0 [ 23.090541] kmem_cache_alloc_noprof+0x11d/0x3f0 [ 23.093014] kmem_cache_invalid_free+0x157/0x460 [ 23.093340] kunit_try_run_case+0x1b2/0x490 [ 23.094372] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.094829] kthread+0x323/0x710 [ 23.095475] ret_from_fork+0x41/0x80 [ 23.096514] ret_from_fork_asm+0x1a/0x30 [ 23.096789] [ 23.096937] The buggy address belongs to the object at ffff888103067000 [ 23.096937] which belongs to the cache test_cache of size 200 [ 23.099461] The buggy address is located 1 bytes inside of [ 23.099461] 200-byte region [ffff888103067000, ffff8881030670c8) [ 23.100383] [ 23.101268] The buggy address belongs to the physical page: [ 23.101594] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103067 [ 23.102759] flags: 0x200000000000000(node=0|zone=2) [ 23.103582] page_type: f5(slab) [ 23.104199] raw: 0200000000000000 ffff8881009f8b40 dead000000000122 0000000000000000 [ 23.105500] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 23.105907] page dumped because: kasan: bad access detected [ 23.106578] [ 23.107531] Memory state around the buggy address: [ 23.107934] ffff888103066f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.108943] ffff888103066f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.109632] >ffff888103067000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.110237] ^ [ 23.110712] ffff888103067080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 23.111722] ffff888103067100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.112832] ==================================================================