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 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5A1AC7EE29 for ; Sun, 28 May 2023 17:52:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5583440165; Sun, 28 May 2023 17:52:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5583440165 Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=otrqXXqb X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TKZuR_gQuH4l; Sun, 28 May 2023 17:52:17 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id 5415040106; Sun, 28 May 2023 17:52:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5415040106 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3447CC0035; Sun, 28 May 2023 17:52:17 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1DE7FC002A for ; Sun, 28 May 2023 17:52:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id EC56C831A5 for ; Sun, 28 May 2023 17:52:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EC56C831A5 Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=otrqXXqb X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rGVWpmyHmV9A for ; Sun, 28 May 2023 17:52:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2896D830C5 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by smtp1.osuosl.org (Postfix) with ESMTPS id 2896D830C5 for ; Sun, 28 May 2023 17:52:15 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45A2760F72; Sun, 28 May 2023 17:52:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62576C433D2; Sun, 28 May 2023 17:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685296333; bh=4HvaVQR1ubJwphBZulWTFAhkUjWttPrNPN9+qUwM4Yg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=otrqXXqbeNYZ5LbkbRSPIJwObcvyPPgJBuvBNksIdu1rZQDPwIjqBsbP1+VjbVl2k ODRP21Laqudk2kShW850by1GxOaBM2jVPIkbLv7WpNIcq1KjayetGg4jL25yPXzIzF K2FrLqs+uJwlDRo89wdT3A/WbRgVfCYcDnjNXwtc= Date: Sun, 28 May 2023 18:52:11 +0100 From: Greg KH To: Prince Kumar Maurya Subject: Re: [PATCH] Null check to prevent null-ptr-deref bug Message-ID: <2023052852-footwork-sanding-e450@gregkh> References: <000000000000cafb9305fc4fe588@google.com> <20230528173546.593511-1-princekumarmaurya06@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230528173546.593511-1-princekumarmaurya06@gmail.com> Cc: brauner@kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, chenzhongjin@huawei.com X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" On Sun, May 28, 2023 at 10:35:46AM -0700, Prince Kumar Maurya wrote: > sb_getblk(inode->i_sb, parent) return a null ptr and taking lock on > that leads to the null-ptr-deref bug. > > Signed-off-by: Prince Kumar Maurya > --- > Change since v1: update the commit message. > The bug was reproducible using the reproducer code and assets found in > bug report:https://syzkaller.appspot.com/bug?extid=aad58150cbc64ba41bdc Also, did you forget to properly credit the syzbot tool like it asks you to? _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees