Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1689694pxb; Wed, 9 Feb 2022 02:16:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmtiYDyImajLacxj3xmGRYolKQKCWgvgRSbg6Gh3y0hCt1EGmM7ZioTzDRuLG8pJjO8VC4 X-Received: by 2002:a62:15c5:: with SMTP id 188mr1606634pfv.84.1644401765331; Wed, 09 Feb 2022 02:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401765; cv=none; d=google.com; s=arc-20160816; b=LNSsOl+cFcNYtVzxPHHyKjlmY+topC88oqc3Meo9pSV1atfA7dsjV3a9Gim3qXx/zK uDi6qSrkb7/3sl8skIgpgRhZ2377+XpPtf41840322YvC12zFct14wBb9xxSM5eO/5KO 6+fgK4sFjayaTRUmPfws3ggpTq7INorkWVhCbHc8Gvt6HpVIU2rXnPtZSZ+UQpWqL+IR IT5fBJljjxv2KWtu89i4AN/a2lk9md5eoLVeoiMFj3TAfBDNVCNKVlAZmvnicRkUJvGE TkrS/YNoJeyXO9Gw7zxq10pkaHCoGRNKSrTAQ2U33y6HH8Inm2CNmsl7CQ6u6GVRLgre e+BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GdrAEtpSp9knE3dG4N9tmiah7mkkROzWWe9VwwtgIEE=; b=LVs5v2uW5oJr6SgKFsYfn+vWR4X5SgASmWFLyMcq7C95e5CqRDVrJ+usQIQ+1/RGBa bORr9EyWDZe28QmLyIYZtEFcnVU4cUp0v2sQ7bQVX2+atfT3NpCAkvaL6P+xWZ+HCYin 9XbzkswGbiq81FINWFc+2Tws8/8BoKmy2xoNURawagpBFOu0h0exJAL5YjdBQkh/aPh1 wa6K96w/LWy3e5yRR3lENVk05FXC46YdLNMx3frhZOEwdtOjD1BDiMFUWtNMgcoNPwp+ iGkBkN3LWIv9nMpEyC4xzYmVI3iGZs0T1zr7I7fUY8IBuPwO6eGyF8xoaSlSjGcuoQsj QwCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hm9BqMPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y72si15590314pgd.207.2022.02.09.02.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:16:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hm9BqMPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DFA31E08D8FC; Wed, 9 Feb 2022 01:16:56 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383529AbiBGL46 (ORCPT + 99 others); Mon, 7 Feb 2022 06:56:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385218AbiBGLbX (ORCPT ); Mon, 7 Feb 2022 06:31:23 -0500 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7924EC02C451 for ; Mon, 7 Feb 2022 03:29:42 -0800 (PST) Received: by mail-oo1-xc29.google.com with SMTP id b15-20020a4a878f000000b002dccc412166so13216479ooi.11 for ; Mon, 07 Feb 2022 03:29:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GdrAEtpSp9knE3dG4N9tmiah7mkkROzWWe9VwwtgIEE=; b=hm9BqMPBVXryDOYxjtgkzshKUBUyISC+PQUo9JZc0hU2pX+klK/9GoBimwmV4SbPbs Cqktu28LyobNhdW4hSKY5KtDI2UWmSNcgeBjPTEd7B4KB0hv2NV+qWzvuHN6+SkOtFu5 TiwDUyoGDQxMO8KHFSZQJ2fIbs8XY6z6xtTOFXXwph0LDKis4tf2aBVt2bTqxORAi41k 0mvxrR6ZwQGJIQ4JCZ1rPHseamYb5bXnm/00ermwgNFOxidmOYZNjcSWxwjAfipHHjP3 5kb+IMCddLCjqQ0SjILaVak/wEXI3KPC55ZNGDUEu9H22th2mZrQCZFD6FlRu9EAsZ9l NCiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GdrAEtpSp9knE3dG4N9tmiah7mkkROzWWe9VwwtgIEE=; b=QItJaengzk2efCYw9uRCn5+QMJ0OQZBQJx53/CTh55KoFBulFuSayTE6Ut0AIwrYCe t46xBqesoAlZhLMFvay5Jb4sJl53xDLc8yf+Sw43K9tE0CjSrgUF0S7x8Tg8k5XWCCj6 F4Ans+LQ2GiV+LKB9cZY+39okXIO5YEuKBFxCQEnaZ9whVSFbVKV3cBgRiLvdidkUNzD NJrmVGph5nWsVy5Bo+MmHTn079pSAibejqHdklQrzLiSsZiu8HVFYDPkKmaSKZC+X5ys kFOeR0209FfDBIcjGlYNGZc5HdxvADYHDpDrkVlQj3ZA0spDYhMMHv13ZtuOeHPfFemM N2Bw== X-Gm-Message-State: AOAM532yitkYqwPuEbfwo/3r/CPkGNx02dXSpS1p0Kec0vVPqguYLxBy ej9GXBaOEmYm9iktfpDMpK+HW2Veq2ncTWLUhcILug== X-Received: by 2002:a05:6870:7715:: with SMTP id dw21mr3643420oab.38.1644233381454; Mon, 07 Feb 2022 03:29:41 -0800 (PST) MIME-Version: 1.0 References: <0000000000001e0ba105d5c2dede@google.com> <000000000000fbf22d05d74d08fb@google.com> <20220207103009.id72sr4dtghgzp5f@work> In-Reply-To: <20220207103009.id72sr4dtghgzp5f@work> From: Dmitry Vyukov Date: Mon, 7 Feb 2022 12:29:30 +0100 Message-ID: Subject: Re: [syzbot] general protection fault in ext4_fill_super To: Lukas Czerner Cc: syzbot , adilger.kernel@dilger.ca, cmaiolino@redhat.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, nathan@kernel.org, ndesaulniers@google.com, syzkaller-bugs@googlegroups.com, tytso@mit.edu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Feb 2022 at 11:30, Lukas Czerner wrote: > > On Sat, Feb 05, 2022 at 02:39:06PM -0800, syzbot wrote: > > syzbot has bisected this issue to: > > > > commit cebe85d570cf84804e848332d6721bc9e5300e07 > > Author: Lukas Czerner > > Date: Wed Oct 27 14:18:56 2021 +0000 > > > > ext4: switch to the new mount api > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=14902978700000 > > start commit: 0457e5153e0e Merge tag 'for-linus' of git://git.kernel.org.. > > git tree: upstream > > final oops: https://syzkaller.appspot.com/x/report.txt?x=16902978700000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=12902978700000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=cd57c0f940a9a1ec > > dashboard link: https://syzkaller.appspot.com/bug?extid=138c9e58e3cb22eae3b4 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17f7004fb00000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=178cf108700000 > > > > Reported-by: syzbot+138c9e58e3cb22eae3b4@syzkaller.appspotmail.com > > Fixes: cebe85d570cf ("ext4: switch to the new mount api") > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > > > I believe that this has been fixed with upstream commit > > commit 7c268d4ce2d3761f666a9950b029c8902bfab710 > Author: Lukas Czerner > Date: Wed Jan 19 14:02:09 2022 +0100 > > ext4: fix potential NULL pointer dereference in ext4_fill_super() > > By mistake we fail to return an error from ext4_fill_super() in case > that ext4_alloc_sbi() fails to allocate a new sbi. Instead we just set > the ret variable and allow the function to continue which will later > lead to a NULL pointer dereference. Fix it by returning -ENOMEM in the > case ext4_alloc_sbi() fails. > > Fixes: cebe85d570cf ("ext4: switch to the new mount api") > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Lukas Czerner > Link: https://lore.kernel.org/r/20220119130209.40112-1-lczerner@redhat.com > Signed-off-by: Theodore Ts'o > Cc: stable@kernel.org Let's tell syzbot then: #syz fix: ext4: fix potential NULL pointer dereference in ext4_fill_super() Thanks