Message ID | 1461699396-33000-2-git-send-email-seth.forshee@canonical.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qvYfq4VCkz9s3T for <incoming@patchwork.ozlabs.org>; Wed, 27 Apr 2016 05:53:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical-com.20150623.gappssmtp.com header.i=@canonical-com.20150623.gappssmtp.com header.b=b5Y5oQy+; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1av91r-0001CU-5I; Tue, 26 Apr 2016 19:52:15 +0000 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1av8nE-0001v8-02 for linux-mtd@lists.infradead.org; Tue, 26 Apr 2016 19:37:08 +0000 Received: by mail-io0-x230.google.com with SMTP id f89so26271930ioi.0 for <linux-mtd@lists.infradead.org>; Tue, 26 Apr 2016 12:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=d5m6xtGnCIj2kOi9yohuL/tUq13CGdPSJocC5pMsZ2A=; b=b5Y5oQy+8WXWh56tfv7//XTFo3cyv5C3xaxqsQVHQE24VqkRFBlDwpF8amlNHXf1Ss oWJ5Vt1yx1XVL47bZ6uBgUpvnJN4ZoPehCzttVPHz5C+mkDApGEIjyQVDnQ0GzFEQOKO 0Jn6DK5CIYBHlWUYZhWnLs/0K5TuV6kBD1Ozgi1YeBeI5radSVXnfmUfbsIOrI4p8YTu YOyOVzgn+GqjS/AuQYR0Pq7h81t7tYBHA5V517pqj26lMSPNcgH42C3U6kwg5yzMqJll qj09xCmv6KvbEaj2s9VR2Ezrag2SBZg7jJOZN1aSdOWjz3cbMccPDL56Gn54g+pidXMJ 6qEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=d5m6xtGnCIj2kOi9yohuL/tUq13CGdPSJocC5pMsZ2A=; b=TE1hmwup5ehRnw6yUtpTMx46KpETzItMnMQW+2iBnZ50Lz6TH5bVKvzsh8czAyTcUB O0LHWemghDao9Hr6vl3xlty3sjLcBD03B2gf/4W2pZYn3w3UygrXyTP+FxBWuOCnki/v oEDJACc+UjOJkoLRH9FwV/f0Rj1H7nreWDoD4b1Pasd6GQ4ITaCJNmhk2gWVr6Mdicv4 +ZfGMs8Ht4zD1Z8e+nC2W1ciQzjuGX4xzif0wtkhjWxKzbCQiL+J/Mt5IBYeKok4YfRt fiazFb2T/anET7PcOpkaOnHpsTZNVwu68jot3T/x70OlIn65qwUVVdO8+xhLjxOToNNd LXtQ== X-Gm-Message-State: AOPr4FUFpJrTOtEPEkcTEEy7xgHRcdF5UbHO5CXmKflZbkzS2ukL3AsPWg1l1Vw4DoTW7m9+ X-Received: by 10.107.6.198 with SMTP id f67mr6453973ioi.122.1461699407062; Tue, 26 Apr 2016 12:36:47 -0700 (PDT) Received: from localhost ([2605:a601:aab:f920:39a1:5bcf:aa:5b00]) by smtp.gmail.com with ESMTPSA id ip3sm2353056igb.14.2016.04.26.12.36.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Apr 2016 12:36:46 -0700 (PDT) From: Seth Forshee <seth.forshee@canonical.com> To: "Eric W. Biederman" <ebiederm@xmission.com>, Alexander Viro <viro@zeniv.linux.org.uk> Subject: [PATCH v4 01/21] fs: fix a posible leak of allocated superblock Date: Tue, 26 Apr 2016 14:36:14 -0500 Message-Id: <1461699396-33000-2-git-send-email-seth.forshee@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1461699396-33000-1-git-send-email-seth.forshee@canonical.com> References: <1461699396-33000-1-git-send-email-seth.forshee@canonical.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160426_123708_088963_82F68334 X-CRM114-Status: GOOD ( 10.24 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4001:c06:0:0:0:230 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: linux-bcache@vger.kernel.org, Serge Hallyn <serge.hallyn@canonical.com>, Seth Forshee <seth.forshee@canonical.com>, dm-devel@redhat.com, Miklos Szeredi <mszeredi@redhat.com>, Richard Weinberger <richard.weinberger@gmail.com>, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, fuse-devel@lists.sourceforge.net, Austin S Hemmelgarn <ahferroin7@gmail.com>, linux-mtd@lists.infradead.org, selinux@tycho.nsa.gov, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, Pavel Tikhomirov <ptikhomirov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/fs/super.c b/fs/super.c index 829841e0ae7e..092a7828442e 100644 --- a/fs/super.c +++ b/fs/super.c @@ -474,6 +474,10 @@ retry: continue; if (user_ns != old->s_user_ns) { spin_unlock(&sb_lock); + if (s) { + up_write(&s->s_umount); + destroy_super(s); + } return ERR_PTR(-EBUSY); } if (!grab_super(old))