netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] net: fix race in the receive/select
@ 2009-06-29 14:04 Jiri Olsa
  2009-06-29 14:14 ` [PATCH 1/2] net: adding memory barrier to the poll and receive callbacks Jiri Olsa
  2009-06-29 14:15 ` [PATCH 2/2] memory barrier: adding smp_mb__after_lock Jiri Olsa
  0 siblings, 2 replies; 14+ messages in thread
From: Jiri Olsa @ 2009-06-29 14:04 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, fbl, nhorman, davem, htejun, jarkao2, oleg, davidel,
	eric.dumazet


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(-)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-06-29 20:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 14:04 [PATCH 0/2] net: fix race in the receive/select Jiri Olsa
2009-06-29 14:14 ` [PATCH 1/2] net: adding memory barrier to the poll and receive callbacks Jiri Olsa
2009-06-29 15:34   ` Davide Libenzi
2009-06-29 17:32     ` Jarek Poplawski
2009-06-29 17:36       ` Davide Libenzi
2009-06-29 18:04         ` Jarek Poplawski
2009-06-29 18:14           ` Jarek Poplawski
2009-06-29 19:47             ` Jarek Poplawski
2009-06-29 20:17         ` Jiri Olsa
2009-06-29 20:20           ` Davide Libenzi
2009-06-29 17:19   ` Jarek Poplawski
2009-06-29 20:05     ` Jiri Olsa
2009-06-29 17:47   ` Jarek Poplawski
2009-06-29 14:15 ` [PATCH 2/2] memory barrier: adding smp_mb__after_lock Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).