From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: netdev@vger.kernel.org
Cc: linux-sctp@vger.kernel.org, Neil Horman <nhorman@tuxdriver.com>,
Vlad Yasevich <vyasevich@gmail.com>,
haliu@redhat.com
Subject: [PATCH net 0/3] Some sockopt optlen fixes
Date: Mon, 08 Jan 2018 21:02:26 +0000 [thread overview]
Message-ID: <cover.1515436112.git.marcelo.leitner@gmail.com> (raw)
Hangbin Liu reported that some SCTP sockopt are allowing the user to get
the kernel to allocate really large buffers by not having a ceiling on
optlen.
This patchset address this issue (in patch 2), replace an GFP_ATOMIC
that isn't needed and avoid calculating the option size multiple times
in some setsockopt.
Marcelo Ricardo Leitner (3):
sctp: GFP_ATOMIC is not needed in sctp_setsockopt_events
sctp: add a ceiling to optlen in some sockopts
sctp: make use of pre-calculated len
net/sctp/socket.c | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
--
2.14.3
WARNING: multiple messages have this Message-ID (diff)
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: netdev@vger.kernel.org
Cc: linux-sctp@vger.kernel.org, Neil Horman <nhorman@tuxdriver.com>,
Vlad Yasevich <vyasevich@gmail.com>,
haliu@redhat.com
Subject: [PATCH net 0/3] Some sockopt optlen fixes
Date: Mon, 8 Jan 2018 19:02:26 -0200 [thread overview]
Message-ID: <cover.1515436112.git.marcelo.leitner@gmail.com> (raw)
Hangbin Liu reported that some SCTP sockopt are allowing the user to get
the kernel to allocate really large buffers by not having a ceiling on
optlen.
This patchset address this issue (in patch 2), replace an GFP_ATOMIC
that isn't needed and avoid calculating the option size multiple times
in some setsockopt.
Marcelo Ricardo Leitner (3):
sctp: GFP_ATOMIC is not needed in sctp_setsockopt_events
sctp: add a ceiling to optlen in some sockopts
sctp: make use of pre-calculated len
net/sctp/socket.c | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
--
2.14.3
next reply other threads:[~2018-01-08 21:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-08 21:02 Marcelo Ricardo Leitner [this message]
2018-01-08 21:02 ` [PATCH net 0/3] Some sockopt optlen fixes Marcelo Ricardo Leitner
2018-01-08 21:02 ` [PATCH net 1/3] sctp: GFP_ATOMIC is not needed in sctp_setsockopt_events Marcelo Ricardo Leitner
2018-01-08 21:02 ` Marcelo Ricardo Leitner
2018-01-08 21:02 ` [PATCH net 2/3] sctp: add a ceiling to optlen in some sockopts Marcelo Ricardo Leitner
2018-01-08 21:02 ` Marcelo Ricardo Leitner
2018-01-08 21:02 ` [PATCH net 3/3] sctp: make use of pre-calculated len Marcelo Ricardo Leitner
2018-01-08 21:02 ` Marcelo Ricardo Leitner
2018-01-09 1:23 ` [PATCH net 0/3] Some sockopt optlen fixes Neil Horman
2018-01-09 1:23 ` Neil Horman
2018-01-10 19:53 ` David Miller
2018-01-10 19:53 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1515436112.git.marcelo.leitner@gmail.com \
--to=marcelo.leitner@gmail.com \
--cc=haliu@redhat.com \
--cc=linux-sctp@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=vyasevich@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.