summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2017-03-31 17:53:35 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2017-05-02 07:20:57 +0200
commitf11b55d13563e9428c88c873f4f03a6bef11ec0a (patch)
tree52b323f26cd056b8e6bb6d0c8a2d173ea172d8ee /include
parenttarget: Fix VERIFY and WRITE VERIFY command parsing (diff)
downloadlinux-f11b55d13563e9428c88c873f4f03a6bef11ec0a.tar.xz
linux-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 'include')
0 files changed, 0 insertions, 0 deletions