lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1445288486.30896.25.camel@edumazet-glaptop2.roam.corp.google.com>
Date:	Mon, 19 Oct 2015 14:01:26 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Renato Westphal <renatowestphal@...il.com>
Cc:	netdev <netdev@...r.kernel.org>,
	Eric Dumazet <edumazet@...gle.com>,
	Pavel Emelyanov <xemul@...allels.com>,
	Renato Westphal <renatow@...hos.com.br>
Subject: Re: [PATCH] tcp: remove improper preemption check in
 tcp_xmit_probe_skb()

On Mon, 2015-10-19 at 18:51 -0200, Renato Westphal wrote:
> Commit e520af48c7e5a introduced the following bug when setting the
> TCP_REPAIR sockoption:
> 

> 
> Since tcp_xmit_probe_skb() can be called from process context, use
> NET_INC_STATS() instead of NET_INC_STATS_BH().
> 
> Signed-off-by: Renato Westphal <renatow@...hos.com.br>
> ---
>  net/ipv4/tcp_output.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
> index 19adedb..d4621c3 100644
> --- a/net/ipv4/tcp_output.c
> +++ b/net/ipv4/tcp_output.c
> @@ -3416,7 +3416,7 @@ static int tcp_xmit_probe_skb(struct sock *sk, int urgent, int mib)
>  	 */
>  	tcp_init_nondata_skb(skb, tp->snd_una - !urgent, TCPHDR_ACK);
>  	skb_mstamp_get(&skb->skb_mstamp);
> -	NET_INC_STATS_BH(sock_net(sk), mib);
> +	NET_INC_STATS(sock_net(sk), mib);
>  	return tcp_transmit_skb(sk, skb, 0, GFP_ATOMIC);
>  }
>  

Patch looks good, although its title is a bit strange..

Fixes: e520af48c7e5 ("tcp: add TCPWinProbe and TCPKeepAlive SNMP counters")


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ