Re: chcr_ktls: fix a possible null-pointer dereference in chcr_ktls_dev_add()
From: Tuo Li
Date: Thu Nov 14 2024 - 09:22:30 EST
On 2024/11/14 20:26, Markus Elfring wrote:
>> We have run our tool on Linux 6.11, and the line numbers correspond to the
>> code in that version.
>
> Would you like to share any source code analysis results for more recent software versions?
Hi Elfring,
Thanks for your reply.
I ran our tool on Linux 6.12-rc7
(https://elixir.bootlin.com/linux/v6.12-rc7/source), and the same issue
persists. The line number is identical to that on Linux 6.11.
chcr_ktls_cpl_act_open_rpl() //641
u_ctx = adap->uld[CXGB4_ULD_KTLS].handle; //686
if (u_ctx) { //687
complete(&tx_info->completion); //704
chcr_ktls_dev_add() //412
u_ctx = adap->uld[CXGB4_ULD_KTLS].handle; //432
wait_for_completion_timeout(&tx_info->completion, 30 * HZ); //551
xa_erase(&u_ctx->tid_list, tx_info->tid); //580
Any further feedback would be appreciated!
Sincerely,
Tuo Li