summaryrefslogtreecommitdiffstats
path: root/include/linux/phonet.h
diff options
context:
space:
mode:
authorHerbert Xu2008-09-23 04:48:19 +0200
committerDavid S. Miller2008-09-23 04:48:19 +0200
commit5c1824587f0797373c95719a196f6098f7c6d20c (patch)
treec3a5af01afc01d88e111c7e1821b03bf404566f6 /include/linux/phonet.h
parentcassini: use request_firmware (diff)
downloadkernel-qcow2-linux-5c1824587f0797373c95719a196f6098f7c6d20c.tar.gz
kernel-qcow2-linux-5c1824587f0797373c95719a196f6098f7c6d20c.tar.xz
kernel-qcow2-linux-5c1824587f0797373c95719a196f6098f7c6d20c.zip
ipsec: Fix xfrm_state_walk race
As discovered by Timo Teräs, the currently xfrm_state_walk scheme is racy because if a second dump finishes before the first, we may free xfrm states that the first dump would walk over later. This patch fixes this by storing the dumps in a list in order to calculate the correct completion counter which cures this problem. I've expanded netlink_cb in order to accomodate the extra state related to this. It shouldn't be a big deal since netlink_cb is kmalloced for each dump and we're just increasing it by 4 or 8 bytes. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phonet.h')
0 files changed, 0 insertions, 0 deletions