Bug 1801985
Summary: | [RHEL-8.3/RDMA/rdma-core] vmw_pvrdma provider specific potential Coverity issues | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Honggang LI <honli> |
Component: | rdma-core | Assignee: | Honggang LI <honli> |
Status: | CLOSED ERRATA | QA Contact: | zguo <zguo> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.3 | CC: | aditr, bryantan, gchua, hwkernel-mgr, jhansen, rdma-dev-team, vdasa, zguo |
Target Milestone: | rc | ||
Target Release: | 8.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rdma-core-29.0-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 01:37:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1813407, 1825061 |
Description
Honggang LI
2020-02-12 03:34:59 UTC
Hi, Adit Could you please review and fix these issues for vmw_pvrdma? Thanks Honggang. Bryan, is it possible for you to take a look? The 3rd one is an easy fix. I'm not sure about the first two. Thanks Honggang for filing this. I have a fix for review internally for the 3rd issue that Adit pointed out. For the first two, seems like it is by design: https://github.com/linux-rdma/rdma-core/blob/v28.0/libibverbs/cmd.c#L924 this has been around for a while, and isn't specific to vmw_pvrdma. The struct in question (_KABI_RESP_STRUCT_IB_USER_VERBS_CMD_CREATE_QP) is always part of another struct that has a union following it: https://github.com/linux-rdma/rdma-core/blob/v28.0/libibverbs/kern-abi.h#L147 . Honggang, has Coverity been run on rdma-core before? We should be seeing the same warnings for all other device libraries as well. (In reply to Bryan Tan from comment #3) > Thanks Honggang for filing this. I have a fix for review internally for the > 3rd issue that Adit pointed out. Thanks for fix this. > For the first two, seems like it is by > design: > https://github.com/linux-rdma/rdma-core/blob/v28.0/libibverbs/cmd.c#L924 > this has been around for a while, and isn't specific to vmw_pvrdma. The > struct in question (_KABI_RESP_STRUCT_IB_USER_VERBS_CMD_CREATE_QP) is always > part of another struct that has a union following it: > https://github.com/linux-rdma/rdma-core/blob/v28.0/libibverbs/kern-abi. > h#L147 . Honggang, has Coverity been run on rdma-core before? We should be > seeing the same warnings for all other device libraries as well. Yes, you are right. It is not wmv_pvrdma specific. We are seeing the same warning for ALL other device drivers. So, please feel free to ignore them for vmv_pvrdma. The double unlock has been fixed in rdma-core: https://github.com/linux-rdma/rdma-core/commit/d8a052e08c5874cf210c07eb19ffb6b7ba00b460 The commit is also in the stable branches (for example, https://github.com/linux-rdma/rdma-core/commit/05700e697777edc3fe30c24349e14ea4ae4a1813) (In reply to Bryan Tan from comment #5) > The double unlock has been fixed in rdma-core: > https://github.com/linux-rdma/rdma-core/commit/ > d8a052e08c5874cf210c07eb19ffb6b7ba00b460 > > The commit is also in the stable branches (for example, > https://github.com/linux-rdma/rdma-core/commit/ > 05700e697777edc3fe30c24349e14ea4ae4a1813) Thanks for fix this. Set devel+ flag. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (rdma-core bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4456 |