SMB3: Fix crash in SMB2_open_init due to uninitialized field in compounding path
Steve French authored
Ran into an intermittent crash in
	SMB2_open_init+0x2f6/0x970
due to oparms.cifs_sb not being initialized when called from:
	smb2_compound_op+0x45d/0x1690
Zero the whole oparms struct in the compounding path before setting up the
oparms so we don't risk any uninitialized fields.

Fixes: fdef665b

 ("smb3: fix mode passed in on create for modetosid mount option")
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Acked-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
e0fc5b11
Name Last commit Last update
Documentation Merge tag 'powerpc-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
LICENSES LICENSES: Rename other to deprecated
arch Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
block block: fix memleak of bio integrity data
certs certs: Add wrapper function to check blacklisted binary hash
crypto Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
drivers Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
fs SMB3: Fix crash in SMB2_open_init due to uninitialized field in compounding path
include Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
init init/Kconfig: fix indentation
ipc y2038: remove CONFIG_64BIT_TIME
kernel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
lib lib/: fix Kconfig indentation
mm Merge branch 'akpm' (patches from Andrew)
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
samples samples/bpf: Fix broken xdp_rxq_info due to map order assumptions
scripts Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
security Merge tag 'apparmor-pr-2019-12-03' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
sound Merge tag 'sound-fix-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
tools Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
usr arch: sembuf.h: make uapi asm/sembuf.h self-contained
virt KVM: Fix jump label out_free_* in kvm_init()
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: use 'dts' diff driver for dts files
.gitignore modpost: dump missing namespaces into a single modules.nsdeps file
.mailmap Merge mainline/master into arm/fixes
COPYING COPYING: use the new text with points to the license files
CREDITS Merge tag 'v5.4-rc4' into docs-next
Kbuild kbuild: do not descend to ./Kbuild when cleaning
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst
MAINTAINERS Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Makefile Linux 5.5-rc1
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.