From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: DoS with POSIX file locks? Date: Mon, 20 Mar 2006 08:32:02 -0700 Message-ID: <20060320153202.GH8980@parisc-linux.org> References: <20060320121107.GE8980@parisc-linux.org> <20060320123950.GF8980@parisc-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: To: Miklos Szeredi Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Mar 20, 2006 at 01:52:39PM +0100, Miklos Szeredi wrote: > Things look fairly straightforward if the accounting is done in > files_struct instead of task_struct. At least for POSIX locks. I > haven't looked at flocks or leases yet. I was thinking that would work, yes. It might not be worth worrying about accounting for leases/flocks since each process can only have one of those per open file anyway. > steal_locks() might cause problems, but that function should be gotten > rid of anyway. I quite agree. Now we need to find a better way to solve the problem it papers over.