summaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2017-08-23 14:48:14 +1000
committerBen Hutchings <ben@decadent.org.uk>2017-11-11 13:33:25 +0000
commitf519fdfd341728f59483c58f4b76a8524fdadbdb (patch)
tree278015a05c219550a059502836c555aed18549c6 /kernel/trace
parent6e0385bc72b316e24d7a1b59db48a285441289e5 (diff)
cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup()
commit d3edede29f74d335f81d95a4588f5f136a9f7dcf upstream. Add checking for the path component length and verify it is <= the maximum that the server advertizes via FileFsAttributeInformation. With this patch cifs.ko will now return ENAMETOOLONG instead of ENOENT when users to access an overlong path. To test this, try to cd into a (non-existing) directory on a CIFS share that has a too long name: cd /mnt/aaaaaaaaaaaaaaa... and it now should show a good error message from the shell: bash: cd: /mnt/aaaaaaaaaaaaaaaa...aaaaaa: File name too long rh bz 1153996 Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions