Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751433AbdIOOuG (ORCPT ); Fri, 15 Sep 2017 10:50:06 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:41501 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbdIOOuF (ORCPT ); Fri, 15 Sep 2017 10:50:05 -0400 Date: Fri, 15 Sep 2017 07:49:03 -0700 From: Christoph Hellwig To: Linus Torvalds Cc: Mimi Zohar , Dave Kleikamp , Bob Peterson , David Woodhouse , Chao Yu , Hugh Dickins , "Darrick J. Wong" , Matthew Garrett , Joel Becker , Jan Kara , Chris Mason , Ryusuke Konishi , Steven Whitehouse , Christoph Hellwig , Andreas Dilger , "Theodore Ts'o" , Mark Fasheh , linux-security-module@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, James Morris , Richard Weinberger , Jaegeuk Kim , Linux Kernel Mailing List , Christoph Hellwig Subject: Re: [PATCH 3/3] ima: use fs method to read integrity data Message-ID: <20170915144903.GA3854@infradead.org> References: <1505451494-30228-1-git-send-email-zohar@linux.vnet.ibm.com> <1505451494-30228-4-git-send-email-zohar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 486 Lines: 12 On Thu, Sep 14, 2017 at 10:50:27PM -0700, Linus Torvalds wrote: > This is still wrong. > > (a) there is no explanation for why we need that exclusive lock in the > first place > > Why should a read need exclusive access? You'd think shared is sufficient. > But regardless, it needs *explanation*. Shared is sufficient, and nothing in the patch (except for the description) actually requires an exclusive lock. It just happens that ima holds it exclusive for other internal reasons.