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] [day] [month] [year] [list]
Message-Id: <20190327.135918.983922263458224655.davem@davemloft.net>
Date:   Wed, 27 Mar 2019 13:59:18 -0700 (PDT)
From:   David Miller <davem@...emloft.net>
To:     edumazet@...gle.com
Cc:     netdev@...r.kernel.org, eric.dumazet@...il.com, willemb@...gle.com,
        soheil@...gle.com
Subject: Re: [PATCH v2 net-next] tcp: fix zerocopy and notsent_lowat issues

From: Eric Dumazet <edumazet@...gle.com>
Date: Tue, 26 Mar 2019 08:34:55 -0700

> My recent patch had at least three problems :
> 
> 1) TX zerocopy wants notification when skb is acknowledged,
>    thus we need to call skb_zcopy_clear() if the skb is
>    cached into sk->sk_tx_skb_cache
> 
> 2) Some applications might expect precise EPOLLOUT
>    notifications, so we need to update sk->sk_wmem_queued
>    and call sk_mem_uncharge() from sk_wmem_free_skb()
>    in all cases. The SOCK_QUEUE_SHRUNK flag must also be set.
> 
> 3) Reuse of saved skb should have used skb_cloned() instead
>   of simply checking if the fast clone has been freed.
> 
> Fixes: 472c2e07eef0 ("tcp: add one skb cache for tx")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>

Applied, thanks Eric.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ