aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-12-19 04:03:54 -0600
committerNicholas Bellinger <nab@linux-iscsi.org>2018-01-12 15:07:29 -0800
commitc1c390ba53195aef36e94b2354bc0e603057c293 (patch)
tree102298e922af8367d4e0c5355ae42333a6ee216e /include/target
parenttarget: don't call an unmap callback if a range length is zero (diff)
downloadlinux-dev-c1c390ba53195aef36e94b2354bc0e603057c293.tar.xz
linux-dev-c1c390ba53195aef36e94b2354bc0e603057c293.zip
tcmu: prevent corruption when invalid data page requested
We will always have a page mapped for cmd data if it is valid command. If the mapping does not exist then something bad happened in userspace and it should not proceed. This has us return VM_FAULT_SIGBUS when this happens instead of returning a freshly allocated paged. The latter can cause corruption because userspace might write the pages data overwriting valid data or return it to the initiator. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions