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
ModeSelect6 fails with DEC Alpha system #1402
Comments
Digging through the code (and adding more log messages) reveals that ModeSelect6 is called with a page code of 0 (== "supported diagnostic pages") but the code in |
Thanks for reporting, and tracking down the code that’s responsible. The next step here would be to track down what the SCSI specification says about ModeSelect6 page code 0. We don’t have an active core developer in this project right now, so if you’re up for it we would very much welcome your contribution. |
Additionally, it would be helpful if you could test with the previous stable release version, April 2023. There was a good amount of refactoring that happened, which also touched the ModeSelect code. |
v23.04.01 shows the same behaviour. Digging deeper now and trying to come up with a PR 🤞🏻 |
So turns out it was actually three bugs, one generic, two specific to DEC Alpha, in ModeSelect6 😆 |
Merged. Thanks for the patches! |
Follow-up on PiSCSI#1402, PiSCSI#1405, PiSCSI#1427 This is the first (yet incomplete) test to cover this behavior. Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
Follow up on PiSCSI#1402, PiSCSI#1405 which had a full test case missing. Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
OpenVMS Alpha sends a strange ModeSelect payload, apparently one byte too large. This was 'fixed' by a (wrong) length calculation in PiSCSI#1405, breaking PiSCSI#1427. This PR - fixes the wrong length calculation - improves the loop test in scsi_command_util::ModeSelect to prevent a buffer overflow. (Remaining length was checked for > 0, but buffer access is at offset and offset + 1, effectively requiring 2 bytes.) - the loop test fix makes PiSCSI#1402 pass - adds a testcase for PiSCSI#1402 - adds a testcase for PiSCSI#1427 Fixes issue PiSCSI#1427 Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
Info
Describe the issue
Booting from piscsi fails in the SRM console (aka 'BIOS') with
failed to open
Running with debug reveals
The text was updated successfully, but these errors were encountered: