From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752137AbcEYVtm (ORCPT ); Wed, 25 May 2016 17:49:42 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57248 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751205AbcEYVtl (ORCPT ); Wed, 25 May 2016 17:49:41 -0400 Date: Wed, 25 May 2016 22:49:35 +0100 From: Al Viro To: Kees Cook Cc: Andrew Morton , Konstantin Khlebnikov , Andy Lutomirski , Jan Kara , yalin wang , Willy Tarreau , "linux-mm@kvack.org" , Linux Kernel Mailing List Subject: Re: [PATCH v9] fs: clear file privilege bits when mmap writing Message-ID: <20160525214935.GI14480@ZenIV.linux.org.uk> References: <20160114212201.GA28910@www.outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 25, 2016 at 02:36:57PM -0700, Kees Cook wrote: > Hm, this didn't end up getting picked up. (This jumped out at me again > because i_mutex just vanished...) > > Al, what's the right way to update the locking in this patch? ->i_mutex is dealt with just by using lock_inode(inode)/unlock_inode(inode); I hadn't looked at the rest of the locking in there.