Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.417701] ================================================================== [ 32.419050] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3b8 [ 32.420694] Free of addr fff00000c69bb001 by task kunit_try_catch/200 [ 32.421568] [ 32.421957] CPU: 0 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 32.423596] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.424144] Hardware name: linux,dummy-virt (DT) [ 32.424816] Call trace: [ 32.425315] show_stack+0x20/0x38 (C) [ 32.425947] dump_stack_lvl+0x8c/0xd0 [ 32.426874] print_report+0x118/0x5e0 [ 32.427632] kasan_report_invalid_free+0xb0/0xd8 [ 32.428391] check_slab_allocation+0xfc/0x108 [ 32.429054] __kasan_slab_pre_free+0x2c/0x48 [ 32.429769] kmem_cache_free+0xf0/0x470 [ 32.430853] kmem_cache_invalid_free+0x184/0x3b8 [ 32.431597] kunit_try_run_case+0x14c/0x3d0 [ 32.432228] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.432971] kthread+0x24c/0x2d0 [ 32.433631] ret_from_fork+0x10/0x20 [ 32.434202] [ 32.434660] Allocated by task 200: [ 32.435600] kasan_save_stack+0x3c/0x68 [ 32.436186] kasan_save_track+0x20/0x40 [ 32.436749] kasan_save_alloc_info+0x40/0x58 [ 32.437409] __kasan_slab_alloc+0xa8/0xb0 [ 32.438065] kmem_cache_alloc_noprof+0x108/0x398 [ 32.438638] kmem_cache_invalid_free+0x12c/0x3b8 [ 32.439341] kunit_try_run_case+0x14c/0x3d0 [ 32.440425] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.441142] kthread+0x24c/0x2d0 [ 32.441690] ret_from_fork+0x10/0x20 [ 32.442242] [ 32.442588] The buggy address belongs to the object at fff00000c69bb000 [ 32.442588] which belongs to the cache test_cache of size 200 [ 32.444398] The buggy address is located 1 bytes inside of [ 32.444398] 200-byte region [fff00000c69bb000, fff00000c69bb0c8) [ 32.446050] [ 32.446626] The buggy address belongs to the physical page: [ 32.447390] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1069bb [ 32.448412] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.449421] page_type: f5(slab) [ 32.450109] raw: 0bfffe0000000000 fff00000c13fa500 dead000000000122 0000000000000000 [ 32.451322] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 32.452552] page dumped because: kasan: bad access detected [ 32.453400] [ 32.453739] Memory state around the buggy address: [ 32.454399] fff00000c69baf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.455343] fff00000c69baf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.456197] >fff00000c69bb000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.457362] ^ [ 32.457875] fff00000c69bb080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 32.459093] fff00000c69bb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.459899] ==================================================================
[ 25.158302] ================================================================== [ 25.159325] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d9/0x470 [ 25.159644] Free of addr ffff888102927001 by task kunit_try_catch/219 [ 25.159893] [ 25.160083] CPU: 0 UID: 0 PID: 219 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 25.160869] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.161618] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.163810] Call Trace: [ 25.164249] <TASK> [ 25.164790] dump_stack_lvl+0x73/0xb0 [ 25.165426] print_report+0xd1/0x640 [ 25.166659] ? __virt_addr_valid+0x1db/0x2d0 [ 25.167285] ? kmem_cache_invalid_free+0x1d9/0x470 [ 25.168235] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.169139] ? kmem_cache_invalid_free+0x1d9/0x470 [ 25.169706] kasan_report_invalid_free+0xc0/0xf0 [ 25.171055] ? kmem_cache_invalid_free+0x1d9/0x470 [ 25.172034] ? kmem_cache_invalid_free+0x1d9/0x470 [ 25.173317] check_slab_allocation+0x11f/0x130 [ 25.174203] __kasan_slab_pre_free+0x28/0x40 [ 25.174666] kmem_cache_free+0xee/0x420 [ 25.175063] ? kmem_cache_alloc_noprof+0x11e/0x3e0 [ 25.175487] ? kmem_cache_invalid_free+0x1d9/0x470 [ 25.177014] kmem_cache_invalid_free+0x1d9/0x470 [ 25.177715] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 25.178485] ? finish_task_switch.isra.0+0x153/0x700 [ 25.179305] ? __switch_to+0x5d9/0xf60 [ 25.179716] ? __pfx_read_tsc+0x10/0x10 [ 25.180732] ? ktime_get_ts64+0x86/0x230 [ 25.181320] kunit_try_run_case+0x1b3/0x490 [ 25.182165] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.182736] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.183541] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.184289] ? __kthread_parkme+0x82/0x160 [ 25.184815] ? preempt_count_sub+0x50/0x80 [ 25.185291] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.186052] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.186686] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.187389] kthread+0x257/0x310 [ 25.188303] ? __pfx_kthread+0x10/0x10 [ 25.188661] ret_from_fork+0x41/0x80 [ 25.188988] ? __pfx_kthread+0x10/0x10 [ 25.189445] ret_from_fork_asm+0x1a/0x30 [ 25.190567] </TASK> [ 25.191066] [ 25.191414] Allocated by task 219: [ 25.192007] kasan_save_stack+0x3d/0x60 [ 25.192485] kasan_save_track+0x18/0x40 [ 25.192781] kasan_save_alloc_info+0x3b/0x50 [ 25.193698] __kasan_slab_alloc+0x91/0xa0 [ 25.194550] kmem_cache_alloc_noprof+0x11e/0x3e0 [ 25.195347] kmem_cache_invalid_free+0x158/0x470 [ 25.195974] kunit_try_run_case+0x1b3/0x490 [ 25.197060] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.197498] kthread+0x257/0x310 [ 25.198051] ret_from_fork+0x41/0x80 [ 25.198414] ret_from_fork_asm+0x1a/0x30 [ 25.199116] [ 25.199917] The buggy address belongs to the object at ffff888102927000 [ 25.199917] which belongs to the cache test_cache of size 200 [ 25.201572] The buggy address is located 1 bytes inside of [ 25.201572] 200-byte region [ffff888102927000, ffff8881029270c8) [ 25.202594] [ 25.202873] The buggy address belongs to the physical page: [ 25.203582] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102927 [ 25.204133] flags: 0x200000000000000(node=0|zone=2) [ 25.204861] page_type: f5(slab) [ 25.205411] raw: 0200000000000000 ffff888101a88b40 dead000000000122 0000000000000000 [ 25.206453] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.207883] page dumped because: kasan: bad access detected [ 25.208363] [ 25.208555] Memory state around the buggy address: [ 25.209137] ffff888102926f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.209759] ffff888102926f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.210525] >ffff888102927000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.211762] ^ [ 25.212162] ffff888102927080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.212976] ffff888102927100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.213802] ==================================================================