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

jewel: msg: async messenger bug fix additional backports #15804

Closed
wants to merge 3 commits into from

Conversation

smithfarm
Copy link
Contributor

idryomov and others added 3 commits June 21, 2017 12:16
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>
(cherry picked from commit f6e7e40)
…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>
(cherry picked from commit ccc834d)

Conflicts:
        src/msg/async/AsyncConnection.cc (trivial resolution -
            AsyncConnection::AsyncConnection initializer list is different in
            jewel)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
(cherry picked from commit 5ee0b62)

Conflicts:
        src/msg/async/Stack.h (file does not exist in jewel; made the change
            manually in src/msg/async/AsyncMessenger.h)
@smithfarm smithfarm self-assigned this Jun 21, 2017
@smithfarm smithfarm added this to the jewel milestone Jun 21, 2017
@smithfarm
Copy link
Contributor Author

@liewegas @yuyuyu101 @ddiss

@smithfarm smithfarm changed the title Jewel: async messenger bug fix additional backports jewel: msg: async messenger bug fix additional backports Jun 21, 2017
@smithfarm
Copy link
Contributor Author

smithfarm commented Jun 21, 2017

Merged into #13212

@smithfarm smithfarm closed this Jun 21, 2017
@smithfarm smithfarm deleted the wip-18761-jewel branch June 21, 2017 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants