From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:47142 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbdACBsM (ORCPT ); Mon, 2 Jan 2017 20:48:12 -0500 Date: Tue, 3 Jan 2017 01:48:07 +0000 From: Al Viro To: "Eric W. Biederman" Cc: Krister Johansen , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] Fix a race in put_mountpoint. Message-ID: <20170103014806.GA1555@ZenIV.linux.org.uk> References: <20161231041001.GA2448@templeofstupid.com> <20161231061729.GX1555@ZenIV.linux.org.uk> <874m1hdkyv.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874m1hdkyv.fsf@xmission.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Jan 03, 2017 at 01:51:36PM +1300, Eric W. Biederman wrote: > The only significant thing I see is that you have not taken the > mount_lock on the path where new_mountpoint adds the new struct > mountpoint into the mountpoint hash table. Umm... Point, but I really don't like that bouncing mount_lock up and down there. It's not going to cause any serious overhead, but it just looks ugly... ;-/ Let me think for a while...