Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-qg0-f52.google.com ([209.85.192.52]:50209 "EHLO mail-qg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbaEAK2z (ORCPT ); Thu, 1 May 2014 06:28:55 -0400 Received: by mail-qg0-f52.google.com with SMTP id j5so3113505qga.39 for ; Thu, 01 May 2014 03:28:54 -0700 (PDT) From: Jeff Layton To: trond.myklebust@primarydata.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH v2 0/3] nfs4: file locking fixes and cleanups Date: Thu, 1 May 2014 06:28:44 -0400 Message-Id: <1398940127-31150-1-git-send-email-jlayton@poochiereds.net> Sender: linux-nfs-owner@vger.kernel.org List-ID: 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