]> 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)
commit96150c8c6290481cea2524d2cb42373cb24095ba
tree1fe0b5c4a70abbc036b86c6331b56bbd91342509
parent8c2f49d383e95028b7f9eae2dba877c53bc95751
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