Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvme_disconnect_ctrl followed by a lookup will crash #951

Open
igaw opened this issue Jan 28, 2025 · 0 comments
Open

nvme_disconnect_ctrl followed by a lookup will crash #951

igaw opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@igaw
Copy link
Collaborator

igaw commented Jan 28, 2025

As discovered in linux-nvme/nvme-cli#2674 something is amiss when a controller is disconnected and then a lookup happens (tree iteration), this will trigger a crash in strcmp

nvme_disconnect_ctrl() 
    nvme_deconfigure_ctrl() 
lookup_nvme_ctrl() 
   strcmp(nvme_ctrl_get_name(c), name)
@igaw igaw added the bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant