Skip to content

Conversation

@igaw
Copy link
Collaborator

@igaw igaw commented Dec 9, 2025

The ioctl probing is triggering a valgrind report. Let's pass in a empty command which will return a status code (0x4101) if the ioctl is supported.

==143223== Syscall param ioctl(generic) points to unaddressable byte(s)
==143223== at 0x49BE36D: ioctl (ioctl.c:36)
==143223== by 0x48644AB: __nvme_transport_handle_open_direct (linux.c:110)
==143223== by 0x48646C1: nvme_open (linux.c:169)
==143223== by 0x40DDBD: get_transport_handle (nvme.c:366)
==143223== by 0x40DF00: parse_and_open (nvme.c:404)
==143223== by 0x42F4BC: submit_io (nvme.c:8237)
==143223== by 0x430268: read_cmd (nvme.c:8470)
==143223== by 0x45CDD6: handle_plugin (plugin.c:190)
==143223== by 0x43ACF2: main (nvme.c:11032)

The ioctl probing is triggering a valgrind report. Let's pass in a empty
command which will return a status code (0x4101) if the ioctl is supported.

==143223== Syscall param ioctl(generic) points to unaddressable byte(s)
==143223==    at 0x49BE36D: ioctl (ioctl.c:36)
==143223==    by 0x48644AB: __nvme_transport_handle_open_direct (linux.c:110)
==143223==    by 0x48646C1: nvme_open (linux.c:169)
==143223==    by 0x40DDBD: get_transport_handle (nvme.c:366)
==143223==    by 0x40DF00: parse_and_open (nvme.c:404)
==143223==    by 0x42F4BC: submit_io (nvme.c:8237)
==143223==    by 0x430268: read_cmd (nvme.c:8470)
==143223==    by 0x45CDD6: handle_plugin (plugin.c:190)
==143223==    by 0x43ACF2: main (nvme.c:11032)

Signed-off-by: Daniel Wagner <[email protected]>
@igaw igaw merged commit c33059a into linux-nvme:master Dec 9, 2025
25 of 26 checks passed
@igaw igaw deleted the fix-ioctl-probing branch December 9, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant