Steve French
ecdba236bc
smb3: check xattr value length earlier
...
[ Upstream commit 5fa2cffba0b82336a2244d941322eb1627ff787b ]
Coverity complains about assigning a pointer based on
value length before checking that value length goes
beyond the end of the SMB. Although this is even more
unlikely as value length is a single byte, and the
pointer is not dereferenced until laterm, it is clearer
to check the lengths first.
Addresses-Coverity: 1467704 ("Speculative execution data leak")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com >
Signed-off-by: Steve French <stfrench@microsoft.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-08-25 11:40:45 +02:00
..
2021-06-20 21:28:17 -05:00
2021-09-13 14:51:10 -05:00
2022-03-08 19:12:41 +01:00
2021-06-20 21:28:17 -05:00
2021-07-14 10:06:33 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-06-20 21:28:17 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-08-25 15:47:06 -05:00
2021-04-25 16:28:22 -05:00
2021-09-13 14:51:10 -05:00
2022-03-08 19:12:30 +01:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2022-06-14 18:36:25 +02:00
2022-06-14 18:36:25 +02:00
2022-06-14 18:36:24 +02:00
2021-09-13 14:51:10 -05:00
2021-09-17 16:39:53 -05:00
2021-09-13 14:51:10 -05:00
2022-03-08 19:12:41 +01:00
2021-07-22 11:43:23 -05:00
2021-07-22 11:43:23 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2022-08-17 14:24:18 +02:00
2022-02-23 12:03:14 +01:00
2021-11-18 19:16:06 +01:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-09-17 16:39:53 -05:00
2021-09-13 18:29:46 -05:00
2021-08-25 15:48:00 -05:00
2022-04-20 09:34:13 +02:00
2021-06-20 21:28:17 -05:00
2022-08-25 11:39:56 +02:00
2021-06-20 21:28:16 -05:00
2020-12-14 09:16:22 -06:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2022-03-08 19:12:41 +01:00
2021-04-25 16:28:23 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2022-06-09 10:23:30 +02:00
2021-08-25 15:51:52 -05:00
2021-09-13 14:51:10 -05:00
2022-08-25 11:40:45 +02:00
2022-06-14 18:36:25 +02:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-09-13 14:51:10 -05:00
2021-06-22 12:08:32 -05:00
2021-09-08 23:59:26 -05:00
2021-09-13 14:51:10 -05:00
2021-05-27 14:04:32 -05:00
2022-03-08 19:12:41 +01:00
2021-04-25 16:28:23 -05:00
2021-09-13 14:51:10 -05:00
2022-02-23 12:03:14 +01:00