From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A04BFC282D8 for ; Fri, 1 Feb 2019 03:57:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 72BA420863 for ; Fri, 1 Feb 2019 03:57:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727216AbfBAD55 (ORCPT ); Thu, 31 Jan 2019 22:57:57 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:45840 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfBAD54 (ORCPT ); Thu, 31 Jan 2019 22:57:56 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.91 #2 (Red Hat Linux)) id 1gpPxd-0006Ya-11; Fri, 01 Feb 2019 03:57:49 +0000 Date: Fri, 1 Feb 2019 03:57:48 +0000 From: Al Viro To: Greg KH Cc: Kees Cook , Andrew Morton , syzbot , Eric Biggers , Souptick Joarder , LKML , David Rientjes , syzkaller-bugs Subject: Re: general protection fault in relay_open_buf Message-ID: <20190201035748.GL2217@ZenIV.linux.org.uk> References: <00000000000074cbc30580b16bc3@google.com> <20190131105152.GB13686@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190131105152.GB13686@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 11:51:52AM +0100, Greg KH wrote: > Can you test the patch below? > > thanks, > > greg k-h > > @@ -461,7 +463,7 @@ static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu) > dentry = chan->cb->create_buf_file(NULL, NULL, > S_IRUSR, buf, > &chan->is_global); > - if (WARN_ON(dentry)) > + if (IS_ERR_OR_NULL(dentry)) > goto free_buf; Huh? That makes no sense; is it IS_ERR on error or is it NULL on error, or what? Besides, how did it work before?