mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] cifs: fix oopses and mem corruption with concurrent mount/umount (try #5)
@ 2008-11-08 14:14 Jeff Layton
  2008-11-08 14:14 ` [PATCH 1/5] cifs: clean up server protocol handling Jeff Layton
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jeff Layton @ 2008-11-08 14:14 UTC (permalink / raw)
  To: smfrench; +Cc: smfrench, linux-cifs-client, linux-kernel

This patchset is intended to fix the oopses, memory corruption and mount
failures when using the reproducer detailed here:

https://bugzilla.samba.org/show_bug.cgi?id=5720

This is the fifth attempt at this. Since the fourth attempt, I've
changed the socket handling cleanup patch to also fix some problems with
IPv6 mounts, and have added a patch to change the tcon->tidStatus from
an enum to a bitfield.

The other main difference is that I've moved from the more granular
locking scheme in the earlier patches to one where all of the new lists
and refcounts are protected by the cifs_tcp_session_lock. That lock has
also been converted to a r/w spinlock.

The patch is a little larger than it really needs to be simply because
I've also taken this opportunity to move areas of the code that I was
touching to more closely resemble standard kernel coding style. There
are still style problems with it -- several lines are over 80 chars.
Fixing them will mean restructuring the code further however, and there
are already concerns about the size of this patchset. I've decided to
draw the line here...

This patchset is based on Steve French's cifs-2.6 git tree and should
apply cleanly to its current head.

There's still some remaining cleanup work that can be done here. The
cifs_mount code could stand to be broken up into smaller functions.
cifs_debug_data_proc_show could also stand to be reorganized to better
reflect the heirarchy of server->session->tcon. It also needs to be
updated to handle IPv6 addresses correctly. Those changes are probably
more suitable in follow-on patches. I'd like to see these go in before I
spend time working on them.

I've been able to run the reproducer in the above BZ overnight on this
patchset. Without it, it usually crashes within a few minutes.

Jeff Layton (5):
  cifs: clean up server protocol handling for TCP_Server_Info
  cifs: convert tcon->tidStatus to a bitfield
  cifs: disable sharing session and tcon and add new TCP sharing code
  cifs: reinstate sharing of SMB sessions sans races
  cifs: reinstate sharing of tree connections

 fs/cifs/cifs_debug.c  |  277 +++++++++++++++++--------------
 fs/cifs/cifs_spnego.c |    4 +-
 fs/cifs/cifsfs.c      |   37 +++--
 fs/cifs/cifsglob.h    |   33 ++--
 fs/cifs/cifssmb.c     |   68 ++------
 fs/cifs/connect.c     |  439 ++++++++++++++++++++++++-------------------------
 fs/cifs/file.c        |    2 +-
 fs/cifs/misc.c        |   89 +++++------
 8 files changed, 464 insertions(+), 485 deletions(-)


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

end of thread, other threads:[~2008-11-08 14:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-08 14:14 [PATCH 0/5] cifs: fix oopses and mem corruption with concurrent mount/umount (try #5) Jeff Layton
2008-11-08 14:14 ` [PATCH 1/5] cifs: clean up server protocol handling Jeff Layton
2008-11-08 14:14 ` [PATCH 2/5] cifs: convert tcon->tidStatus to a bitfield Jeff Layton
2008-11-08 14:14 ` [PATCH 3/5] cifs: disable sharing session and tcon and add new TCP sharing code Jeff Layton
2008-11-08 14:14 ` [PATCH 4/5] cifs: reinstate sharing of SMB sessions sans races Jeff Layton
2008-11-08 14:14 ` [PATCH 5/5] cifs: reinstate sharing of tree connections Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®