From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:41853 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755140AbcBPVnh (ORCPT ); Tue, 16 Feb 2016 16:43:37 -0500 Date: Tue, 16 Feb 2016 22:43:33 +0100 From: "Luis R. Rodriguez" To: Mimi Zohar Cc: linux-security-module , Dmitry Kasatkin , Al Viro , Kees Cook , Dave Young , linux-fsdevel@vger.kernel.org, Dmitry Kasatkin Subject: Re: [PATCH] vfs: forbid write access when reading a file into memory Message-ID: <20160216214333.GF25240@wotan.suse.de> References: <1455656045-21463-1-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: <1455656045-21463-1-git-send-email-zohar@linux.vnet.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Feb 16, 2016 at 03:54:05PM -0500, Mimi Zohar wrote: > From: Dmitry Kasatkin > > This patch is based on top of the "vfs: support for a common kernel file > loader" patch set. In general when the kernel is reading a file into > memory it does not want anything else writing to it. > > The kernel currently only forbids write access to a file being executed. > This patch extends this locking to files being read by the kernel. > > Changelog: > - moved function to kernel_read_file() - Mimi > - updated patch description - Mimi > > Signed-off-by: Dmitry Kasatkin > Cc: Al Viro > Signed-off-by: Mimi Zohar BTW I don't see your common read work on linux-next yet, would you resend this later after that queue of patches get merged? Reviewed-by: Luis R. Rodriguez Luis