[PATCH] cifs: create sd context must be a multiple of 8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Steve,

Please review the fix for the bug reported at:
https://bugzilla.kernel.org/show_bug.cgi?id=213927

The issue was misalignment of create context caused by one of our
earlier commit:
commit ea64370bcae126a88cd26a16f1abcc23ab2b9a55 (tag: 5.10-rc6-smb3-fixes-part2)
Author: Ronnie Sahlberg <lsahlber@xxxxxxxxxx>
Date:   Mon Nov 30 11:29:20 2020 +1000

    cifs: refactor create_sd_buf() and and avoid corrupting the buffer

    When mounting with "idsfromsid" mount option, Azure
    corrupted the owner SIDs due to excessive padding
    caused by placing the owner fields at the end of the
    security descriptor on create.  Placing owners at the
    front of the security descriptor (rather than the end)
    is also safer, as the number of ACEs (that follow it)
    are variable.

    Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx>
    Suggested-by: Rohith Surabattula <rohiths@xxxxxxxxxxxxx>
    CC: Stable <stable@xxxxxxxxxxxxxxx> # v5.8
    Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx>

The fix can be found at:
https://github.com/sprasad-microsoft/smb3-kernel-client/pull/4

I think this should be marked for stable as well, with a "fixes" tag.

-- 
Regards,
Shyam



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux