Re: [PATCH] netfilter: fix ->nfnl NULL oops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--On 9 November 2011 01:16:35 +0300 Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:

Sorry for delay.

I recall myself writing that net->nfnl NULL check is racy or
something like that (but I can't find this email in archives).

I've read the code once again, and I'm quite sure,
NULL ->nfnl check is correct if RCU precautions are made.

Your patch looks better than mine in this respect (as far as I
can tell from code reading rather than testing)

Regarding ->report check, I think it's bogus.

All I can tell is that net->nfnl == NULL is a condition that happens in practice. If that is read, race free, and treated as something that causes nfnetlink_has_listeners to return 0 irrespective of item_report, then the oops will not occur. So from my point of view it seems right.

Note that in the mean time I think my patch made -stable.

--
Alex Bligh
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux