From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:54114 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750871AbcB2RU6 (ORCPT ); Mon, 29 Feb 2016 12:20:58 -0500 Date: Mon, 29 Feb 2016 17:20:53 +0000 From: Al Viro To: Linus Torvalds Cc: Dmitry Vyukov , Ian Kent , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , "linux-fsdevel@vger.kernel.org" , LKML , syzkaller , Kostya Serebryany , Alexander Potapenko , Sasha Levin , David Howells Subject: Re: fs: NULL deref in atime_needs_update Message-ID: <20160229172053.GZ17997@ZenIV.linux.org.uk> References: <20160226220759.GH17997@ZenIV.linux.org.uk> <20160227222748.GI17997@ZenIV.linux.org.uk> <20160228170133.GM17997@ZenIV.linux.org.uk> <20160228200100.GP17997@ZenIV.linux.org.uk> <20160229130924.GV17997@ZenIV.linux.org.uk> <20160229165031.GY17997@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160229165031.GY17997@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Feb 29, 2016 at 04:50:31PM +0000, Al Viro wrote: > In __d_entry_type(), you mean? Should be, along with READ_ONCE() there. > AFAICS, ordering shouldn't be an issue anymore... FWIW, I've pushed the candidate fix (including the above) into vfs.git#for-linus; I'd prefer to wait for confirmation that dcache.c part is sufficient to fix the problem (_without_ reordering in lookup_fast()) before sending a pull request, though.