From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH v3 1/1] vfs: iversion truncate bug fix Date: Wed, 4 Jan 2012 15:28:01 -0800 Message-ID: <20120104152801.d8f555ca.akpm@linux-foundation.org> References: <1324560391.1964.8.camel@falcor> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Dmitry Kasatkin , linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org To: Mimi Zohar Return-path: In-Reply-To: <1324560391.1964.8.camel@falcor> Sender: linux-security-module-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 22 Dec 2011 08:26:30 -0500 Mimi Zohar wrote: > On Thu, 2011-12-22 at 12:54 +0200, Dmitry Kasatkin wrote: > > When a file is truncated with truncate()/ftruncate() and then closed, > > iversion is not updated. This patch uses ATTR_SIZE flag as an indication > > to increment iversion. > > > > Signed-off-by: Dmitry Kasatkin > > Acked-by: Mimi Zohar > (Stable should be cc'ed on this patch.) why?