Patrick McHardy 68b80f1138 netfilter: nf_nat: fix RCU races
Fix three ct_extend/NAT extension related races:

- When cleaning up the extension area and removing it from the bysource hash,
  the nat->ct pointer must not be set to NULL since it may still be used in
  a RCU read side

- When replacing a NAT extension area in the bysource hash, the nat->ct
  pointer must be assigned before performing the replacement

- When reallocating extension storage in ct_extend, the old memory must
  not be freed immediately since it may still be used by a RCU read side

Possibly fixes https://bugzilla.redhat.com/show_bug.cgi?id=449315
and/or http://bugzilla.kernel.org/show_bug.cgi?id=10875

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-06-17 15:51:47 -07:00
..
2008-01-28 14:58:15 -08:00
2008-01-08 23:30:18 -08:00
2008-05-21 17:47:54 -07:00
2008-05-21 17:47:54 -07:00
2008-03-06 16:22:02 -08:00
2007-04-25 22:28:20 -07:00
2008-05-01 08:03:58 -07:00
2008-06-05 04:02:38 +09:00
2008-03-26 16:51:09 -07:00
2008-03-26 16:51:09 -07:00