diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2011-02-11 12:36:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-11 21:59:37 -0800 |
commit | 6b0d6a9b4296fa16a28d10d416db7a770fc03287 (patch) | |
tree | 27f21e7dbcd447e7fd0f2d0b75e2c9cd9e7deddf /mm | |
parent | 946bf5ee3c46f73b5cbd52aab594697b1a132d1f (diff) | |
download | op-kernel-dev-6b0d6a9b4296fa16a28d10d416db7a770fc03287.zip op-kernel-dev-6b0d6a9b4296fa16a28d10d416db7a770fc03287.tar.gz |
bridge: Fix mglist corruption that leads to memory corruption
The list mp->mglist is used to indicate whether a multicast group
is active on the bridge interface itself as opposed to one of the
constituent interfaces in the bridge.
Unfortunately the operation that adds the mp->mglist node to the
list neglected to check whether it has already been added. This
leads to list corruption in the form of nodes pointing to itself.
Normally this would be quite obvious as it would cause an infinite
loop when walking the list. However, as this list is never actually
walked (which means that we don't really need it, I'll get rid of
it in a subsequent patch), this instead is hidden until we perform
a delete operation on the affected nodes.
As the same node may now be pointed to by more than one node, the
delete operations can then cause modification of freed memory.
This was observed in practice to cause corruption in 512-byte slabs,
most commonly leading to crashes in jbd2.
Thanks to Josef Bacik for pointing me in the right direction.
Reported-by: Ian Page Hands <ihands@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions