Skip to content

Address Coverity Scan Defects

[email protected] nvdimm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

1/5: Put back deleted whitespace (DaveJ)
s/maximimum/maximum
3/5: Move slot++ to for loop header (DaveJ)
Update commit log to match

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ndctl/namespace: avoid integer overflow in namespace validationndctl/namespace.c+7 -00 replies
2/5ndctl/namespace: close file descriptor in do_xaction_namespace()ndctl/namespace.c+8 -70 replies
3/5ndctl/dimm: do not increment a ULLONG_MAX slot valuendctl/dimm.c+2 -31 reply
4/5ndctl/namespace: protect against overflow handling param.offsetndctl/namespace.c+8 -00 replies
5/5ndctl/namespace: protect against under|over-flow w bad param.alignndctl/namespace.c+5 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDave Jiang
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [ndctl PATCH v2 0/5] Address Coverity Scan Defects

From: Alison Schofield <[email protected]>

Changes in v2:
1/5: Put back deleted whitespace (DaveJ)
s/maximimum/maximum
3/5: Move slot++ to for loop header (DaveJ)
Update commit log to match

The NDCTL project routinely addresses any and all coverity defects before each release. This new set of reports suggests enhancements to the scan capabilities since none of this code has been touched recently. Game on, we'll squash 'em!

Alison Schofield (5):
ndctl/namespace: avoid integer overflow in namespace validation ndctl/namespace: close file descriptor in do_xaction_namespace() ndctl/dimm: do not increment a ULLONG_MAX slot value ndctl/namespace: protect against overflow handling param.offset ndctl/namespace: protect against under|over-flow w bad param.align

 ndctl/dimm.c      |  5 ++---
 ndctl/namespace.c | 36 ++++++++++++++++++++++++++++--------
 2 files changed, 30 insertions(+), 11 deletions(-)

base-commit: d2c55938a0c7308cba07cb23b598df1be93f1d38

Signature · 1 line
2.37.3