Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5233359rwl; Wed, 28 Dec 2022 15:23:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvm5gZM9zkbCwgWzSV1uHetCZu0XWO9ee7kWHEaDRQiyA5/EWFizPCO5F7hycMdJV88VYmI X-Received: by 2002:a17:906:d217:b0:7c1:6fc:6048 with SMTP id w23-20020a170906d21700b007c106fc6048mr20074076ejz.24.1672269808789; Wed, 28 Dec 2022 15:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672269808; cv=none; d=google.com; s=arc-20160816; b=B7bPNuZmMJjvqJlWzp5Z/kISFow6LqmJ1XxdLqluOPqGKl64vGr+XxJ7wMVOdNnDRY YSSm+Vu+j2wy8x2N6nG2SWzAKEZs7OgpgkqX3uaH/q0jHAROYFra/GOFNs8iwkJUudfj PVhEpSl70iF8NA7fZ/qvE/+m/Kvl3qR5HvuViC8SVP6ejWoYOUkiYo8EF7b0am2yoQDf imnqUjlgeEXTelK0W6TlxovshVgmSlb9ppxGjJDufLr1J9ZJrI9nsmIzb9sWkJ2NGcay FKgYc1M3HDYY1WiriNWBT9sI4PzoSWynWF5/oDyPEOGc3ygIisRn3bxH7RyYYxmIrUtE 186g== 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=LXKS/ahxqLfQUkNJ4Z0fI/tr5BsFkHuEpYjkPn4Nhgg=; b=hFqu9HklMFlqWy1E9vhyeQVxsLGZk+SayifrW8tw/8zDncCg4OpctlL520m+H7azlJ OEoGkSbPfu21RXOMLgn3ZAq5N4Yq0GNPIZ6eG61Rr2dtokJfQaV4KhtT5IBUKdxbowYF WjtsRc579k1AzfOTNhcVJUNTx268nWAqTPwFrxoMFfmcSlBuSbBPbvexPLRGeWnFUnX8 0CjHCAirNadjJWRqPTA8LPaXHl6edluzRjlODtxCTEYRIsnfQCgvBLuBKkmcUb9/6Kvb As/Yk4ceUXU4uf4pkuZaT7NdAKnH8mEuflNnsJnWiRKSqBbnAyMp8aEXLtqW7LAI6XDQ gW4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=FjwcaE9m; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a05640211cf00b0046abe52aca7si16617834edw.486.2022.12.28.15.22.56; Wed, 28 Dec 2022 15:23:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=FjwcaE9m; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbiL1XOj (ORCPT + 99 others); Wed, 28 Dec 2022 18:14:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiL1XOi (ORCPT ); Wed, 28 Dec 2022 18:14:38 -0500 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2E260E1 for ; Wed, 28 Dec 2022 15:14:36 -0800 (PST) Received: from letrec.thunk.org ([172.102.10.27]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 2BSNEEsa004537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Dec 2022 18:14:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1672269258; bh=LXKS/ahxqLfQUkNJ4Z0fI/tr5BsFkHuEpYjkPn4Nhgg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FjwcaE9miaagM6TdRTQ3A6esjnDUUCl7cA216/QG328iOWM3fXO8E7bVHBx1+4jms YjY6Qj8vgvC+4xuQ+hE7rk4sOEnUVo54qIhbiMT0uT0jl6igfq8AdbYYsLY5mPKJfb B0oxwSBgIqcMtSwCyly/vCUbemLN6vd2V+8XXtEDyMdbQOdGJveaq5e+WZu2ArdLb1 w7oFy6o3nwZnmY/4R+yVWFBJ2T/2PbSCtaNTwT2Mkl1xhTmiPxIiJPctct7AzekLNm edpxocecGLw6VxKtkdP1Qb8heGiF4rjlYmwKaFq4lAGcRvJLV0mYlERDaGFcr1p9Sz bit99nbh8fMtQ== Received: by letrec.thunk.org (Postfix, from userid 15806) id 15D078C0904; Wed, 28 Dec 2022 18:15:09 -0500 (EST) Date: Wed, 28 Dec 2022 18:15:09 -0500 From: "Theodore Ts'o" To: syzbot Cc: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, nathan@kernel.org, ndesaulniers@google.com, syzkaller-bugs@googlegroups.com, trix@redhat.com Subject: Re: [syzbot] [ext4?] kernel panic: EXT4-fs (device loop0): panic forced after error (2) Message-ID: References: <000000000000e6c7b005f0e90bf1@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000e6c7b005f0e90bf1@google.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_MED,SORTED_RECIPS,SPF_HELO_NONE,SPF_NONE 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-ext4@vger.kernel.org On Wed, Dec 28, 2022 at 12:16:41PM -0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 72a85e2b0a1e Merge tag 'spi-fix-v6.2-rc1' of git://git.ker.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=13527f8c480000 > kernel config: https://syzkaller.appspot.com/x/.config?x=4e2d7bfa2d6d5a76 > dashboard link: https://syzkaller.appspot.com/bug?extid=3c45794f522ad93b0eb6 > compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12d7f2e4480000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10c8d2ac480000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/510d16df06c8/disk-72a85e2b.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/50ef5477a1d4/vmlinux-72a85e2b.xz > kernel image: https://storage.googleapis.com/syzbot-assets/f2acd6f1189a/bzImage-72a85e2b.xz > mounted in repro: https://storage.googleapis.com/syzbot-assets/6f0bbc430a64/mount_0.gz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+3c45794f522ad93b0eb6@syzkaller.appspotmail.com > > loop0: detected capacity change from 0 to 512 > EXT4-fs error (device loop0): ext4_map_blocks:607: inode #2: block 2: comm syz-executor170: lblock 0 mapped to illegal pblock 2 (length 1) > Kernel panic - not syncing: EXT4-fs (device loop0): panic forced after error So this is a totally bogus Syzbot report. If you use the mount option "errors=panic", and you feed ext4 a corrupted file system, then it *will* issue an "Ext4-fs error" message, and if you tell it to panic, it will panic. So *please* let's not have some crazy Red Hat principal engineer try to file this as a high severity CVE.... This is Working As Intended. And it is Not A Bug. - Ted