aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_configfs.c
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2017-03-31 19:53:35 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2017-05-01 22:20:57 -0700
commitf11b55d13563e9428c88c873f4f03a6bef11ec0a (patch)
tree52b323f26cd056b8e6bb6d0c8a2d173ea172d8ee /drivers/target/target_core_configfs.c
parenttarget: Fix VERIFY and WRITE VERIFY command parsing (diff)
downloadlinux-dev-f11b55d13563e9428c88c873f4f03a6bef11ec0a.tar.xz
linux-dev-f11b55d13563e9428c88c873f4f03a6bef11ec0a.zip
tcm_fileio: Prevent information leak for short reads
If we failed to read data from backing file (probably because some one truncate file under us), we must zerofill cmd's data, otherwise it will be returned as is. Most likely cmd's data are unitialized pages from page cache. This result in information leak. (Change BUG_ON into -EINVAL se_cmd failure - nab) testcase: https://github.com/dmonakhov/xfstests/commit/e11a1b7b907ca67b1be51a1594025600767366d5 Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_configfs.c')
0 files changed, 0 insertions, 0 deletions