linux/drivers/infiniband/hw/irdma
Shiraz Saleem 1f70075722 RDMA/irdma: Fix potential overflow expression in irdma_prm_get_pbles
Coverity reports a signed 32-bit overflow on "1 << pprm->pble_shift" when
used expression to compute bits_needed that expects 64bit, unsigned.

Fix this by using the 1ULL in the left shift operator and convert mem_size
to u64.

Link: https://lore.kernel.org/r/20210625162329.1654-3-tatyana.e.nikolova@intel.com
Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1505157 ("Integer handling issues")
Fixes: 915cc7ac0f ("RDMA/irdma: Add miscellaneous utility definitions")
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-06-25 14:08:30 -03:00
..
cm.c RDMA/irdma: Remove use of kmap() 2021-06-24 15:07:01 -03:00
cm.h RDMA/irdma: Add connection manager 2021-06-02 19:55:18 -03:00
ctrl.c RDMA/irdma: remove redundant initialization of variable val 2021-06-07 20:20:05 -03:00
defs.h RDMA/irdma: Implement HW Admin Queue OPs 2021-06-02 19:55:17 -03:00
hmc.c RDMA/irdma: Add HMC backing store setup functions 2021-06-02 19:55:17 -03:00
hmc.h RDMA/irdma: Add HMC backing store setup functions 2021-06-02 19:55:17 -03:00
hw.c RDMA/irdma: Store PBL info address a pointer type 2021-06-10 09:39:27 -03:00
i40iw_hw.c
i40iw_hw.h
i40iw_if.c
icrdma_hw.c
icrdma_hw.h
irdma.h RDMA/irdma: Implement HW Admin Queue OPs 2021-06-02 19:55:17 -03:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
main.c
main.h
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
osdep.h RDMA/irdma: Add miscellaneous utility definitions 2021-06-02 19:55:19 -03:00
pble.c RDMA/irdma: Store PBL info address a pointer type 2021-06-10 09:39:27 -03:00
pble.h RDMA/irdma: Fix potential overflow expression in irdma_prm_get_pbles 2021-06-25 14:08:30 -03:00
protos.h RDMA/irdma: Add miscellaneous utility definitions 2021-06-02 19:55:19 -03:00
puda.c RDMA/irdma: Use list_last_entry/list_first_entry 2021-06-08 20:04:00 -03:00
puda.h RDMA/irdma: Add privileged UDA queue implementation 2021-06-02 19:55:17 -03:00
status.h RDMA/irdma: Add miscellaneous utility definitions 2021-06-02 19:55:19 -03:00
trace_cm.h RDMA/irdma: Add dynamic tracing for CM 2021-06-02 19:55:19 -03:00
trace.c RDMA/irdma: Add dynamic tracing for CM 2021-06-02 19:55:19 -03:00
trace.h RDMA/irdma: Add dynamic tracing for CM 2021-06-02 19:55:19 -03:00
type.h RDMA/irdma: Implement HW Admin Queue OPs 2021-06-02 19:55:17 -03:00
uda_d.h RDMA/irdma: Add RoCEv2 UD OP support 2021-06-02 19:55:18 -03:00
uda.c RDMA/irdma: Add RoCEv2 UD OP support 2021-06-02 19:55:18 -03:00
uda.h RDMA/irdma: Add RoCEv2 UD OP support 2021-06-02 19:55:18 -03:00
uk.c RDMA/irdma: Add user/kernel shared libraries 2021-06-02 19:55:18 -03:00
user.h RDMA/irdma: Add user/kernel shared libraries 2021-06-02 19:55:18 -03:00
utils.c RDMA/irdma: Fix potential overflow expression in irdma_prm_get_pbles 2021-06-25 14:08:30 -03:00
verbs.c RDMA/irdma: Check contents of user-space irdma_mem_reg_req object 2021-06-25 14:08:30 -03:00
verbs.h RDMA/irdma: Implement device supported verb APIs 2021-06-02 19:55:18 -03:00
ws.c RDMA/irdma: Add QoS definitions 2021-06-02 19:55:17 -03:00
ws.h RDMA/irdma: Add QoS definitions 2021-06-02 19:55:17 -03:00