[PATCH 0/2] net: fix race in the receive/select

From: Jiri Olsa
Date: Mon Jun 29 2009 - 10:04:52 EST



This patchset fixies the race within the poll_wait call and the receive callbacks,
by adding memory barrier.

- 1/2 includes the actual fix
- 2/2 includes optimization for the x86 arch

It is discussed and described in the following discussions:

http://lkml.org/lkml/2009/6/18/124
http://lkml.org/lkml/2009/6/25/188

Patchset is made on top of Linus'es tree 52989765629e7d182b4f146050ebba0abf2cb0b7.

wbr,
jirka

---
arch/x86/include/asm/spinlock.h | 3 ++
include/linux/poll.h | 11 ++++++++-
include/linux/spinlock.h | 5 ++++
include/net/sock.h | 40 +++++++++++++++++++++++++++++++++++++++
net/atm/common.c | 6 ++--
net/core/datagram.c | 2 +-
net/core/sock.c | 8 +++---
net/dccp/output.c | 2 +-
net/dccp/proto.c | 2 +-
net/ipv4/tcp.c | 2 +-
net/iucv/af_iucv.c | 4 +-
net/rxrpc/af_rxrpc.c | 4 +-
net/unix/af_unix.c | 8 +++---
13 files changed, 76 insertions(+), 21 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/