Re: [PATCH net 3/4] rxrpc: Fix missing active use pinning of rxrpc_local object

From: David Howells
Date: Mon Feb 03 2020 - 05:23:51 EST


Jakub Kicinski <kuba@xxxxxxxxxx> wrote:

> > + BUG_ON(!conn->params.local);
> > + BUG_ON(!conn->params.local->socket);
>
> Is this really, really not possible to convert those into a WARN_ON()
> and return?

I can take those out - I actually put them in to help figure out which pointer
had become NULL - but turning them into a WARN_ON() and return doesn't
actually help that much since, without this patch, there was nothing to stop
the relevant pointer getting cleared between this point and the next access,
so there's a chance you'd end up with the same oops anyway.

David