From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:51912 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1427021AbcBTDyq (ORCPT ); Fri, 19 Feb 2016 22:54:46 -0500 Date: Sat, 20 Feb 2016 03:54:43 +0000 From: Al Viro To: Dmitry Vyukov Cc: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , "linux-fsdevel@vger.kernel.org" , LKML , syzkaller , Kostya Serebryany , Alexander Potapenko , Sasha Levin Subject: Re: fs: NULL deref in atime_needs_update Message-ID: <20160220035442.GE17997@ZenIV.linux.org.uk> References: <56C3B35E.6020109@digikod.net> <20160220032127.GA19926@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160220032127.GA19926@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sat, Feb 20, 2016 at 03:21:27AM +0000, Al Viro wrote: > On Fri, Feb 19, 2016 at 08:32:10PM +0100, Dmitry Vyukov wrote: > > > BUG: unable to handle kernel NULL pointer dereference at 0000000000000050 > > NULL inode->i_sb, by the look of the offset, but I really don't understand > where the hell is that code doing (or how is that instruction going to > generate dereferencing of 0x50, for that matter). BTW, Micka�l's trace *does* make sense and it's definitely NULL inode->i_sb (inode itself - in %rsi, inode->i_sb - in %rdx, offset of s_flags is 0x50, the line in question is if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) What I don't understand is what could possibly have NULL ->i_sb in *any* instance of struct inode.