summaryrefslogtreecommitdiffstats
path: root/scripts/selinux
diff options
context:
space:
mode:
authorPaolo Bonzini2012-09-07 17:30:38 +0200
committerNicholas Bellinger2012-09-18 02:13:36 +0200
commitffe7b0e9326d9c68f5688bef691dd49f1e0d3651 (patch)
treef180001bbe2685c8388c372766e6884f2cb7845e /scripts/selinux
parenttarget: use list_move_tail instead of list_del/list_add_tail (diff)
downloadkernel-qcow2-linux-ffe7b0e9326d9c68f5688bef691dd49f1e0d3651.tar.gz
kernel-qcow2-linux-ffe7b0e9326d9c68f5688bef691dd49f1e0d3651.tar.xz
kernel-qcow2-linux-ffe7b0e9326d9c68f5688bef691dd49f1e0d3651.zip
target: support zero allocation length in INQUIRY
INQUIRY processing already uses an on-heap bounce buffer for loopback, but not for other fabrics. Switch this to a cheaper on-stack bounce buffer, similar to the one used by MODE SENSE and REQUEST SENSE, and use it unconditionally. With this in place, zero allocation length is handled simply by checking the return address of transport_kmap_data_sg. Testcase: sg_raw /dev/sdb 12 00 83 00 00 00 should fail with ILLEGAL REQUEST / INVALID FIELD IN CDB sense does not fail without the patch fails correctly with the series Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'scripts/selinux')
0 files changed, 0 insertions, 0 deletions