linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] nfs4: file locking fixes and cleanups
@ 2014-05-01 10:28 Jeff Layton
  2014-05-01 10:28 ` [PATCH v2 1/3] nfs4: treat lock owners as opaque values Jeff Layton
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Jeff Layton @ 2014-05-01 10:28 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs

Hi Trond,
This set is basically unchanged from the last one, aside from a bit
more cleanup of unneeded arguments in patch #1.

I know that you basically NAKed this set earlier this week. The issue
you saw was that the generic locking codepaths never set the fl_owner
value for flock locks. That's true, but nfs_flock does set this for any
file_lock request that comes through it, so patch #1 is safe to apply
now if you see no other issue with it.

I have a patch queued for v3.16 that makes the generic flock codepaths
set the fl_owner, but that's just cleanup and won't really affect how
this works.

The main problem that I think we need to fix soon though is the one that
patch #2 fixes. An unprivileged user can trigger that BUG() and if
panic_on_oops is set, then that's an unprivileged DoS at least.

Jeff Layton (3):
  nfs4: treat lock owners as opaque values
  nfs4: queue free_lock_state job submission to nfsiod
  nfs4: turn free_lock_state into a void return operation

 fs/nfs/nfs4_fs.h   | 26 +++++++-------------
 fs/nfs/nfs4proc.c  | 14 +++++------
 fs/nfs/nfs4state.c | 69 +++++++++++++++++++++---------------------------------
 3 files changed, 42 insertions(+), 67 deletions(-)

-- 
1.9.0


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

end of thread, other threads:[~2014-09-08 14:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-01 10:28 [PATCH v2 0/3] nfs4: file locking fixes and cleanups Jeff Layton
2014-05-01 10:28 ` [PATCH v2 1/3] nfs4: treat lock owners as opaque values Jeff Layton
2014-05-01 10:28 ` [PATCH v2 2/3] nfs4: queue free_lock_state job submission to nfsiod Jeff Layton
2014-08-11 10:42   ` Christoph Hellwig
2014-08-11 11:50     ` Jeff Layton
2014-08-11 13:04       ` Jeff Layton
2014-08-11 15:09         ` Christoph Hellwig
2014-08-11 15:35           ` Jeff Layton
2014-08-11 16:47             ` Trond Myklebust
2014-08-11 17:35               ` Jeff Layton
2014-08-11 17:57                 ` Trond Myklebust
2014-08-11 17:39             ` Christoph Hellwig
2014-09-07 15:35     ` Christoph Hellwig
2014-09-08 12:26       ` [PATCH] nfs: revert "nfs4: queue free_lock_state job submission to nfsiod" Jeff Layton
2014-09-08 14:42         ` Christoph Hellwig
2014-05-01 10:28 ` [PATCH v2 3/3] nfs4: turn free_lock_state into a void return operation Jeff Layton
2014-06-22  0:59 ` [PATCH v2 0/3] nfs4: file locking fixes and cleanups Jeff Layton

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