mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 06:24:12 +00:00
Third round of -rc fixes for 4.10 kernel
- Two security related issues in the rxe driver - One compile issue in the RDMA uapi header -----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJYm1pNAAoJELgmozMOVy/dszkQAKJN8JedNNuKLyF2BbjXR7Dv KsxVuXmdVpF8FPxrPlVUA76o26yEWfxVtJwEHi4hEVLmTXKHcd8EkL2o7geR7hTB +j2J6HuH7e4y6ATX9H2o78fg1SRIWZJij4JdXilZRQ3pKj5DcmYynklBqqpMJ8Su c2ceE5nbJdpbIhPD3yulmGVF/89zntaBVbh07D1O6rdbaSNwuc+wv0XdfJ+KUXju ZfylACJBnMsIjxyuqZPV4djs91CI/tbgArZmh5tvgF+V9Gx6Vocbv90kS+BtbKH0 srX9MyBrSycY8eELhbFAg7XBJXsNk4Rk0yMuMEhF2IWjwzaa7plIgeCv7NA1NWqq EKW0lzC0e7VV5ttjKHqe6iO+8JIC9QEi/36IqTgBBNqw0Cphocazq/mVY5fAu1uo qWdxbeYz3owWu47NNJ15TvaEkMbMX8ACEu4KhaT0FA+jit4czJ3PeyCLqe8aD5Pa AK4e2Lnj+CZb2aJN2Knh4Wu6tK9M2P0vuzHElrf0D3qe37HxaRQuZWLC9kOKplWZ DGrYoM94EaeTZScZ4Lo7BSol7yuYXXFkE42/TarIZuT67GNM+qss9HRDtWzDnSuD zX4EdJ/0kjX3SU2Em4g+7MelA4TMX74sLlEmU6iSUEWm1/pX+X9SYwT0iEmy2tR+ SXEti5uW/K/P7e2RmzQO =zGBQ -----END PGP SIGNATURE----- Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma Pull rdma fixes from Doug Ledford: "Third round of -rc fixes for 4.10 kernel: - two security related issues in the rxe driver - one compile issue in the RDMA uapi header" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: RDMA: Don't reference kernel private header from UAPI header IB/rxe: Fix mem_check_range integer overflow IB/rxe: Fix resid update
This commit is contained in:
commit
a9dbf5c8d4
3 changed files with 14 additions and 7 deletions
|
@ -59,9 +59,11 @@ int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length)
|
||||||
|
|
||||||
case RXE_MEM_TYPE_MR:
|
case RXE_MEM_TYPE_MR:
|
||||||
case RXE_MEM_TYPE_FMR:
|
case RXE_MEM_TYPE_FMR:
|
||||||
return ((iova < mem->iova) ||
|
if (iova < mem->iova ||
|
||||||
((iova + length) > (mem->iova + mem->length))) ?
|
length > mem->length ||
|
||||||
-EFAULT : 0;
|
iova > mem->iova + mem->length - length)
|
||||||
|
return -EFAULT;
|
||||||
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
|
@ -479,7 +479,7 @@ static enum resp_states check_rkey(struct rxe_qp *qp,
|
||||||
goto err2;
|
goto err2;
|
||||||
}
|
}
|
||||||
|
|
||||||
resid = mtu;
|
qp->resp.resid = mtu;
|
||||||
} else {
|
} else {
|
||||||
if (pktlen != resid) {
|
if (pktlen != resid) {
|
||||||
state = RESPST_ERR_LENGTH;
|
state = RESPST_ERR_LENGTH;
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#define IB_USER_VERBS_H
|
#define IB_USER_VERBS_H
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <rdma/ib_verbs.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Increment this value if any changes that break userspace ABI
|
* Increment this value if any changes that break userspace ABI
|
||||||
|
@ -548,11 +547,17 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
IB_USER_LEGACY_LAST_QP_ATTR_MASK = IB_QP_DEST_QPN
|
/*
|
||||||
|
* This value is equal to IB_QP_DEST_QPN.
|
||||||
|
*/
|
||||||
|
IB_USER_LEGACY_LAST_QP_ATTR_MASK = 1ULL << 20,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
IB_USER_LAST_QP_ATTR_MASK = IB_QP_RATE_LIMIT
|
/*
|
||||||
|
* This value is equal to IB_QP_RATE_LIMIT.
|
||||||
|
*/
|
||||||
|
IB_USER_LAST_QP_ATTR_MASK = 1ULL << 25,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ib_uverbs_ex_create_qp {
|
struct ib_uverbs_ex_create_qp {
|
||||||
|
|
Loading…
Add table
Reference in a new issue