[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200818120137.00004035@intel.com>
Date: Tue, 18 Aug 2020 12:01:37 -0700
From: Jesse Brandeburg <jesse.brandeburg@...el.com>
To: Edward Cree <ecree@...arflare.com>
Cc: <linux-net-drivers@...arflare.com>, <davem@...emloft.net>,
<netdev@...r.kernel.org>
Subject: Re: [PATCH net 3/4] sfc: null out channel->rps_flow_id after
freeing it
Jesse Brandeburg wrote:
> Edward Cree wrote:
>
> > If an ef100_net_open() fails, ef100_net_stop() may be called without
> > channel->rps_flow_id having been written; thus it may hold the address
> > freed by a previous ef100_net_stop()'s call to efx_remove_filters().
> > This then causes a double-free when efx_remove_filters() is called
> > again, leading to a panic.
> > To prevent this, after freeing it, overwrite it with NULL.
> >
> > Fixes: a9dc3d5612ce ("sfc_ef100: RX filter table management and related gubbins")
> > Signed-off-by: Edward Cree <ecree@...arflare.com>
My mailer messed up my previous reply, but this is what I meant to say:
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
Powered by blists - more mailing lists