From: Vlad Yasevich <vyasevich@gmail.com>
To: Wang Weidong <wangweidong1@huawei.com>,
nhorman@tuxdriver.com, David Miller <davem@davemloft.net>
Cc: linux-sctp@vger.kernel.org, netdev@vger.kernel.org,
dingtianhong@huawei.com
Subject: Re: [PATCH v2] sctp: check the rto_min and rto_max
Date: Mon, 02 Dec 2013 14:45:39 +0000 [thread overview]
Message-ID: <529C9D13.10107@gmail.com> (raw)
In-Reply-To: <529BE620.8090004@huawei.com>
On 12/01/2013 08:45 PM, Wang Weidong wrote:
> rto_min should be smaller than rto_max while rto_max should be larger
> than rto_min. so just add the check.
>
> Acked-by: Neil Horman <nhorman@tuxdriver.com>
> Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
> ---
> net/sctp/sysctl.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
> index 6b36561..7637e8e 100644
> --- a/net/sctp/sysctl.c
> +++ b/net/sctp/sysctl.c
> @@ -104,7 +104,7 @@ static struct ctl_table sctp_net_table[] = {
> .mode = 0644,
> .proc_handler = proc_dointvec_minmax,
> .extra1 = &one,
> - .extra2 = &timer_max
> + .extra2 = &init_net.sctp.rto_max
> },
> {
> .procname = "rto_max",
> @@ -112,7 +112,7 @@ static struct ctl_table sctp_net_table[] = {
> .maxlen = sizeof(unsigned int),
> .mode = 0644,
> .proc_handler = proc_dointvec_minmax,
> - .extra1 = &one,
> + .extra1 = &init_net.sctp.rto_min,
> .extra2 = &timer_max
> },
> {
>
So, now if initial namespace change rto_min and rto_max, it limits the
values that another namespace can set? I don't think so.
If you are looking to fix an issue where rto_max may be set below
rto_min, then do a separate proc_handler.
-vlad
WARNING: multiple messages have this Message-ID (diff)
From: Vlad Yasevich <vyasevich@gmail.com>
To: Wang Weidong <wangweidong1@huawei.com>,
nhorman@tuxdriver.com, David Miller <davem@davemloft.net>
Cc: linux-sctp@vger.kernel.org, netdev@vger.kernel.org,
dingtianhong@huawei.com
Subject: Re: [PATCH v2] sctp: check the rto_min and rto_max
Date: Mon, 02 Dec 2013 09:45:39 -0500 [thread overview]
Message-ID: <529C9D13.10107@gmail.com> (raw)
In-Reply-To: <529BE620.8090004@huawei.com>
On 12/01/2013 08:45 PM, Wang Weidong wrote:
> rto_min should be smaller than rto_max while rto_max should be larger
> than rto_min. so just add the check.
>
> Acked-by: Neil Horman <nhorman@tuxdriver.com>
> Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
> ---
> net/sctp/sysctl.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
> index 6b36561..7637e8e 100644
> --- a/net/sctp/sysctl.c
> +++ b/net/sctp/sysctl.c
> @@ -104,7 +104,7 @@ static struct ctl_table sctp_net_table[] = {
> .mode = 0644,
> .proc_handler = proc_dointvec_minmax,
> .extra1 = &one,
> - .extra2 = &timer_max
> + .extra2 = &init_net.sctp.rto_max
> },
> {
> .procname = "rto_max",
> @@ -112,7 +112,7 @@ static struct ctl_table sctp_net_table[] = {
> .maxlen = sizeof(unsigned int),
> .mode = 0644,
> .proc_handler = proc_dointvec_minmax,
> - .extra1 = &one,
> + .extra1 = &init_net.sctp.rto_min,
> .extra2 = &timer_max
> },
> {
>
So, now if initial namespace change rto_min and rto_max, it limits the
values that another namespace can set? I don't think so.
If you are looking to fix an issue where rto_max may be set below
rto_min, then do a separate proc_handler.
-vlad
next prev parent reply other threads:[~2013-12-02 14:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 1:45 [PATCH v2] sctp: check the rto_min and rto_max Wang Weidong
2013-12-02 1:45 ` Wang Weidong
2013-12-02 12:15 ` Wang Weidong
2013-12-02 12:15 ` Wang Weidong
2013-12-02 14:45 ` Vlad Yasevich [this message]
2013-12-02 14:45 ` Vlad Yasevich
2013-12-03 1:58 ` Wang Weidong
2013-12-03 1:58 ` Wang Weidong
2013-12-03 6:28 ` [PATCH v3] " Wang Weidong
2013-12-03 6:28 ` Wang Weidong
2013-12-03 12:39 ` Vlad Yasevich
2013-12-03 12:39 ` Vlad Yasevich
2013-12-04 2:46 ` Wang Weidong
2013-12-04 2:46 ` Wang Weidong
2013-12-04 14:24 ` Vlad Yasevich
2013-12-04 14:24 ` Vlad Yasevich
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=529C9D13.10107@gmail.com \
--to=vyasevich@gmail.com \
--cc=davem@davemloft.net \
--cc=dingtianhong@huawei.com \
--cc=linux-sctp@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=wangweidong1@huawei.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.