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

msg/async: connect authorizer fix + recv_buf size #9784

Merged
merged 2 commits into from Jul 13, 2016
Merged

Conversation

idryomov
Copy link
Contributor

No description provided.

@yuyuyu101
Copy link
Member

cool, I have poor know on auth .... Good catch.

@yuyuyu101
Copy link
Member

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.

@idryomov
Copy link
Contributor Author

@yuyuyu101 Will do. Do you agree with the MIN -> MAX change - I assume it was a typo?

@yuyuyu101
Copy link
Member

@idryomov yep, the change makes sense

@idryomov
Copy link
Contributor Author

@yuyuyu101 Updated.

@yuyuyu101
Copy link
Member

@idryomov BTW I hope you can create a tracker issue to prepare backport this..

@tchaikov
Copy link
Contributor

tchaikov commented Jul 2, 2016

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>
@idryomov
Copy link
Contributor Author

idryomov commented Jul 8, 2016

Rebased. @yuyuyu101 Can we merge this?

@yuyuyu101
Copy link
Member

I will put this on my next testing

@yuyuyu101
Copy link
Member

@yuyuyu101 yuyuyu101 merged commit 3fd4397 into master Jul 13, 2016
@yuyuyu101 yuyuyu101 deleted the wip-ms-async-fixes branch July 13, 2016 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants