linux/drivers/infiniband/sw
Daisuke Matsuda 1aefe5c177 RDMA/rxe: Prevent faulty rkey generation
If you create MRs more than 0x10000 times after loading the module,
responder starts to reply NAKs for RDMA/Atomic operations because of rkey
violation detected in check_rkey(). The root cause is that rkeys are
incremented each time a new MR is created and the value overflows into the
range reserved for MWs.

This commit also increases the value of RXE_MAX_MW that has been limited
unlike other parameters.

Fixes: 0994a1bcd5 ("RDMA/rxe: Bump up default maximum values used via uverbs")
Link: https://lore.kernel.org/r/20221220080848.253785-2-matsuda-daisuke@fujitsu.com
Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
Tested-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2023-01-09 10:48:16 -04:00
..
rdmavt IB/rdmavt: Add __init/__exit annotations to module init/exit funcs 2022-09-27 10:15:25 -03:00
rxe RDMA/rxe: Prevent faulty rkey generation 2023-01-09 10:48:16 -04:00
siw v6.2 merge window 2nd pull request 2022-12-17 08:23:42 -06:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00