Re: Re: [PATCH] RDMA/siw: Fix missing check in siw_get_hdr

2021-02-26 Thread dinghao . liu
; > >, "Jason Gunthorpe" , > >linux-r...@vger.kernel.org, linux-kernel@vger.kernel.org > >Subject: [EXTERNAL] [PATCH] RDMA/siw: Fix missing check in > >siw_get_hdr > > > >We should also check the range of opcode after calling > >__rdmap_get_opcode() in th

Re: [PATCH] RDMA/siw: Fix missing check in siw_get_hdr

2021-02-26 Thread Bernard Metzler
-"Dinghao Liu" wrote: - >To: dinghao@zju.edu.cn, k...@umn.edu >From: "Dinghao Liu" >Date: 02/26/2021 08:56AM >Cc: "Bernard Metzler" , "Doug Ledford" >, "Jason Gunthorpe" , >linux-r...@vger.kernel.org, linux-kerne

[PATCH] RDMA/siw: Fix missing check in siw_get_hdr

2021-02-25 Thread Dinghao Liu
We should also check the range of opcode after calling __rdmap_get_opcode() in the else branch to prevent potential overflow. Fixes: 8b6a361b8c482 ("rdma/siw: receive path") Signed-off-by: Dinghao Liu --- drivers/infiniband/sw/siw/siw_qp_rx.c | 10 ++ 1 file changed, 10 insertions(+)