summaryrefslogtreecommitdiff
path: root/include/target
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2017-03-31 18:53:35 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2017-05-02 08:20:57 +0300
commitf11b55d13563e9428c88c873f4f03a6bef11ec0a (patch)
tree52b323f26cd056b8e6bb6d0c8a2d173ea172d8ee /include/target
parent0e2eb7d12eaa8e391bf5615d4271bb87a649caaa (diff)
downloadlinux-f11b55d13563e9428c88c873f4f03a6bef11ec0a.tar.xz
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 'include/target')
0 files changed, 0 insertions, 0 deletions