Skip to content

[pull] master from linux-nvme:master#243

Merged
pull[bot] merged 10 commits into
zengqingfu1442:masterfrom
linux-nvme:master
Jun 29, 2026
Merged

[pull] master from linux-nvme:master#243
pull[bot] merged 10 commits into
zengqingfu1442:masterfrom
linux-nvme:master

Conversation

@pull

@pull pull Bot commented Jun 29, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Laraib Javed and others added 10 commits June 29, 2026 16:57
The dev_mng_log pointer allocated by sndk_get_dev_mgment_data() was
never freed before the function returns. Add free(dev_mng_log) at the
out label to properly release the allocated memory in both success
and error paths.

Signed-off-by: LaraibJaved <LaraibJaved@ibm.com>
Fixes shell and path-related command injection vulnerabilities
in the micron plugin:
- Replaces system() calls that rely on user-supplied or drive-supplied
strings with spawning a new process with a fixed argv array.
- Trims and sanitizes the drive-provided serial number string before
using it in path strings.
- Checks the user-provided zip/tar package path for unsafe or
unsupported characters before using it.

Signed-off-by: Broc Going <bgoing@micron.com>
No functional changes.

Changes pointer casts and format strings to
support type size differences accross platforms.
- Uses %"PRIu64" for platform-agnostic 64-bit value handling.
- Uses %zu for platform-agnostic size_t handling
- Uses uintptr_t for pointer casts

Renames internal stricmp to sldgm_stricmp to avoid conflicts with native
stricmp implementations on some platforms.

Signed-off-by: Broc Going <bgoing@micron.com>
Add a brief mention in README.md and a dedicated section in
CONTRIBUTING.md describing the optional nvme-cli-ai companion
repository, which provides shared AI workflow resources for
contributors who use AI coding assistants.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
…ta()

wdc_get_dev_mng_log_entry() may be able to find valid log entries but
fail to find desired log page id leaving @sph to NULL.

Continuing to use @sph in this case may result in a NULL pointer
dereference.

Validate both the return value from wdc_get_dev_mng_log_entry() and
the @sph pointer before dereferencing it. Split the error handling
into separate paths so callers receive an appropriate return code and
a meaningful diagnostic depending on the failure.

This issue was reported by the clang static analyzer.

Signed-off-by: Sarah Ahmed <sarah.ahmed@ibm.com>
Increase the buf length and read only the length minus one.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
This is to reduce the duplicated functions.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Fixes buffer overflow vulnerabilities due to sprintf, read,
and readlink handling.

Signed-off-by: Broc Going <bgoing@micron.com>
Fixes NULL pointer dereference vulnerabilities:
- Checks strdup return values.
- Ensures that GetCommonLogPage returns an error when allocation fails.
- Handles log page reads that return less data than expected.

Signed-off-by: Broc Going <bgoing@micron.com>
Makes temporary data directories write-protected.

Signed-off-by: Broc Going <bgoing@micron.com>
@pull pull Bot locked and limited conversation to collaborators Jun 29, 2026
@pull pull Bot added the ⤵️ pull label Jun 29, 2026
@pull
pull Bot merged commit 99c425f into zengqingfu1442:master Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants