https://source.android.com/security/bulletin/2020-03-01
CVE-2019-19527
CVE-2019-19537
CVE-2020-0040
CVE-2020-0041
CVE-2020-0009
ANDROID: scsi: ufs: allow ufs variants to override sg entry size

Modify the UFSHCD core to allow 'struct ufshcd_sg_entry' to be
variable-length.  The default is the standard length, but variants can
override ufs_hba::sg_entry_size with a larger value if there are
vendor-specific fields following the standard ones.

This is needed to support inline encryption with ufs-exynos (FMP).

Bug: 129991660
Signed-off-by: Eric Biggers <ebiggers@google.com>

(cherry picked from android-mainline
 commit 8de80df7d7e407369d1f8c2971daf29348d1a643)
(resolved trivial merge conflict in ufshcd_alloc_host())
Change-Id: I6ab9458d5c23331013e6b736d6fea378a6b5b86c
Signed-off-by: Eric Biggers <ebiggers@google.com>
3 files changed