Message ID | 1461699396-33000-2-git-send-email-seth.forshee@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 25D689F1D3 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 26 Apr 2016 19:36:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 359B62015A for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 26 Apr 2016 19:36:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BFB3E201EC for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 26 Apr 2016 19:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752235AbcDZTgu (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Tue, 26 Apr 2016 15:36:50 -0400 Received: from mail-io0-f180.google.com ([209.85.223.180]:33209 "EHLO mail-io0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036AbcDZTgs (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Tue, 26 Apr 2016 15:36:48 -0400 Received: by mail-io0-f180.google.com with SMTP id f89so26271937ioi.0 for <linux-fsdevel@vger.kernel.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=NdGnczZuysXA6/tpOlkXxGQNzIW6zv5PK2edD4/8z712E0EH1o5TQNhpPdXMLCSG5h GTOTAPHTIgR7JTL114P+/SJjaY8CgKFycXhxwPPtpZFI0IR67z80X4K22nBPZDvZmene 1kk+H8Bmr5IV+bgo8bOfjv4TStGOPlNhtx2gWPTpg4CmB8yhsDAkOfnBaAy9MPoJGEaG /zoOL3/Z4aYhUqZUImsMeeKmlXDSqjmZztSPu/c2rW51WJJw1+8oJcs/m8XHjVz0aZfU IDFRNtqlUAgmHECjZOel7jt3J1ndt8YUtWsQz/MdF3a111WjUscg9qCkwzjFgB+hFDyW 7d+Q== X-Gm-Message-State: AOPr4FWngpk6u8I39r5tP5dAchWLxXDaNOQzoUJblkNl/oMusu1ySM0ocXjmOy7t31SPW6kI 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> Cc: Serge Hallyn <serge.hallyn@canonical.com>, Richard Weinberger <richard.weinberger@gmail.com>, Austin S Hemmelgarn <ahferroin7@gmail.com>, Miklos Szeredi <mszeredi@redhat.com>, Pavel Tikhomirov <ptikhomirov@virtuozzo.com>, linux-kernel@vger.kernel.org, linux-bcache@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, fuse-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, cgroups@vger.kernel.org, Seth Forshee <seth.forshee@canonical.com> 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> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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))