Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3654641rwb; Fri, 9 Dec 2022 18:26:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UXl6cXIoXB6M4xbZxV5eIZCb3X1kHL0G8M1FzHTrlacNKrANCMjac3PUd9qutDYqcV9Bx X-Received: by 2002:a05:6a00:e85:b0:573:487d:e852 with SMTP id bo5-20020a056a000e8500b00573487de852mr8884846pfb.4.1670639164729; Fri, 09 Dec 2022 18:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670639164; cv=none; d=google.com; s=arc-20160816; b=MI4lgljlReOaLtkHXQzSw/3VCk6gGUuwH3ZeXNBpzI11eWwBTeMq00QZtSJ7JkxSat bzESCZ5IpzHe/29YDS+rUizXogFtlLdmD6k7mS+lQxDIOt7WwEob78k5zDqXctg+qrQ5 ICQOQ9TDy+AVIJaygYMigF0o/4mMnMBIaZPzQENetsJ+6UhgkKMei56BU5a4lwFYifQM XkRAYWSyLzmZKHIJHmiRbdpHP2gV58VRFkGqtPoS4CgtNvA8v04dBBnacAWOVYDXO/gq JXL2p8a5u8WdkjeNbrBLPGJ2EChqpewB1y2Q+OgMgQAI2xq8iEdqPr2edHfd+jttjVCK TtNg== 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=1ehC4gRqwWPVpI0ho/T17FP2Neecdj4vCB7ajo1mNbM=; b=I6z43eL0DOwA3/pt8T9lFXPDpZb6NA5qAX2Ik2eHoakUdEATrimRA+0ghND2fVROhH 1KdGMDq9C4d9V2AEkAxJ93dL21KzQtAKaCr0ih8LH31bJXfJ2WLqbCSl8PHhK7YiA6Ut 3Fp6dXWjn/rIxQqsFwUiupj5rcJnf8bsK+L2D8Ez9BhIl6kZBaeBSzAJx9xB5tUGJP1v +E7EIJJJDXsGGyKq1fu6yF7BpCRYlz7IugTyHinNCiBWhhxKOf2m6cpgo9oKxG8jNPwa qGGwhiyO/9lQwxaFR/Ts8Z507zluH3V7ZO2aUaAqRHm6cLgy6jeF6qVHMpZKzV7cOTmP T97Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a4qBDdlC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s36-20020a056a0017a400b00576505a4872si3400875pfg.261.2022.12.09.18.25.51; Fri, 09 Dec 2022 18:26:04 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a4qBDdlC; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbiLJB3b (ORCPT + 74 others); Fri, 9 Dec 2022 20:29:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiLJB3a (ORCPT ); Fri, 9 Dec 2022 20:29:30 -0500 Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C55994198E; Fri, 9 Dec 2022 17:29:28 -0800 (PST) Received: by mail-vk1-xa30.google.com with SMTP id o136so3001038vka.2; Fri, 09 Dec 2022 17:29:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1ehC4gRqwWPVpI0ho/T17FP2Neecdj4vCB7ajo1mNbM=; b=a4qBDdlCOPjXA6d0LSD1n3iBI46mxevJII1X51S4rQE9yjYV9FVAs9gxyOaNDVSYUl JADCgoDJc9p3vf0vd9iDzXScd/emGxHoXwYnYHBgLU0trSmajHHyBoYMq2g7MFYSMaeN v8xrlOALQy9X9BgM+uoDNigKDbw5ENYL6OXlwzzc+jc5OFxgV++HrjRkM7J5MZWWgPmK trZlqtiH5QS/6KS6aYm/Odg2/XMApTMwrniM2jFVPDglvd9GpFlwAX3G5uEGNY/cmNjS jE/k2mGaKiG/xejyjr/JbYWHcq3ZJnFSB00CsWD8mjsTaRPCbO4WD8wSK3z1FLBrYMcp GHNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1ehC4gRqwWPVpI0ho/T17FP2Neecdj4vCB7ajo1mNbM=; b=nolrUwCDsiriw/mufTR8kGAR7nNkLKrqiGGVZgXAUxtHUrNpEndiBA/U2CNSWrVm74 qyYs2vvGlduwKOebBTi7SorZl3bKXdkkqr/f7wZ7GKS5mq+MxlC2RUmNUffnsx0If1pI URKtL6s2LPUoGbFZZ8z37cxkmML/Lt+NSRlFCKxmuIFSBDyJa+BfPAjd6XV9YEmWUBe3 GATwGOyDh1hPLryoo2sGy1JmEicBKCDa8NBEQw/mvdh544qWPRa7y4NzsjvFSK3mVa0n kteIY8l7Na/2EemDZvZ8cTLjFYwaEO2m67ehK6HfX1xFxVsWdoWZ8K/G+s3CGLjCf22X kO1Q== X-Gm-Message-State: ANoB5pkU7f9iamP4K+nxr7GjXwWn4CTxoLuJuJuer15xE4Bg0UgwXNYV 5qxaKt7w78ABXLI6obqhY3mmGiUw+QE60L9vKsg= X-Received: by 2002:a1f:2b8e:0:b0:3bc:5598:2096 with SMTP id r136-20020a1f2b8e000000b003bc55982096mr45101045vkr.36.1670635767518; Fri, 09 Dec 2022 17:29:27 -0800 (PST) MIME-Version: 1.0 References: <0000000000001a6b6705e9b3533d@google.com> <0000000000008eac3f05ef6ec145@google.com> In-Reply-To: <0000000000008eac3f05ef6ec145@google.com> From: Ryusuke Konishi Date: Sat, 10 Dec 2022 10:29:10 +0900 Message-ID: Subject: Re: [syzbot] WARNING in nilfs_segctor_do_construct To: syzbot Cc: akpm@linux-foundation.org, gregkh@linuxfoundation.org, 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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, Dec 10, 2022 at 9:57 AM syzbot wrote: > > 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 ]--- This is a different issue than the one we fixed earlier. WARN_ON is caught in another function nilfs_segctor_truncate_segments(). I will look into it and think of a fix. Ryusuke Konishi