netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv7 0/2] net: fix race in the receive/select
@ 2009-07-08 22:07 Jiri Olsa
  2009-07-08 22:09 ` [PATCHv7 1/2] net: adding memory barrier to the poll and receive callbacks Jiri Olsa
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jiri Olsa @ 2009-07-08 22:07 UTC (permalink / raw)
  To: netdev
  Cc: eric.dumazet, mathieu.desnoyers, mingo, a.p.zijlstra,
	linux-kernel, fbl, nhorman, htejun, jarkao2, oleg, davidel, davem

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
http://lkml.org/lkml/2009/6/29/216
http://lkml.org/lkml/2009/7/3/68

Patchset is made on top of Linus'es tree 44b572809581d5a10dbe35aa6bf689f32b9c5ad6 .

Booted on x86_64.

wbr,
jirka

---
 arch/x86/include/asm/spinlock.h |    4 ++
 include/linux/spinlock.h        |    5 +++
 include/net/sock.h              |   69 +++++++++++++++++++++++++++++++++++++++
 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 ++--
 12 files changed, 97 insertions(+), 19 deletions(-)


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

end of thread, other threads:[~2009-07-10  0:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 22:07 [PATCHv7 0/2] net: fix race in the receive/select Jiri Olsa
2009-07-08 22:09 ` [PATCHv7 1/2] net: adding memory barrier to the poll and receive callbacks Jiri Olsa
2009-07-09  4:24   ` Eric Dumazet
2009-07-10  0:08     ` David Miller
2009-07-08 22:10 ` [PATCHv7 2/2] memory barrier: adding smp_mb__after_lock Jiri Olsa
2009-07-09  4:25   ` Eric Dumazet
2009-07-10  0:08     ` David Miller
2009-07-09  3:07 ` [PATCHv7 0/2] net: fix race in the receive/select David Miller

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