[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <f99031cc-795e-92bd-9310-29c669ada7dc@gmail.com>
Date: Mon, 29 Jul 2019 10:16:30 +0800
From: Jia-Ju Bai <baijiaju1990@...il.com>
To: leon@...nel.org, dledford@...hat.com, jgg@...pe.ca
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [BUG] infiniband: mlx5: a possible null-pointer dereference in
set_roce_addr()
In set_roce_addr(), there is an if statement on line 589 to check
whether gid is NULL:
if (gid)
When gid is NULL, it is used on line 613:
return mlx5_core_roce_gid_set(..., gid->raw, ...);
Thus, a possible null-pointer dereference may occur.
This bug is found by a static analysis tool STCheck written by us.
I do not know how to correctly fix this bug, so I only report it.
Best wishes,
Jia-Ju Bai
Powered by blists - more mailing lists