]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: do not use uninitialized data in the owner/group sid
authorRonnie Sahlberg <lsahlber@redhat.com>
Fri, 11 Feb 2022 22:16:20 +0000 (08:16 +1000)
committerSteve French <stfrench@microsoft.com>
Sun, 13 Feb 2022 20:56:46 +0000 (14:56 -0600)
commit008feeacb57c7964d95a72ff7df47853bd9f6676
tree1fe0b5c4a70abbc036b86c6331b56bbd91342509
parent6204ef38738464c6157be27ea6be60c01b4b6de5
cifs: do not use uninitialized data in the owner/group sid

When idsfromsid is used we create a special SID for owner/group.
This structure must be initialized or else the first 5 bytes
of the Authority field of the SID will contain uninitialized data
and thus not be a valid SID.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.c