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

viostor: It seems that RhelScsiVerify has an improperly handled boundary condition. #1095

Open
zjmletang opened this issue May 9, 2024 · 3 comments
Assignees
Labels

Comments

@zjmletang
Copy link
Contributor

Describe the bug
In the RhelScsiVerify function, I understand that the case where lba + blocks == adaptExt->lastLBA should be a normal SRB. As shown in the figure below. If I am mistaken, please point it out to me.

image

@vrozenfe
Copy link
Collaborator

vrozenfe commented May 9, 2024

Right, we probably missed this case when applied 67f64d0

Thank you for spotting it out.
The fix is welcome.
Vadim.

@MaxXor
Copy link

MaxXor commented May 9, 2024

Other location I found it seems to be correct:

if ((lba + blocks) > adaptExt->lastLBA) {

@zjmletang
Copy link
Contributor Author

Right, we probably missed this case when applied 67f64d0

Thank you for spotting it out. The fix is welcome. Vadim.
@vrozenfe
ok, I submit a patch to fix it
JianMing

zjmletang added a commit to zjmletang/kvm-guest-drivers-windows that referenced this issue May 10, 2024
Signed-off-by: Zhang JianMing zhangjianming.zjm@alibaba-inc.com

for the problem description
please visit virtio-win#1095
YanVugenfirer pushed a commit that referenced this issue May 27, 2024
Signed-off-by: Zhang JianMing zhangjianming.zjm@alibaba-inc.com

for the problem description
please visit #1095
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants