commit | c75d3ec8c0ee469de79ae83c1a827d753603e49f | [log] [tgz] |
---|---|---|
author | Amrani, Ram <Ram.Amrani@cavium.com> | Mon Jun 26 19:05:04 2017 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Thu Jul 20 11:20:50 2017 -0400 |
tree | 49ac00312ed0d4af72a8254e95baa98450f3c089 | |
parent | 720336c42e41a917002fcae3aa14e30f5022bbb7 [diff] |
RDMA/qedr: Prevent memory overrun in verbs' user responses Wrap ib_copy_to_udata with a function that ensures that the data being copied over to user space isn't longer than the allowed. Fixes: cecbcddf6461 ("qedr: Add support for QP verbs") Fixes: a7efd7773e31 ("qedr: Add support for PD,PKEY and CQ verbs") Fixes: ac1b36e55a51 ("qedr: Add support for user context verbs") Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>