summaryrefslogtreecommitdiff
path: root/drivers/scsi/ufs
diff options
context:
space:
mode:
authorBodo Stroesser <bostroesser@gmail.com>2021-10-13 19:16:06 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-18 22:38:35 -0400
commit1d2ac7b69d6a984d0f58b82d0f658ebd9aa05428 (patch)
treec91cb46bd1cc51c2a1af64732e2e230bba800993 /drivers/scsi/ufs
parentd1e51ea6bf5f72f67937f4446a5b6d56330f9d79 (diff)
downloadlinux-next-1d2ac7b69d6a984d0f58b82d0f658ebd9aa05428.tar.gz
scsi: target: tcmu: Allocate zeroed pages for data area
Tcmu populates the data area (used for communication with userspace) with pages that are allocated by calling alloc_page(GFP_NOIO). Therefore previous content of the allocated pages is exposed to user space. Avoid this by adding __GFP_ZERO flag. Zeroing the pages does (nearly) not affect tcmu throughput, because allocated pages are re-used for the data transfers of later SCSI cmds. Link: https://lore.kernel.org/r/20211013171606.25197-1-bostroesser@gmail.com Signed-off-by: Bodo Stroesser <bostroesser@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs')
0 files changed, 0 insertions, 0 deletions