summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2016-07-07 21:28:27 +0100
committerSteve French <smfrench@gmail.com>2016-07-12 16:09:38 -0500
commit8d9535b6efd86e6c07da59f97e68f44efb7fe080 (patch)
tree3fcb5551ed58b08d7a435f906b7357738efb5814 /ipc
parent5b23c97d7ee8fd443c7ff29813ed13f006e8d570 (diff)
downloadop-kernel-dev-8d9535b6efd86e6c07da59f97e68f44efb7fe080.zip
op-kernel-dev-8d9535b6efd86e6c07da59f97e68f44efb7fe080.tar.gz
cifs: Check for existing directory when opening file with O_CREAT
When opening a file with O_CREAT flag, check to see if the file opened is an existing directory. This prevents the directory from being opened which subsequently causes a crash when the close function for directories cifs_closedir() is called which frees up the file->private_data memory while the file is still listed on the open file list for the tcon. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> CC: Stable <stable@vger.kernel.org> Reported-by: Xiaoli Feng <xifeng@redhat.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud