[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2e315da5-adcf-4f04-b0b5-4b416164ba3d@gmail.com>
Date: Thu, 14 Nov 2024 18:30:12 +0800
From: Tuo Li <islituo@...il.com>
To: Simon Horman <horms@...nel.org>
Cc: ayush.sawal@...lsio.com, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
almasrymina@...gle.com, dtatulea@...dia.com, jacob.e.keller@...el.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org, baijiaju1990@...il.com
Subject: Re: [PATCH] chcr_ktls: fix a possible null-pointer dereference in
chcr_ktls_dev_add()
On 2024/11/8 21:34, Simon Horman wrote:
> On Tue, Nov 05, 2024 at 07:32:31AM +0800, Tuo Li wrote:
>> Hi Simon,
>>
>> Thanks for your reply! It is very helpful.
>> Any further feedback will be appreciated.
>
> Hi Tuo Li,
>
> 1. Please don't top-post on Linux mailing lists.
Apologies for the top-posting; I will avoid that in the future.
> 2. I think you need to do some careful analysis to understand
> if the condition you are concerned about can occur or not:
> can u_ctx ever be NULL in these code paths?
I have carefully reviewed the code paths, but I could not find any instance
where the variable u_ctx is assigned a NULL value. It might be a defensive
check to handle potential NULL values.
Powered by blists - more mailing lists