Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.923736] ================================================================== [ 15.923802] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 15.923867] Free of addr fff00000c76f5001 by task kunit_try_catch/212 [ 15.925032] [ 15.925125] CPU: 1 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.925248] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.925293] Hardware name: linux,dummy-virt (DT) [ 15.925394] Call trace: [ 15.925445] show_stack+0x20/0x38 (C) [ 15.925531] dump_stack_lvl+0x8c/0xd0 [ 15.925859] print_report+0x118/0x5d0 [ 15.925964] kasan_report_invalid_free+0xc0/0xe8 [ 15.926094] check_slab_allocation+0xfc/0x108 [ 15.926244] __kasan_slab_pre_free+0x2c/0x48 [ 15.926379] kmem_cache_free+0xf0/0x468 [ 15.926473] kmem_cache_invalid_free+0x184/0x3c8 [ 15.926861] kunit_try_run_case+0x170/0x3f0 [ 15.927040] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.927251] kthread+0x328/0x630 [ 15.927319] ret_from_fork+0x10/0x20 [ 15.927621] [ 15.927998] Allocated by task 212: [ 15.928102] kasan_save_stack+0x3c/0x68 [ 15.928242] kasan_save_track+0x20/0x40 [ 15.928336] kasan_save_alloc_info+0x40/0x58 [ 15.928379] __kasan_slab_alloc+0xa8/0xb0 [ 15.928689] kmem_cache_alloc_noprof+0x10c/0x398 [ 15.928770] kmem_cache_invalid_free+0x12c/0x3c8 [ 15.928868] kunit_try_run_case+0x170/0x3f0 [ 15.928985] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.929144] kthread+0x328/0x630 [ 15.929240] ret_from_fork+0x10/0x20 [ 15.929352] [ 15.929399] The buggy address belongs to the object at fff00000c76f5000 [ 15.929399] which belongs to the cache test_cache of size 200 [ 15.929459] The buggy address is located 1 bytes inside of [ 15.929459] 200-byte region [fff00000c76f5000, fff00000c76f50c8) [ 15.929526] [ 15.929942] The buggy address belongs to the physical page: [ 15.930065] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076f5 [ 15.930240] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.930379] page_type: f5(slab) [ 15.930443] raw: 0bfffe0000000000 fff00000c5bc0640 dead000000000122 0000000000000000 [ 15.930528] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 15.930844] page dumped because: kasan: bad access detected [ 15.931152] [ 15.931271] Memory state around the buggy address: [ 15.931368] fff00000c76f4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.931445] fff00000c76f4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.931581] >fff00000c76f5000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.931658] ^ [ 15.931792] fff00000c76f5080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 15.931838] fff00000c76f5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.931903] ==================================================================
[ 13.673980] ================================================================== [ 13.674679] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 13.675201] Free of addr ffff8881038aa001 by task kunit_try_catch/229 [ 13.675827] [ 13.676123] CPU: 1 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.676178] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.676190] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.676213] Call Trace: [ 13.676226] <TASK> [ 13.676244] dump_stack_lvl+0x73/0xb0 [ 13.676277] print_report+0xd1/0x610 [ 13.676300] ? __virt_addr_valid+0x1db/0x2d0 [ 13.676324] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.676346] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.676372] kasan_report_invalid_free+0x10a/0x130 [ 13.676396] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.676423] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.676448] check_slab_allocation+0x11f/0x130 [ 13.676483] __kasan_slab_pre_free+0x28/0x40 [ 13.676595] kmem_cache_free+0xed/0x420 [ 13.676620] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.676640] ? kmem_cache_invalid_free+0x1d8/0x460 [ 13.676667] kmem_cache_invalid_free+0x1d8/0x460 [ 13.676692] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 13.676716] ? finish_task_switch.isra.0+0x153/0x700 [ 13.676739] ? __switch_to+0x47/0xf50 [ 13.676767] ? __pfx_read_tsc+0x10/0x10 [ 13.676790] ? ktime_get_ts64+0x86/0x230 [ 13.676815] kunit_try_run_case+0x1a5/0x480 [ 13.676842] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.676864] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.676889] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.676912] ? __kthread_parkme+0x82/0x180 [ 13.676934] ? preempt_count_sub+0x50/0x80 [ 13.676956] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.676980] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.677003] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.677026] kthread+0x337/0x6f0 [ 13.677057] ? trace_preempt_on+0x20/0xc0 [ 13.677081] ? __pfx_kthread+0x10/0x10 [ 13.677101] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.677123] ? calculate_sigpending+0x7b/0xa0 [ 13.677148] ? __pfx_kthread+0x10/0x10 [ 13.677169] ret_from_fork+0x116/0x1d0 [ 13.677188] ? __pfx_kthread+0x10/0x10 [ 13.677208] ret_from_fork_asm+0x1a/0x30 [ 13.677239] </TASK> [ 13.677248] [ 13.689546] Allocated by task 229: [ 13.689728] kasan_save_stack+0x45/0x70 [ 13.690016] kasan_save_track+0x18/0x40 [ 13.690317] kasan_save_alloc_info+0x3b/0x50 [ 13.690539] __kasan_slab_alloc+0x91/0xa0 [ 13.690751] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.691317] kmem_cache_invalid_free+0x157/0x460 [ 13.691549] kunit_try_run_case+0x1a5/0x480 [ 13.691926] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.692355] kthread+0x337/0x6f0 [ 13.692557] ret_from_fork+0x116/0x1d0 [ 13.692859] ret_from_fork_asm+0x1a/0x30 [ 13.693132] [ 13.693229] The buggy address belongs to the object at ffff8881038aa000 [ 13.693229] which belongs to the cache test_cache of size 200 [ 13.693726] The buggy address is located 1 bytes inside of [ 13.693726] 200-byte region [ffff8881038aa000, ffff8881038aa0c8) [ 13.694800] [ 13.694894] The buggy address belongs to the physical page: [ 13.695209] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038aa [ 13.695769] flags: 0x200000000000000(node=0|zone=2) [ 13.696115] page_type: f5(slab) [ 13.696353] raw: 0200000000000000 ffff888100fc9c80 dead000000000122 0000000000000000 [ 13.696795] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.697260] page dumped because: kasan: bad access detected [ 13.697503] [ 13.697743] Memory state around the buggy address: [ 13.697937] ffff8881038a9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.698545] ffff8881038a9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.698912] >ffff8881038aa000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.699504] ^ [ 13.699651] ffff8881038aa080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.700132] ffff8881038aa100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.700394] ==================================================================