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

fix: vhost-server aio backend was incorrectly batching ios #248

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

budevg
Copy link
Collaborator

@budevg budevg commented Jan 25, 2024

After refactoring the Batch array of iocb was incorrectly shared between
different vhost queues. This lead to memory corruption which was not detected
since tests were running with only 1 vhost queue configured.

qemu ... -device vhost-user-blk-pci,chardev=vhost0,id=vhost-user-blk0,num-queues=1

After refactoring the `Batch` array of iocb was incorrectly shared between
different vhost queues. This lead to memory corruption which was not detected
since tests were running with only 1 vhost queue configured.

```
qemu ... -device vhost-user-blk-pci,chardev=vhost0,id=vhost-user-blk0,num-queues=1
```
Copy link
Contributor

Note

This is an automated comment that will be appended during run.

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 137fd8e.

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
4696 4624 0 0 0 72

@budevg budevg merged commit b2a5feb into main Jan 25, 2024
5 checks passed
@budevg budevg deleted the users/evgenybud/vhsot-server-bug-fix-v1 branch January 25, 2024 18:46
budevg added a commit that referenced this pull request Jan 25, 2024
After refactoring the `Batch` array of iocb was incorrectly shared between
different vhost queues. This lead to memory corruption which was not detected
since tests were running with only 1 vhost queue configured.

```
qemu ... -device vhost-user-blk-pci,chardev=vhost0,id=vhost-user-blk0,num-queues=1
```
budevg added a commit that referenced this pull request Jan 26, 2024
After refactoring the `Batch` array of iocb was incorrectly shared between
different vhost queues. This lead to memory corruption which was not detected
since tests were running with only 1 vhost queue configured.

```
qemu ... -device vhost-user-blk-pci,chardev=vhost0,id=vhost-user-blk0,num-queues=1
```
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.

3 participants