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
msg/async: connect authorizer fix + recv_buf size #9784
Conversation
cool, I have poor know on auth .... Good catch. |
minor: ssize_t AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlist &authorizer_bl, bufferlist &authorizer_reply) has local variable named "authorizer_bl", plz change any of these. |
@yuyuyu101 Will do. Do you agree with the MIN -> MAX change - I assume it was a typo? |
@idryomov yep, the change makes sense |
914ba5a
to
3be504f
Compare
@yuyuyu101 Updated. |
@idryomov BTW I hope you can create a tracker issue to prepare backport this.. |
needs rebase? |
state_buffer is 4096 bytes long, while connect authorizer can be arbitrarily big - an OSD service ticket with lots of per-pool or per-namespace caps is one example. We end up scribbling on invalid memory past the state_buffer and eventually crash. Move authorizer_bl up into connection and read directly into it. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
…SIZE simple messenger's prefetch buffer is ms_tcp_prefetch_max_size. Don't cap it with TCP_PREFETCH_MIN_SIZE in the async messenger. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3be504f
to
ccc834d
Compare
Rebased. @yuyuyu101 Can we merge this? |
I will put this on my next testing |
No description provided.