Paul Aurich
93f3339b22
cifs: Return correct error code from smb2_get_enc_key
...
commit 83728cbf366e334301091d5b808add468ab46b27 upstream.
Avoid a warning if the error percolates back up:
[440700.376476] CIFS VFS: \\otters.example.com crypt_message: Could not get encryption key
[440700.386947] ------------[ cut here ]------------
[440700.386948] err = 1
[440700.386977] WARNING: CPU: 11 PID: 2733 at /build/linux-hwe-5.4-p6lk6L/linux-hwe-5.4-5.4.0/lib/errseq.c:74 errseq_set+0x5c/0x70
...
[440700.397304] CPU: 11 PID: 2733 Comm: tar Tainted: G OE 5.4.0-70-generic #78~18.04.1-Ubuntu
...
[440700.397334] Call Trace:
[440700.397346] __filemap_set_wb_err+0x1a/0x70
[440700.397419] cifs_writepages+0x9c7/0xb30 [cifs]
[440700.397426] do_writepages+0x4b/0xe0
[440700.397444] __filemap_fdatawrite_range+0xcb/0x100
[440700.397455] filemap_write_and_wait+0x42/0xa0
[440700.397486] cifs_setattr+0x68b/0xf30 [cifs]
[440700.397493] notify_change+0x358/0x4a0
[440700.397500] utimes_common+0xe9/0x1c0
[440700.397510] do_utimes+0xc5/0x150
[440700.397520] __x64_sys_utimensat+0x88/0xd0
Fixes: 61cfac6f267d ("CIFS: Fix possible use after free in demultiplex thread")
Signed-off-by: Paul Aurich <paul@darkrain42.org>
CC: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-11 14:04:04 +02:00
..
2020-10-29 09:57:28 +01:00
2018-08-07 14:15:41 -05:00
2019-12-21 11:04:43 +01:00
2019-09-16 11:43:38 -05:00
2020-03-25 08:25:43 +01:00
2019-09-16 11:43:38 -05:00
2019-09-21 06:02:26 -05:00
2019-07-10 18:43:43 -07:00
2020-11-18 19:20:34 +01:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-12-02 08:49:45 +01:00
2019-09-26 16:37:43 -05:00
2019-06-20 14:19:55 +08:00
2021-03-17 17:03:34 +01:00
2019-09-16 19:18:39 -05:00
2020-10-01 13:17:21 +02:00
2018-11-02 14:09:41 -05:00
2020-03-12 13:00:18 +01:00
2019-09-16 11:43:39 -05:00
2020-05-20 08:20:34 +02:00
2021-04-14 08:24:19 +02:00
2020-02-24 08:36:58 +01:00
2019-05-07 23:24:54 -05:00
2021-02-10 09:25:30 +01:00
2019-06-27 23:02:12 +01:00
2019-07-31 13:31:05 -06:00
2021-04-10 13:34:31 +02:00
2018-08-07 14:15:41 -05:00
2018-08-07 14:15:41 -05:00
2020-11-05 11:43:21 +01:00
2019-09-21 06:02:26 -05:00
2019-09-19 10:32:16 -07:00
2019-05-07 23:24:55 -05:00
2019-09-16 11:43:38 -05:00
2020-10-01 13:17:21 +02:00
2019-10-06 22:04:35 -05:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2018-12-23 22:41:31 -06:00
2019-09-23 22:51:57 -05:00
2020-10-01 13:17:21 +02:00
2020-01-17 19:48:27 +01:00
2018-10-23 21:16:04 -05:00
2020-03-12 13:00:18 +01:00
2019-09-16 11:43:38 -05:00
2021-04-10 13:34:31 +02:00
2021-05-11 14:04:04 +02:00
2021-03-30 14:35:21 +02:00
2021-02-10 09:25:30 +01:00
2021-01-19 18:26:13 +01:00
2019-05-07 23:24:54 -05:00
2020-02-01 09:34:37 +00:00
2019-12-21 11:04:43 +01:00
2019-05-30 11:26:37 -07:00
2019-08-22 14:57:34 +10:00
2019-09-24 23:31:32 -05:00
2019-01-24 09:37:33 -06:00
2019-09-16 11:43:39 -05:00
2021-03-30 14:35:21 +02:00
2019-05-30 11:26:35 -07:00
2019-09-23 23:28:59 -05:00