Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1496107pxb; Tue, 8 Feb 2022 20:06:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDXxINf6vJmpsL+iEpl7t25Sk0ndYXSob34ePod+yG5AHfIyiX3Ty0kTZhrMskkxJgAmab X-Received: by 2002:a17:90a:311:: with SMTP id 17mr496354pje.200.1644379585086; Tue, 08 Feb 2022 20:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644379585; cv=none; d=google.com; s=arc-20160816; b=UJsmZC2VPzsYjS3DxqTMXhFkgGcoxIgJjYgf3kYyxtpUgPsWP8ktN2Ewuu1gAoQcmg bG48CbLJf8TMd6HuWfQl+8NhVIznk4xWGBy5iczAIR0327JiGvmA1kxx/nMbdRLALgRQ md48sq9/QO6TlsLzNERNp+f9t7G9GiucRwPr1Kyt+qKUWi8cSeUKbgvyWymoCjNBKO0x sFIXR8nau2gcRuo9h6GrzDMTHr3PYNcc39ysvKE8tppPysjavtsRVaNdlmx15TtEnBSg qNleoPe+Umv8rmMhUbR8FX0b0PnFDS1bbvmewuEkzct/ynm4poLkPghZbnvKfOiZCJmw 2cFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3cyRyCr5+eamib5wZIABy4k0pAM0GRsoTKR73ge8vW8=; b=WbjhgyXq/HU3QeORZ5cEamPXu30KVvmNkLovyP3OlVbf9hEYHmzntjxXPUyS15QsxJ +IqquAtN5rFbnG99rG1t6k2KAJiU6hEq6koBD0XBX1MHkUM9k2yBFiqvtXf9ZQmgdXtR u8SfipkzzQap190JSap+UkcxiYJd9d3V9CF9pKqpqClMxJBUAHFv+sSspH1ALWKSqF/B j9ENqAcgsZL2x/SYvcfMTXd5JxM5zmNDTgWwajNLD//R1sFT9zHK6Ii2YGtNhitXHxNX 36tzkubYyJwRLeMmRFOMRWt56rTfxDlbRH6SgOCywKUSBm1F9/TpY1hkAafxO1Q64Mfn j0nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=afUnP9BF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si9693188plg.51.2022.02.08.20.05.47; Tue, 08 Feb 2022 20:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=afUnP9BF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345997AbiBGKjD (ORCPT + 99 others); Mon, 7 Feb 2022 05:39:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232815AbiBGKay (ORCPT ); Mon, 7 Feb 2022 05:30:54 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E3C4FC043181 for ; Mon, 7 Feb 2022 02:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644229852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3cyRyCr5+eamib5wZIABy4k0pAM0GRsoTKR73ge8vW8=; b=afUnP9BF1TqjnNoVdkoIiwLZFdS2Evmm8ctpNdgG9FP7GhTeppliY6xcXPcIaIHD7NYGqW aBGFAQztMNWgWQFjPVoWyBCooa5KWfIerYpuB0kjj2HYC29QUWAA/gKfRt93uZ7AE3t+qZ 9WHunOaafFevTRqQ+Qp3GhMNI+v+r8M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-253-UDBsiRaoM2S6ps60GOiWsQ-1; Mon, 07 Feb 2022 05:30:48 -0500 X-MC-Unique: UDBsiRaoM2S6ps60GOiWsQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 209C21800D50; Mon, 7 Feb 2022 10:30:47 +0000 (UTC) Received: from work (unknown [10.40.194.180]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DE8AE7D704; Mon, 7 Feb 2022 10:30:12 +0000 (UTC) Date: Mon, 7 Feb 2022 11:30:09 +0100 From: Lukas Czerner To: syzbot Cc: 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 Subject: Re: [syzbot] general protection fault in ext4_fill_super Message-ID: <20220207103009.id72sr4dtghgzp5f@work> References: <0000000000001e0ba105d5c2dede@google.com> <000000000000fbf22d05d74d08fb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000fbf22d05d74d08fb@google.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SORTED_RECIPS,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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 Thanks! -Lukas