Re: [PATCH 2/3] net: marvell: prestera: fix memory use after free
From: Kory Maincent <kory.maincent@bootlin.com>
Date: 2024-03-12 15:45:29
Also in:
lkml
From: Kory Maincent <kory.maincent@bootlin.com>
Date: 2024-03-12 15:45:29
Also in:
lkml
On Mon, 11 Mar 2024 15:51:11 +0200 Elad Nachman [off-list ref] wrote:
From: Elad Nachman <enachman@marvell.com> Prestera driver routing module cleanup process would release memory and then reference it again, and eventually free it again. Remove the redundant first memory free call. All such double free calls were detected using KASAN.
Not directly related to this patch but I am wondering if the call to prestera_port_sfp_unbind(port) is not missing in prestera_destroy_ports() function? Regards, -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com