Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp986813imu; Fri, 11 Jan 2019 12:46:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN6U4Iv7Itx/8cgt8aahFTphAzH5Bxwzr3hGZNJ5xIZea4qSZfho8Pgb8JTn2vIlhvgJdckT X-Received: by 2002:a17:902:2a66:: with SMTP id i93mr15802191plb.113.1547239562831; Fri, 11 Jan 2019 12:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547239562; cv=none; d=google.com; s=arc-20160816; b=r3Ro8XSX1o0xzZYKoprlScPlfIPZblPAYrNOHjFE+O6JE4Z2r3mid+4cAWgcG5Js8a rdYCeWyU9pMqLXEX9sfQaIcaC0jahx/doGEc6QZ6P4GqsXAGNSzCophYMJLCLLnQO3In y0BTieAiBAf13vYiTouJ33DVz3U2warnZOqW+twuPnTgpC+Ppce3IuxqkEPXBPEe03Lm Ai4M3oES8TOEjMFc+6i9IWZpJ7QP819IAqrUic5FAez90NWpnn/JTrtsHY1eSYpV6bhr HxC2J3TN/sN7ErVixiRr5nu32nTsFKQBaRsavkQ3hFAt/g5CMTyzn/RZcop0bcz23pBv Fs9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dSnrsv/f4FaIsLRcM9uXd2rkcYenTSq+JmKNqynYQo0=; b=cNJvNiAg7Zg9EgnFOSBkACZBmusgdhNJJcZwufb5jjueEkCvMjZSJBtM3qqp7LTUzA FtS5LTHcdZzNT50hdiDGGlOYGFPZ+AJWt/XDO8x2bUeDWcqQ1ZaKPM+xTP88cPtk0zGi NRWDEb6VHS7UzEjcg4O8xuXYC8a8jTWvFnK3cYqbUQN27foeqQiMjbuahCA7AI0PopEd p4vPAuQpSJ5swSRJnvktrWAIL0Ef0RUaGhhdb4f7Ql+8d8IC7aF7UQ52TWhRtvUUhQKD k6wvl594AJVtOfxOTC/vKnmXenKtrQVozbAaqVuHf00GziePN9NTzOj+a7M9Vv7FjNek DCkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=usImlUFP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si81346534pfd.86.2019.01.11.12.45.47; Fri, 11 Jan 2019 12:46:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=usImlUFP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403819AbfAKOmr (ORCPT + 99 others); Fri, 11 Jan 2019 09:42:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:35498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404218AbfAKOmn (ORCPT ); Fri, 11 Jan 2019 09:42:43 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 7E63320872; Fri, 11 Jan 2019 14:42:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547217763; bh=2Bfq2t4gLVive4tIbhGkyAzlpIxxWfJU6LqhtumUFUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=usImlUFPWJo5H/lNImPm7fpisF7W2dSwjmokhsMpoAX/Taqnzgp5h2qYYTynR+O43 VyBmWi0SrC4Q8RWkBWDCsDYsW5I2xX6H24OxG97Mt0hsO2zGKCHOqbsczgGceJQ5GC r+Mf/u9RYEpTkjJvApv4YJW31dHOxWxSyxxfnUvU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasily Averin , David Teigland , stable@kernel.org Subject: [PATCH 4.20 30/65] dlm: possible memory leak on error path in create_lkb() Date: Fri, 11 Jan 2019 15:15:16 +0100 Message-Id: <20190111131100.497920209@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131055.331350141@linuxfoundation.org> References: <20190111131055.331350141@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasily Averin commit 23851e978f31eda8b2d01bd410d3026659ca06c7 upstream. Fixes 3d6aa675fff9 ("dlm: keep lkbs in idr") Cc: stable@kernel.org # 3.1 Signed-off-by: Vasily Averin Signed-off-by: David Teigland Signed-off-by: Greg Kroah-Hartman --- fs/dlm/lock.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -1209,6 +1209,7 @@ static int create_lkb(struct dlm_ls *ls, if (rv < 0) { log_error(ls, "create_lkb idr error %d", rv); + dlm_free_lkb(lkb); return rv; }