]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ksmbd: Fix an error handling path in 'smb2_sess_setup()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Nov 2021 15:22:57 +0000 (16:22 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:34:47 +0000 (07:34 +0100)
commite8f42e1fd38902e09e00ad0aff0580928fc00fd9
tree2b6fe2256c4e0290daeb85903ae200d6e78a129a
parent95f61cd9dbf0fe4cbac620e664b1c20f0c9b688f
ksmbd: Fix an error handling path in 'smb2_sess_setup()'

BugLink: https://bugs.launchpad.net/bugs/1953370
commit f8fbfd85f5c95fff477a7c19f576725945891d0c upstream.

All the error handling paths of 'smb2_sess_setup()' end to 'out_err'.

All but the new error handling path added by the commit given in the Fixes
tag below.

Fix this error handling path and branch to 'out_err' as well.

Fixes: 0d994cd482ee ("ksmbd: add buffer validation in session setup")
Cc: stable@vger.kernel.org # v5.15
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/ksmbd/smb2pdu.c