[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230224105729.5f420511@kernel.org>
Date: Fri, 24 Feb 2023 10:57:29 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Hangyu Hua <hbh25y@...il.com>
Cc: borisp@...dia.com, john.fastabend@...il.com, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com, ilyal@...lanox.com,
aviadye@...lanox.com, sd@...asysnail.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] net: tls: fix possible info leak in
tls_set_device_offload()
On Fri, 24 Feb 2023 18:28:39 +0800 Hangyu Hua wrote:
> After tls_set_device_offload() fails, we enter tls_set_sw_offload(). But
> tls_set_sw_offload can't set cctx->iv and cctx->rec_seq to NULL if it fails
> before kmalloc cctx->iv. It is better to Set them to NULL to avoid any
> potential info leak.
Please show clear chain of events which can lead to a use-after-free
or info leak. And if you can't please don't send the patch.
Powered by blists - more mailing lists