Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1906778imm; Sun, 8 Jul 2018 14:10:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNDWqYw52tYvj9wrlfqlpe09qYONRVYIDzMSHakpNkh588Z1CCoL15f+7Ktwu8UKGXABxx X-Received: by 2002:a63:a919:: with SMTP id u25-v6mr16936531pge.211.1531084221601; Sun, 08 Jul 2018 14:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531084221; cv=none; d=google.com; s=arc-20160816; b=KQKkVfQ2fxkIu7Iw4PldKMpAHERou+/9YpPX6UAT5CsLQrLoERyQwOa2NL3IS9ovDp R3wJJM2ZKVNfd4/eCOi85RBEJJcXJSxcHd+0IA+KMZGKhpzZ+P9ZYt74JOjNAaURwbXv jtN4VFgWvQYyGutXObbtKVAB5/KDVLirewsfaQdC546JVyMCqpE+UY8+l+bCTVlG09oZ 0/UHEVAwJBZ0Sel3PozDFL0zeNhmEY1iIMkBpkcssuEhKXVKD9zdBRlR4jKTPIzRP/b3 WtgR5IS9jAQ8Uy6sYqeL5koIxeWl8S4YWdoumc5dT6v5DbZC4a+bx0EB4XawMXJzEADV TB0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=a2wznl5oLZXcPz1y+G5D1hGknQD6LHneUq0w1LKB0Wc=; b=EsnMveTLTjKIW15IBO3nwRyrt/OXIhtALr2xODoY8Md8PSDos94+h0MeC3kQLn5Psv NTLeusVAo8tJa3hFc7HBZnrUPrsp5II4W8lttyUikH1W3BDV7b1tQ9xwtSE9Vc/m7Zpd uDNFK6wO3wVuPaRbzMqhshkeSXQE6JAfpILT+ebEzSHsOugWThDKT3Zi63AIdLutxx+k 2hxUeoVqNmWAQkIwsLBWSTHkBBGWW9IbtrcKZRQ27g+VcchUApRWNBLvu7dSjLGJLnXN ONyGdkCGRG/O05nZBbmck4KtyqDfL83//GUU1gMlK1s0SOs+p+kzkmgqkkDBLxJqpcSD oR1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fwi37R+k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23-v6si12824256pgb.623.2018.07.08.14.10.07; Sun, 08 Jul 2018 14:10:21 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=Fwi37R+k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933606AbeGHVHp (ORCPT + 99 others); Sun, 8 Jul 2018 17:07:45 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:44738 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933324AbeGHVFm (ORCPT ); Sun, 8 Jul 2018 17:05:42 -0400 Received: by mail-pf0-f193.google.com with SMTP id j3-v6so12135831pfh.11; Sun, 08 Jul 2018 14:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a2wznl5oLZXcPz1y+G5D1hGknQD6LHneUq0w1LKB0Wc=; b=Fwi37R+ks+FtZeW8z+s+Mqf/fU+N1eCcQ5UpObIxVFToT/CMNej4d7W0p1jYwLllES nDF6JVmRUzyu4vYP5BQDK2RldyXSrm2nDEnBKw5zQKUSB+CaCVhuTc5JHPFnh3PKnHem ysPrX3E8V7HQCHjvApWKmWU4jStz8b799ugOPlv017IpXjCul3FOFvXW2WksB2uv7+Eu Te3JlShS/LXL+4ArH9VHTXLhjUzAbt9F9XLqaTQ7HoE/HsWjIG7tdk4lAGoM7dU4U2mj rUMWX4iIvXjq0rbimIOocPOtedbFhYPTdEHhwl9YSqDkrFOPBKb9BsHaCg9J7ucBzJWY ixVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a2wznl5oLZXcPz1y+G5D1hGknQD6LHneUq0w1LKB0Wc=; b=MxJoxMWRt3JexBm9YJO7vjcM58Om8EAQO/mJIWMZLKQTxY9c5DsV3I+W+PFMie0LGd hHFAv5vUJKl2F7G9pJWkFzJ9m9hgOldR0UV/Vvc8TJ/smVYvYgHhiznhZWXg0uqAXS3G HGrwhiZmRuNVB2d0yL2PEeegTPMtdL22rvssC+L6vTo+M/6QNsZ0GTa7wB7s+vth+lPu 6Cn2lzGmzqh+/KL1tRy3URHSJAB0iZkvc6JWFFoaPv9mkwBJa1/GNyUr2DA0reHY2l8m 17qU/1GHLjR8RlwnaVBu5Alt+R70zgQzs6BRV7EAmZRd3wG3ZumqTBccVpFH56t0PssM VCvw== X-Gm-Message-State: APt69E1ichjjvSnDMuG/pyAs9mGHCUDwtPrTHSN6mhcTnsq2m1d9ZTJX 4HrhXjFwLc1ImPFwR5iHZwk= X-Received: by 2002:a62:fc5:: with SMTP id 66-v6mr14096610pfp.237.1531083942034; Sun, 08 Jul 2018 14:05:42 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id x68-v6sm23355681pfb.138.2018.07.08.14.05.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 14:05:41 -0700 (PDT) From: Eric Biggers To: David Howells , Alexander Viro , linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Eric Biggers Subject: [PATCH 11/18] fspick: fix path leak Date: Sun, 8 Jul 2018 14:01:47 -0700 Message-Id: <20180708210154.10423-12-ebiggers3@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180708210154.10423-1-ebiggers3@gmail.com> References: <20180708210154.10423-1-ebiggers3@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Biggers Fixes: 99f8421020ac ("vfs: Implement fspick() to select a superblock for reconfiguration") Signed-off-by: Eric Biggers --- fs/fsopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fsopen.c b/fs/fsopen.c index 8d6fa4ba8fb55..3e439299ddf79 100644 --- a/fs/fsopen.c +++ b/fs/fsopen.c @@ -301,7 +301,7 @@ SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, flags ret = -EOPNOTSUPP; if (!target.dentry->d_sb->s_op->reconfigure) - goto err; + goto err_path; fc = vfs_new_fs_context(target.dentry->d_sb->s_type, target.dentry, 0, FS_CONTEXT_FOR_RECONFIGURE); -- 2.18.0