From: David Miller <davem@davemloft.net>
To: alexander.duyck@gmail.com
Cc: netdev@vger.kernel.org, edumazet@google.com
Subject: Re: [net PATCH] net: Do not allow negative values for busy_read and busy_poll sysctl interfaces
Date: Fri, 24 Mar 2017 15:02:38 -0700 (PDT) [thread overview]
Message-ID: <20170324.150238.1364516032866728084.davem@davemloft.net> (raw)
In-Reply-To: <20170324163630.14764.75429.stgit@localhost.localdomain>
From: Alexander Duyck <alexander.duyck@gmail.com>
Date: Fri, 24 Mar 2017 09:38:03 -0700
> From: Alexander Duyck <alexander.h.duyck@intel.com>
>
> This change basically codifies what I think was already the limitations on
> the busy_poll and busy_read sysctl interfaces. We weren't checking the
> lower bounds and as such could input negative values. The behavior when
> that was used was dependent on the architecture. In order to prevent any
> issues with that I am just disabling support for values less than 0 since
> this way we don't have to worry about any odd behaviors.
>
> By limiting the sysctl values this way it also makes it consistent with how
> we handle the SO_BUSY_POLL socket option since the value appears to be
> reported as a signed integer value and negative values are rejected.
>
> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Applied, thanks.
prev parent reply other threads:[~2017-03-24 22:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-24 16:38 [net PATCH] net: Do not allow negative values for busy_read and busy_poll sysctl interfaces Alexander Duyck
2017-03-24 19:43 ` Eric Dumazet
2017-03-24 22:02 ` David Miller [this message]
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=20170324.150238.1364516032866728084.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexander.duyck@gmail.com \
--cc=edumazet@google.com \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).