WSL2-Linux-Kernel/drivers/infiniband/sw
Bob Pearson e7ec96fc79 RDMA/rxe: Fix skb lifetime in rxe_rcv_mcast_pkt()
The changes referenced below replaced sbk_clone)_ by taking additional
references, passing the skb along and then freeing the skb. This
deleted the packets before they could be processed and additionally
passed bad data in each packet. Since pkt is stored in skb->cb
changing pkt->qp changed it for all the packets.

Replace skb_get() by sbk_clone() in rxe_rcv_mcast_pkt() for cases where
multiple QPs are receiving multicast packets on the same address.

Delete kfree_skb() because the packets need to live until they have been
processed by each QP. They are freed later.

Fixes: 86af617641 ("IB/rxe: remove unnecessary skb_clone")
Fixes: fe896ceb57 ("IB/rxe: replace refcount_inc with skb_get")
Link: https://lore.kernel.org/r/20201008203651.256958-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-10-08 20:22:11 -03:00
..
rdmavt IB/rdmavt: Fix sizeof mismatch 2020-10-08 15:14:17 -03:00
rxe RDMA/rxe: Fix skb lifetime in rxe_rcv_mcast_pkt() 2020-10-08 20:22:11 -03:00
siw RDMA: Allow fail of destroy CQ 2020-09-09 14:14:29 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00