Files
twx-linux/fs
Shyam Prasad N a4f751c41a cifs: Return the error from crypt_message when enc/dec key not found.
commit 0bd294b55a upstream.

In crypt_message, when smb2_get_enc_key returns error, we need to
return the error back to the caller. If not, we end up processing
the message further, causing a kernel oops due to unwarranted access
of memory.

Call Trace:
smb3_receive_transform+0x120/0x870 [cifs]
cifs_demultiplex_thread+0xb53/0xc20 [cifs]
? cifs_handle_standard+0x190/0x190 [cifs]
kthread+0x116/0x130
? kthread_park+0x80/0x80
ret_from_fork+0x1f/0x30

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-29 09:54:59 +01:00
..
2020-08-19 08:15:06 +02:00
…
…
…
…
2020-08-19 08:15:02 +02:00
…
…
2020-08-26 10:31:01 +02:00
2019-12-13 08:51:59 +01:00
…
…
…
…
…
2020-10-17 10:12:58 +02:00
…
2020-06-22 09:05:01 +02:00
…
2020-09-03 11:24:24 +02:00
…
…
2020-03-05 16:42:12 +01:00
2020-10-01 13:14:27 +02:00
…
…
…
2020-03-25 08:06:14 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…