Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3622238rwb; Fri, 9 Dec 2022 17:50:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UYU4cU9OPpSwgpVVSMg+7N0vTzmH7gMcuKVh2CletU9Wwsrl++FSehxH3yKTG5Yq8ZxSA X-Received: by 2002:a17:906:1556:b0:7c0:c691:18c9 with SMTP id c22-20020a170906155600b007c0c69118c9mr6785521ejd.58.1670637026349; Fri, 09 Dec 2022 17:50:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670637026; cv=none; d=google.com; s=arc-20160816; b=wywCTud98nmIcwJ1af3kVOyyi/xzs1TKOKfSSwg83G30D/KJHCpcelb9EYIdtrHNII QW0gyeIZeoohtr2EO+5o5soamLOW87IAjqvXJsFA1MVv+596079lw4zd8LShCbb8CDch LYREksWAxzqgIYcQt1HaKtwdrFydXRqITsOBDaBUEMUl2isFgJmeDxzczOSasatzUx8+ /3O7+bBhty6Pd5sae8GSvq5kpqmgKwxLXQw+6xdqe5o/Eq2Hc2iN26g1FMtHKdGdlXX0 4XY9uE4oqDzDF8yeammoTGIykGN0o158EIzoUOuZlZVT6jhLaDKZCZxnFQnQn68gxYrQ CxKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=OQCSmNJ3Xc0dOvaQuhHN4Oz2uPX+uvhvUhd62uhM/9k=; b=EcbX4S+3Zz6ivQ440wkYVKe/h9HJk8DiMW+F4XRYmshpgGv0C2fsJn/AcR1j8VotLj y1kTwGmCjEFWlWHyO6s8ieCRF3pxMdBHPnMj7kvuuKjd/VE02OJv0lm93qhHPQNuXSEZ AeC+3hTNcBZ9svq7v2LfZBwUlYt1DFWBg3EzRsowKt5KBHRj35ul474QA56VQfPnWh9T w1VQJm6rVMXb/8SD2xLxRpH3RX9UDffqeceEURG7LCPu6lX75fIE8eDxp36Jwvro1iW+ yLiEW1uLtZ2jW0C22mQd/DEaXqhQsWS0hkMRv6UEquAIxyVdecJvYsM4bCZBd3rZ2Vnf 77nA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq37-20020a1709073f2500b0073d8e4e8c77si1262983ejc.1005.2022.12.09.17.50.08; Fri, 09 Dec 2022 17:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiLJA5n (ORCPT + 74 others); Fri, 9 Dec 2022 19:57:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbiLJA5i (ORCPT ); Fri, 9 Dec 2022 19:57:38 -0500 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C63D83 for ; Fri, 9 Dec 2022 16:57:37 -0800 (PST) Received: by mail-il1-f197.google.com with SMTP id k6-20020a92c246000000b003035797fa8cso992322ilo.8 for ; Fri, 09 Dec 2022 16:57:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OQCSmNJ3Xc0dOvaQuhHN4Oz2uPX+uvhvUhd62uhM/9k=; b=BfXDY8weXm98C5qgaRg/khs8onI/uUmHgojZUqgwCxzmglkO8lf3j1m4DYjFkneW5X AG30pv/wpbHbV7glhaR07UFNL4gEqdspdYfTtZshnog2P/9UOcFJGAkfRncdbDxglxve TeBFwrUMFIM+WKqFog9SrcrkcuXRAiDvXTfvVjuHJlQPnAoTN34FI2UD7Dk1EdQW/RvG YQFaT6f3hzNAbFN15hFAJ6zYwuydYJexI1KUXGsD1ZWeuPpXlccn0sT6MOp/UK9Heumo /flGJdfRvfiuEiAxpPdrloIX4bECkgpnDLp55z1NYxGVPiOnoH3lC7Pg1j8ClVm8E/jo QYsA== X-Gm-Message-State: ANoB5pmFaWTRh+BI5hBKf+pKSwDtOJzWmNdZOjg98Esl2tHbZLJG82nc AmVkn2eba7ShPZ4IyHo/2tN7djNUk5THGNOtaMOy5Sr4zI1z MIME-Version: 1.0 X-Received: by 2002:a02:a0c3:0:b0:38a:d70:cd27 with SMTP id i3-20020a02a0c3000000b0038a0d70cd27mr16150140jah.226.1670633856345; Fri, 09 Dec 2022 16:57:36 -0800 (PST) Date: Fri, 09 Dec 2022 16:57:36 -0800 In-Reply-To: <0000000000001a6b6705e9b3533d@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008eac3f05ef6ec145@google.com> Subject: Re: [syzbot] WARNING in nilfs_segctor_do_construct From: syzbot To: akpm@linux-foundation.org, gregkh@linuxfoundation.org, konishi.ryusuke@gmail.com, linux-kernel@vger.kernel.org, linux-nilfs@vger.kernel.org, stable-commits@vger.kernel.org, stable@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS 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 syzbot has found a reproducer for the following issue on: HEAD commit: a5541c0811a0 Merge branch 'for-next/core' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=15c56bdb880000 kernel config: https://syzkaller.appspot.com/x/.config?x=cbd4e584773e9397 dashboard link: https://syzkaller.appspot.com/bug?extid=fbb3e0b24e8dae5a16ee compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14caa71d880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1032f2b7880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/4b7702208fb9/disk-a5541c08.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/9ec0153ec051/vmlinux-a5541c08.xz kernel image: https://storage.googleapis.com/syzbot-assets/6f8725ad290a/Image-a5541c08.gz.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/0911b0ec76cf/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+fbb3e0b24e8dae5a16ee@syzkaller.appspotmail.com NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds NILFS (loop0): nilfs_sufile_update: invalid segment number: 53 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3149 at fs/nilfs2/segment.c:1482 nilfs_segctor_truncate_segments fs/nilfs2/segment.c:1482 [inline] WARNING: CPU: 0 PID: 3149 at fs/nilfs2/segment.c:1482 nilfs_segctor_collect fs/nilfs2/segment.c:1534 [inline] WARNING: CPU: 0 PID: 3149 at fs/nilfs2/segment.c:1482 nilfs_segctor_do_construct+0x6cc/0xefc fs/nilfs2/segment.c:2045 Modules linked in: CPU: 0 PID: 3149 Comm: segctord Not tainted 6.1.0-rc8-syzkaller-33330-ga5541c0811a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : nilfs_segctor_truncate_segments fs/nilfs2/segment.c:1482 [inline] pc : nilfs_segctor_collect fs/nilfs2/segment.c:1534 [inline] pc : nilfs_segctor_do_construct+0x6cc/0xefc fs/nilfs2/segment.c:2045 lr : nilfs_segctor_truncate_segments fs/nilfs2/segment.c:1482 [inline] lr : nilfs_segctor_collect fs/nilfs2/segment.c:1534 [inline] lr : nilfs_segctor_do_construct+0x6cc/0xefc fs/nilfs2/segment.c:2045 sp : ffff800012f6bc80 x29: ffff800012f6bd00 x28: ffff800008f744fc x27: ffff0000c6cf9128 x26: ffff0000c6cf9258 x25: ffff0000c9039138 x24: ffff0000ca797818 x23: ffff0000c90390b8 x22: 00000000ffffffea x21: 0000000000000001 x20: ffff0000cb9a8000 x19: ffff0000c9039000 x18: 000000000000027f x17: 0000000000000000 x16: ffff80000dbe6158 x15: ffff0000c6508000 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c6508000 x11: ff80800008f68d3c x10: 0000000000000000 x9 : ffff800008f68d3c x8 : ffff0000c6508000 x7 : ffff80000816678c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff0001fefbecd0 x1 : 00000000ffffffea x0 : 0000000000000000 Call trace: nilfs_segctor_truncate_segments fs/nilfs2/segment.c:1482 [inline] nilfs_segctor_collect fs/nilfs2/segment.c:1534 [inline] nilfs_segctor_do_construct+0x6cc/0xefc fs/nilfs2/segment.c:2045 nilfs_segctor_construct+0xa0/0x380 fs/nilfs2/segment.c:2379 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2487 [inline] nilfs_segctor_thread+0x180/0x634 fs/nilfs2/segment.c:2570 kthread+0x12c/0x158 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:863 irq event stamp: 8892 hardirqs last enabled at (8891): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (8891): [] finish_lock_switch+0x94/0xe8 kernel/sched/core.c:4968 hardirqs last disabled at (8892): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (8698): [] _stext+0x2e4/0x37c softirqs last disabled at (8677): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---