[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190815.124139.445961347424567252.davem@davemloft.net>
Date: Thu, 15 Aug 2019 12:41:39 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: john.fastabend@...il.com
Cc: jakub.kicinski@...ronome.com, ying.xue@...driver.com,
netdev@...r.kernel.org, andreyknvl@...gle.com
Subject: Re: [net PATCH] net: tls, fix sk_write_space NULL write when tx
disabled
From: John Fastabend <john.fastabend@...il.com>
Date: Wed, 14 Aug 2019 05:31:54 +0000
> The ctx->sk_write_space pointer is only set when TLS tx mode is enabled.
> When running without TX mode its a null pointer but we still set the
> sk sk_write_space pointer on close().
>
> Fix the close path to only overwrite sk->sk_write_space when the current
> pointer is to the tls_write_space function indicating the tls module should
> clean it up properly as well.
>
> Reported-by: Hillf Danton <hdanton@...a.com>
> Cc: Ying Xue <ying.xue@...driver.com>
> Cc: Andrey Konovalov <andreyknvl@...gle.com>
> Fixes: 57c722e932cfb ("net/tls: swap sk_write_space on close")
> Signed-off-by: John Fastabend <john.fastabend@...il.com>
Applied, thanks John.
That Fixes tag takes one through an interesting chain of fixes to fixes.
I'll queue this up for -stable and make sure it all ends up in the
proper place.
Thanks.
Powered by blists - more mailing lists