lkml.org 
[lkml]   [2018]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.18 219/350] gfs2_meta: ->mount() can get NULL dev_name
    Date
    4.18-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Al Viro <viro@zeniv.linux.org.uk>

    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 <viro@zeniv.linux.org.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    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",

    \
     
     \ /
      Last update: 2018-11-12 00:26    [W:5.067 / U:0.576 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site