Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3431625imu; Sun, 11 Nov 2018 14:58:41 -0800 (PST) X-Google-Smtp-Source: AJdET5f91McLxYg65KaJx5c1XasIK26dv9XPpz7oCBFU2nI2yG5XicVTUGXnkPOH9ihgrA56E1K5 X-Received: by 2002:a63:b54f:: with SMTP id u15mr15276253pgo.420.1541977121125; Sun, 11 Nov 2018 14:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541977121; cv=none; d=google.com; s=arc-20160816; b=g+5H9a1DoJ7mZ3+01VmTZxWA/AEQiajdkpOEv9MF11CP/J0hQI58ctcOYvlnW7Zrna 7hfAK0SwaJ4l3rf+tkiB2gAscjEAsNQnkwc8081uv4pRnzNof8EmNjU0Qo+59i7RoxD4 LMcjFn5MioFjg8A4PoHwmCCV9ipzN9uofAvmIbxhkXz7HyL74jUMip9DYgzBNnBf3+WD /o+wW4jLjqgeQipcqu5oaVKg+WczdwoKokTqK2RTUtunYG+pCLzQAO16GGOcMezR7U5D dI1bmw7sW++VpJtHX12xLT2d5tpEPPd9kEdGAVEKemsiq23/QOUj8hB1LU9HmahUmTk3 rKVw== 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=gD1W7439v/83i2Elgt0VeqWVyQIVa4l4Jr/Bq/1NXJg=; b=RvqpDDuO52524wfY8PfXtlhpowgLsuMW9KVm5vX0ySX8camgjbgxUFvrsax+CnaiPe vIIt6nmLqinwXuQR/fHA91MfbBmBAZEJGv8/R8T5aKvy06xBsEhcMpWHPbpUz2oyYFnl wUXesqVeCu1aFeGtB4k94QX8ynqropEaK7rQ5eomiIUwTL1iSrNxy8aT+9lK3OESJ4cq r1dNSvp3Jmk2jtjqDhZtFk0kJ5w+KzfO6COvbH619PyYbtCwF4mslLMzcBwFUiW9IQdo qHiCohHO2kEjw5dyOaHCmypUbxHekHXgTfXwG/Un3OFtODaU37pyxSlLwrWztGFZhmF2 j7bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e8XWDp+n; 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 e11si8940900pgf.450.2018.11.11.14.58.26; Sun, 11 Nov 2018 14:58:41 -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=e8XWDp+n; 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 S2403798AbeKLIWo (ORCPT + 99 others); Mon, 12 Nov 2018 03:22:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:52394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390807AbeKLIWm (ORCPT ); Mon, 12 Nov 2018 03:22:42 -0500 Received: from localhost (unknown [206.108.79.134]) (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 9DB1121780; Sun, 11 Nov 2018 22:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975565; bh=n176Bi2S4hyPHe3KWE/5ZfrTrM3EzbuH2enYFW2ARGw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e8XWDp+nf292e74PFM4HAeuKQ+eoJTHfKL70oi8KSuTxUgPQyY2+WWEP29KpUih2C czmtocxudMWq2Xf0qVCeUVGEuIp7PyIIWdSJfvjr5qOYviO0DLw14nesJHxY4Hj5e2 JNTfsf3hazJYunDPTsPnMznpRA0z49TfTZ6MjDMo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, syzbot+c54f8e94e6bba03b04e9@syzkaller.appspotmail.com, Al Viro Subject: [PATCH 4.14 136/222] gfs2_meta: ->mount() can get NULL dev_name Date: Sun, 11 Nov 2018 14:23:53 -0800 Message-Id: <20181111221659.716648610@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Al Viro commit 3df629d873f8683af6f0d34dfc743f637966d483 upstream. get in sync with mount_bdev() handling of the same Reported-by: syzbot+c54f8e94e6bba03b04e9@syzkaller.appspotmail.com Cc: stable@vger.kernel.org Signed-off-by: Al Viro Signed-off-by: Greg Kroah-Hartman --- fs/gfs2/ops_fstype.c | 3 +++ 1 file changed, 3 insertions(+) --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -1352,6 +1352,9 @@ static struct dentry *gfs2_mount_meta(st struct path path; int error; + if (!dev_name || !*dev_name) + return ERR_PTR(-EINVAL); + error = kern_path(dev_name, LOOKUP_FOLLOW, &path); if (error) { pr_warn("path_lookup on %s returned error %d\n",