Message ID | 20200820091541.913675669@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=nT5k=B6=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A77BC433DF for <stable@archiver.kernel.org>; Thu, 20 Aug 2020 12:19:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D8FC22078B for <stable@archiver.kernel.org>; Thu, 20 Aug 2020 12:19:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597925981; bh=Ne0socCZGcwrMblGJ2DwvxH0Vsev8VfPF/bS/K0PF6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=r0ZRTMCrX7dHiprXsxqC/9iXJGj3Htae+WpyVNy+lVSXJgIBDMB9AVqrW8+BarVTs qJB2OztxCqKyg0RGpfmY5ln+JFgJY0XTGRCMEDfmkpcDeTOE4s548AlMWW6f5B+hD7 KWNkJN9FreZbqc+1q7fneglzkWl2nXFeifUhAmbQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730459AbgHTMTk (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 20 Aug 2020 08:19:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:39302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730233AbgHTJz7 (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 20 Aug 2020 05:55:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 242652067C; Thu, 20 Aug 2020 09:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597917358; bh=Ne0socCZGcwrMblGJ2DwvxH0Vsev8VfPF/bS/K0PF6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kdXckTJyEqPh9+qz8+f4sF8guSejoSwJO1c6wAYvPIAzmAvxLyTe7NiRIqvTw3HQP Odq7KYewajU6TWT7tT9boOkc6Eow9rDCMmgRfIa2zBEW9hfToAe7Kks1YZo3Ph/T9j OmB+sgpKyxazDU13QzuNV2a6FJRRoOGEYI/VVxkE= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Tiezhu Yang <yangtiezhu@loongson.cn>, Luis Chamberlain <mcgrof@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Alexei Starovoitov <ast@kernel.org>, Al Viro <viro@zeniv.linux.org.uk>, Christian Brauner <christian.brauner@ubuntu.com>, Chuck Lever <chuck.lever@oracle.com>, David Howells <dhowells@redhat.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, James Morris <jmorris@namei.org>, Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>, "J. Bruce Fields" <bfields@fieldses.org>, Jens Axboe <axboe@kernel.dk>, Josh Triplett <josh@joshtriplett.org>, Kees Cook <keescook@chromium.org>, Lars Ellenberg <lars.ellenberg@linbit.com>, Nikolay Aleksandrov <nikolay@cumulusnetworks.com>, Philipp Reisner <philipp.reisner@linbit.com>, Roopa Prabhu <roopa@cumulusnetworks.com>, "Serge E. Hallyn" <serge@hallyn.com>, Sergei Trofimovich <slyfox@gentoo.org>, Sergey Kvachonok <ravenexp@gmail.com>, Shuah Khan <shuah@kernel.org>, Tony Vroon <chainsaw@gentoo.org>, Christoph Hellwig <hch@infradead.org>, Linus Torvalds <torvalds@linux-foundation.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 82/92] test_kmod: avoid potential double free in trigger_config_run_type() Date: Thu, 20 Aug 2020 11:22:07 +0200 Message-Id: <20200820091541.913675669@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091537.490965042@linuxfoundation.org> References: <20200820091537.490965042@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/lib/test_kmod.c b/lib/test_kmod.c index 9cf77628fc913..87a0cc750ea23 100644 --- a/lib/test_kmod.c +++ b/lib/test_kmod.c @@ -745,7 +745,7 @@ static int trigger_config_run_type(struct kmod_test_device *test_dev, break; case TEST_KMOD_FS_TYPE: kfree_const(config->test_fs); - config->test_driver = NULL; + config->test_fs = NULL; copied = config_copy_test_fs(config, test_str, strlen(test_str)); break;