Linux kernel bug fix: RDMA/hns: Limit the length of data copied between kernel and userspace
Subsystem: rdma (drivers/infiniband/hw/hns/hns_roce_main.c)
Bug type: out-of-bounds, severity: medium
Keywords: out of bounds
Files changed: drivers/infiniband/hw/hns/hns_roce_cq.c;drivers/infiniband/hw/hns/hns_roce_main.c;drivers/infiniband/hw/hns/hns_roce_pd.c;drivers/infiniband/hw/hns/hns_roce_qp.c;drivers/infiniband/hw/hns/hns_roce_srq.c
Introduced by Jason Gunthorpe on 2018-03-15 15:58:04 -0600; fixed by Wenpeng Liang on 2020-12-11 15:21:33 -0400 (lifetime: 1001 days)