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

always set op #2

Closed
dmah42 opened this issue May 14, 2022 · 1 comment
Closed

always set op #2

dmah42 opened this issue May 14, 2022 · 1 comment

Comments

@dmah42
Copy link
Owner

dmah42 commented May 14, 2022

during investigation of #1 I noticed userspace always logs a set op as opposed to add, etc. as set is index 0 this is suspicious.

op is part of entry as is key, and key is sent through correctly.

maybe a padding/nested struct thing? check generated code I guess...

@dmah42 dmah42 closed this as completed in ce74c29 May 15, 2022
@dmah42
Copy link
Owner Author

dmah42 commented May 15, 2022

checked output and byte-by-byte it was identical between kernel and user space. however, there seemed to be an extra 4 bytes of 0 between the key (inner) and rest of the outer entry struct in both that shouldn't be there, leading to op being read as 0 (SET).

unnested the struct used over the wire and everything works.

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