From: Gao Feng
Because sysctl_tcp_adv_win_scale could be changed any time, so there
is one race in tcp_win_from_space.
For example,
1.sysctl_tcp_adv_win_scale<=0 (sysctl_tcp_adv_win_scale is negative now)
2.space>>(-sysctl_tcp_adv_win_scale) (sysctl_tcp_adv_win_scale is postive now)
As a result,
From: gfree.w...@foxmail.com
Date: Fri, 24 Mar 2017 07:05:12 +0800
> From: Gao Feng
>
> Because sysctl_tcp_adv_win_scale could be changed any time, so there
> is one race in tcp_win_from_space.
> For example,
> 1.sysctl_tcp_adv_win_scale<=0 (sysctl_tcp_adv_win_scale is negative now)
> 2.space>>(
On Fri, 24 Mar 2017 07:05:12 +0800
gfree.w...@foxmail.com wrote:
> From: Gao Feng
>
> Because sysctl_tcp_adv_win_scale could be changed any time, so there
> is one race in tcp_win_from_space.
> For example,
> 1.sysctl_tcp_adv_win_scale<=0 (sysctl_tcp_adv_win_scale is negative now)
> 2.space>>(-s
Subject: Re: [PATCH net-next 1/1] tcp: sysctl: Fix a race to avoid
unexpected 0
> window from space
>
> On Fri, 24 Mar 2017 07:05:12 +0800
> gfree.w...@foxmail.com wrote:
>
> > From: Gao Feng
> >
> > Because sysctl_tcp_adv_win_scale could be changed any time, so the