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

IoctlFlags does not support UFFDIO_POISON #61

Open
kawasin73 opened this issue Jan 10, 2024 · 0 comments
Open

IoctlFlags does not support UFFDIO_POISON #61

kawasin73 opened this issue Jan 10, 2024 · 0 comments
Assignees

Comments

@kawasin73
Copy link
Collaborator

From Linux 6.6, uffdio_register.iotcls contains a bit for _UFFDIO_POISON (code).

register() always fails as UnrecognizedIoctls(284) because struct IoctlFlags does not support UFFDIO_POISON yet.

@kawasin73 kawasin73 self-assigned this Jan 10, 2024
vadimberezniker added a commit to vadimberezniker/firecracker that referenced this issue Apr 19, 2024
UFFD support is not compatible with newer kernels as there was a new ioctl option added that the older userfaultfd version does not recognize:
```
[PUT /snapshot/load][400] loadSnapshotBadRequest  &{FaultMessage:Load snapshot error: Failed to restore from snapshot: Failed to load guest memory: Error creating guest memory from uffd: Failed to register memory address range with the userfaultfd object: Unrecognized ioctl flags: 284}
```

This was reported in bytecodealliance/userfaultfd-rs#61 and fixed in bytecodealliance/userfaultfd-rs#62
vadimberezniker added a commit to vadimberezniker/firecracker that referenced this issue Apr 19, 2024
UFFD support is not compatible with newer kernels as there was a new ioctl option added that the older userfaultfd version does not recognize:
```
[PUT /snapshot/load][400] loadSnapshotBadRequest  &{FaultMessage:Load snapshot error: Failed to restore from snapshot: Failed to load guest memory: Error creating guest memory from uffd: Failed to register memory address range with the userfaultfd object: Unrecognized ioctl flags: 284}
```

This was reported in bytecodealliance/userfaultfd-rs#61 and fixed in bytecodealliance/userfaultfd-rs#62

Signed-off-by: Vadim Berezniker <[email protected]>
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

No branches or pull requests

1 participant