Message ID | CACT4Y+bwff8HvHsyTPTPkBD_QF2h6uqgvw5wFzJj1gXHU1UO+g@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6F87CC0553 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 23 Feb 2016 15:35:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35D2F20328 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 23 Feb 2016 15:35:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DBCAE202F8 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 23 Feb 2016 15:35:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753860AbcBWPfX (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Tue, 23 Feb 2016 10:35:23 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:35224 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753348AbcBWPfV (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Tue, 23 Feb 2016 10:35:21 -0500 Received: by mail-wm0-f44.google.com with SMTP id c200so226535650wme.0 for <linux-fsdevel@vger.kernel.org>; Tue, 23 Feb 2016 07:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=aiZ+ZOK02x4B65U7lyLplUK2C+TJVvA7qSDx6T9ihAw=; b=Ns3ySiFo6gKuyEhZxeXDj6eoyYSGbC5MEFZ7OMoI3JoxtzHls7pEeKSArbSsH19IWf K9QQkdlIPPBVs9mRRNIhpebUQgKwKugEpbMoXqYfiIh2poPEBLTsrtGTLeNTAaOHo7Sw rZ9nayAdX5XmCcEgtgH112/jFMh5JbH/qDIKNBvdivRsy6HF/kb3fqVhIQ5gPhqXeCJy +kWX2mf/CBXm6ZQMpINqNqOESg4FevfFHW1fdBjimb4aZ4R7KKEk/rjtw/GbVRsFVo1G Dtp92JZQfKfgc2GDZ+7xbZGZvsidwETfO3aIVP2aEonIxhksPbqzrYNkTwol9+B332nP 9FIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=aiZ+ZOK02x4B65U7lyLplUK2C+TJVvA7qSDx6T9ihAw=; b=VLK05sw7O8/nN5tjfwjSLISx9T2rCjwT4AhmQyNO+REv0v5coTcn6CZu7cnD3IbWQc ET6RPO8tBiqfBb0KC4/NnmXVEBKDrhKL9sWKP1Vu+dimmvDDD8lvfU9ydU8ZNC1yOTzE YBgdRgodCWtSyGryMB4qE7GXre1Vo00mxKgfrxarA2TsdbfPQ7LTvvAnTfaT9FUjwZE6 7T1Epm06go88aLCerWnmI93D2lKz/sG73B1ytRkRIfeSWkI/v5xZlavKBo5+8Eyt4pQD r+63frY9IzY8nCvJVQYacb1Bg626TRR1yTbWJdg1FIXOJA+9+gKRwNhvSJ8KCZehkztU QG+A== X-Gm-Message-State: AG10YOSd+HbGyDuxKGzUcpwp4WFNM4KyQQsZTNODQhRHr+E+8vQy+U+6aFLMDTlbXpyQg4dX/NE5s6dxjCuwi1xz X-Received: by 10.194.47.237 with SMTP id g13mr34634272wjn.142.1456241719769; Tue, 23 Feb 2016 07:35:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.34.8 with HTTP; Tue, 23 Feb 2016 07:34:59 -0800 (PST) In-Reply-To: <20160222172314.GL17997@ZenIV.linux.org.uk> References: <CACT4Y+ae=DQjrTtwSqm1PJ9rsnRAvKiBkRjBqaQH6f6W1dOh2Q@mail.gmail.com> <56C3B35E.6020109@digikod.net> <CACT4Y+YOnDbgo2tEp8BxPy20awzcJ7x0Vw=phDGQ3sUMaE7RvA@mail.gmail.com> <20160220032127.GA19926@ZenIV.linux.org.uk> <20160220035442.GE17997@ZenIV.linux.org.uk> <56C86954.6030101@digikod.net> <20160220171044.GH17997@ZenIV.linux.org.uk> <CACT4Y+YtSpsFJSg393wjF8e5Ytv6CSH7b=X16UDSZsuniiV3fQ@mail.gmail.com> <20160222172314.GL17997@ZenIV.linux.org.uk> From: Dmitry Vyukov <dvyukov@google.com> Date: Tue, 23 Feb 2016 16:34:59 +0100 Message-ID: <CACT4Y+bwff8HvHsyTPTPkBD_QF2h6uqgvw5wFzJj1gXHU1UO+g@mail.gmail.com> Subject: Re: fs: NULL deref in atime_needs_update To: Al Viro <viro@zeniv.linux.org.uk> Cc: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= <mic@digikod.net>, "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, syzkaller <syzkaller@googlegroups.com>, Kostya Serebryany <kcc@google.com>, Alexander Potapenko <glider@google.com>, Sasha Levin <sasha.levin@oracle.com> Content-Type: text/plain; charset=UTF-8 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/namei.c b/fs/namei.c index f624d13..9675e9e 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1669,6 +1669,7 @@ static int pick_link(struct nameidata *nd, struct path *link, { int error; struct saved *last; + WARN_ON(IS_ERR_OR_NULL(inode)); if (unlikely(nd->total_link_count++ >= MAXSYMLINKS)) { path_to_nameidata(link, nd);