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

scst_lib: Fix VPD inquiry handling on incorrect LUNs #249

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

lnocturno
Copy link
Contributor

When SCST receives an INQUIRY request for an incorrect LUN, it calls scst_set_lun_not_supported_inquiry(), which returns an inquiry buffer with a peripheral qualifier of 011b and a peripheral device type of 1Fh. However, for a VPD inquiry, it is unable to populate the remaining fields. According to SPC-6, if the device server cannot return the requested data, it should terminate with CHECK CONDITION.

Reported-by: Lev Vainblat lev@zadarastorage.com

When SCST receives an INQUIRY request for an incorrect LUN, it calls
scst_set_lun_not_supported_inquiry(), which returns an inquiry buffer with
a peripheral qualifier of 011b and a peripheral device type of 1Fh.
However, for a VPD inquiry, it is unable to populate the remaining fields.
According to SPC-6, if the device server cannot return the requested data,
it should terminate with CHECK CONDITION.

Reported-by: Lev Vainblat <lev@zadarastorage.com>
@lnocturno lnocturno force-pushed the gleb/scst-vpd-inquiry branch from 5ddb0d4 to 7bd4c01 Compare August 19, 2024 08:05
@lnocturno lnocturno merged commit 0b00e0a into master Aug 19, 2024
5 checks passed
@lnocturno lnocturno deleted the gleb/scst-vpd-inquiry branch August 19, 2024 08: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