Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3412499imu; Sun, 11 Nov 2018 14:29:05 -0800 (PST) X-Google-Smtp-Source: AJdET5enB7lgjL4Jl4g57g3MXa9rwDih/VnU6//WYNsIrxm1S9MMS40fM5UbG0iyq7OhvEhejeKn X-Received: by 2002:a17:902:e081:: with SMTP id cb1-v6mr17473514plb.206.1541975345468; Sun, 11 Nov 2018 14:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541975345; cv=none; d=google.com; s=arc-20160816; b=KK4KIMdXCBvuBv2QH/GFQB5abz/tK3+h3ChsC1eaIjMIfFcUc8jYCgEi/duVeN9fzZ umyMyHxIIMvoa+uZ+z9Bj8W+3xGXtj+j4tTKFx2DedE503NA27shPUxsGQ1nVK7FSIbD zcqsSyXA8VJV74zB77ZRZU/0uTsj3xJ27Pw0Apz53ZqMWhBLKH4i73VDYzCpyJSMISvF mPpbLLPwf7phcuGVhQ+2o2kYfUFen+xjT/dH7iREciET7ougiS0g6AWqmnCLXgIxVog5 DFr2PH5Lu/QY9kJZf66w9V+XQVJ1duicdK6+kaVCi+csaiMIriGunVmdb89msE4gotAH +S+w== 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=82AJcC5jugMlg/LazKttJp2pJgrJjikMVVJVf5Oc65A=; b=SyTeQRJ2aV3ob9eXfjgEKBsnItEfpK5xn6Ja7WLUXGqkjqUGdGR+9q6su6UXRqS4l5 T+XOGrFmZLVqTB0tV1afUGBsgt4Gd36pdcwzuzsw6iS2fywGKVIUdhHYAG9/X84nwM9J 5cBIza8tM/KqebtRvNvycVUnkzTbv3ol7FqtvKI0iX2Gj15sO/sAklmBx+swdycJA1wi QHmtu7kjXpZmFGwxOAAmvSh1h+sp+zKj+RJX+OhN4TnLXXxSJFjJcPekNqhjUZL41gr6 VN6hlZFgJVg9Tf4i7SoPm8mrIyekdN1LTeqSh+9Cb/Wdm8P0a9xDHvtJtxshBUbh2J36 Tbyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vOZwI7z7; 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 j66-v6si2434706pfb.284.2018.11.11.14.28.50; Sun, 11 Nov 2018 14:29:05 -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=vOZwI7z7; 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 S1732404AbeKLISG (ORCPT + 99 others); Mon, 12 Nov 2018 03:18:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:35400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732353AbeKLISE (ORCPT ); Mon, 12 Nov 2018 03:18:04 -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 6D38B2241B; Sun, 11 Nov 2018 22:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975288; bh=hZdGdkol4zf9/wZKDvv/XY+3bLA0/Feekn8+fc497zI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vOZwI7z7vPxyuaWQNWkK88+YHyQQ1L9tscC3LPYN+6y6LfZZIpL1FTB5b9F+kkwE1 +QPQrl0d9JCR3iMWa9b4DZKR6YufourkS9C3J9L5g66erUKJdw8oM2QjUKlMQ1A6mF lE5STpXmuSXdyPTMxUbnUGEFkjpvuL+oGBfxWsqU= 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.19 225/361] gfs2_meta: ->mount() can get NULL dev_name Date: Sun, 11 Nov 2018 14:19:32 -0800 Message-Id: <20181111221651.062395794@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-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 @@ -1333,6 +1333,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",