]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srp: Add memory descriptor array pointer range checking
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 11 Aug 2015 00:07:27 +0000 (17:07 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:37 +0000 (18:12 -0400)
commit4a02a054a1e54ea1e9bd04981979a8ad5ca55640
treea3e7332634f679faa18579d7da6a0e1bd7b0ea0b
parent7355ff72f21881bd1dbcf8c32aca48eadbca4a25
IB/srp: Add memory descriptor array pointer range checking

Although most paths through which a request is submitted check
block layer parameters like the max_segments limit, these are
not checked when an SG_IO or direct I/O request is submitted.
Hence add a range check for the memory descriptor array pointer.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h