lkml.org 
[lkml]   [2014]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.14 134/238] SMB3: Fix oops when creating symlinks on smb3
    Date
    3.14-stable review patch.  If anyone has any objections, please let me know.

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

    From: Steve French <smfrench@gmail.com>

    commit da80659d4aa758dc6935b10ec64513f0b67bc969 upstream.

    We were not checking for symlink support properly for SMB2/SMB3
    mounts so could oops when mounted with mfsymlinks when try
    to create symlink when mfsymlinks on smb2/smb3 mounts

    Signed-off-by: Steve French <smfrench@gmail.com>
    CC: Sachin Prabhu <sprabhu@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    fs/cifs/link.c | 8 ++++++--
    1 file changed, 6 insertions(+), 2 deletions(-)

    --- a/fs/cifs/link.c
    +++ b/fs/cifs/link.c
    @@ -213,8 +213,12 @@ create_mf_symlink(const unsigned int xid
    if (rc)
    goto out;

    - rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, cifs_sb,
    - fromName, buf, &bytes_written);
    + if (tcon->ses->server->ops->create_mf_symlink)
    + rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon,
    + cifs_sb, fromName, buf, &bytes_written);
    + else
    + rc = -EOPNOTSUPP;
    +
    if (rc)
    goto out;




    \
     
     \ /
      Last update: 2014-10-04 00:41    [W:3.452 / U:0.348 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site