]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Clarify SMB1 code for UnixSetPathInfo
authorSteve French <stfrench@microsoft.com>
Fri, 2 Jul 2021 02:01:19 +0000 (21:01 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 2 Jul 2021 23:36:26 +0000 (18:36 -0500)
commitc53cce03f5c6b5310e81266ea6497cbca8d5cf14
tree513e2217b11f7862e2c6e5bf50b1286f76461b4d
parent7578df2d01557b9e1b7b591ae2d75af16b6ae0d2
CIFS: Clarify SMB1 code for UnixSetPathInfo

Coverity also complains about the way we calculate the offset
(starting from the address of a 4 byte array within the
header structure rather than from the beginning of the struct
plus 4 bytes) for doing SetPathInfo (setattr) when using the Unix
extensions.  This doesn't change the address but makes it
slightly clearer.

Addresses-Coverity: 711528 ("Out of bounds read")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c