From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7ADF7606A333 for ; Thu, 3 Dec 2026 07:10:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=jl0moeTw DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Subject:Message-ID:Date: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Unsubscribe-Post:List-Owner; bh=IxFIvVyVs0wIfy3AnanPreAClBbSxGlB1zvFqm5EFgg=; b=jl0moeTwIU1l1oUdIdLgAOHbmU XU/KXVM34WL2BA0YbKSsnB73CBnpC8mB3ignw56wmWD0Bv2nCfFVYiTV7tELciLAIS1AK/Kl1BHXT /WdMfG8Bz29h2hkzSTUXQfeYrVcLBaP5sqpZHkVEzJy5POJZ2ikg9PWvtasPuH4ssK2m86YfBzel9 W8+8bPxRhpEUP/hZfUgRd0t9CJASi9+ElAe3KRyF3gd7DOd6UbYC32ijNXbWt9wrqdCG27zKmzltJ HBwuLq5sqBbX0rm/mcWYbQfTUzV+fflcHwvSjESHqy8lHec93FmHitb/hcdGAoQrMKZ5b19HV0rDG We1kXOWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ0xt-0000000DjPH-1Y4l; Thu, 03 Dec 2026 07:10:49 +0000 Received: from mail-oo2-f8.google.com ([74.125.231.136]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ0xo-0000000DjOL-2JcU for linux-mtd@lists.infradead.org; Thu, 03 Dec 2026 07:10:48 +0000 Received: by mail-oo2-f8.google.com with SMTP id 006d021491bc7-718facffeffso1300351eaf.0 for ; Wed, 02 Dec 2026 23:10:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796281842; x=1796886642; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ibcQ+93JqfpVVVsTEViUtlP9kEL5eYXGWYJX/Gd/4O0=; b=jC0HBeSnqWuNaaxEJnld8ECEK2eYZ/WUlsnoaTQObHeP8QhiuuHZcVQoF6sN954Kf8 /1qWCsGwXvJeSSCb/SwcqaoeYoe3HzpoTTcAzJOE5zeZs7Uwgg+FDZbUNVJerDuLov8m f2Wk4/HLRIgVIvmT8kw7EQflTYyUCjsO3bF6UD52h3QDqgi9wPpaxkwq02l7ET2a5Rph qzu2t0t/91wjS/ghrGgzEuFUGd8isS43orZqnnYvg20KQCs1RcYzj+wDKfLUTBqRMq2b ZhaLppd5Lrlpjk5m+JCv79XgdOplmecsCqPO9ghAI3QX7tXN033G+3KX8zUqvMbw9M2R rkxA== X-Forwarded-Encrypted: i=1; AL+hErEBs8FkQYFdqhRg5CuDD4T4J6TCF5TeqFJ3UezQrdhfHJFuKsN4I2+bKlm/GkeMFXEfjIQb9ZTdygI=@lists.infradead.org X-Gm-Message-State: APuU4Z/MzCfirYORibREheTf6LHLK/oZuLIvJ+/pc/XBZxaLWmg2H7/5 9uzEkM7dBi4VzryV1l4i6Z25NBqkWH3hR82ie+7Sf19scBZ7d3GgNpnDot4Y4qJI29dVGEX1oLy 5H/ojDN4Mgt2fu5D0v2KVaV9BZxpU7kLVdOAxeYYVvRqJZS1xs094klk3I/o= X-Archived-By: MIME-Version: 1.0 X-Received: by 2002:a05:6820:1611:b0:71b:1c49:5f22 with SMTP id 006d021491bc7-71b394ac401mr35270485eaf.42.1796281842652; Wed, 02 Dec 2026 23:10:42 -0800 (PST) Date: Wed, 02 Dec 2026 23:10:42 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b1115f2.8744ccba.1c9cf9.00b9.GAE@google.com> Subject: [syzbot] [jffs2?] kernel BUG in jffs2_do_read_inode From: syzbot To: dwmw2@infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, richard@nod.at, syzkaller-bugs@googlegroups.com, tglx@linutronix.de X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_231044_608785_F70548B2 X-CRM114-Status: GOOD ( 12.30 ) X-Spam-Score: -0.7 (/) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hello, syzbot found the following issue on: HEAD commit: 693c2e04e3f1 mm: kvmalloc: Bail if called with soft or har.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=114fc5d9580000 kernel config: https://syzkaller.appspot.com/x/.config?x=fc1834b4a2e3ba54 dashboard link: https://syzkaller.appspot.com/bug?extid=40179a6b1f86287d2848 compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/9fd82cdf9072/disk-693c2e04.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/a5d50f9d7691/vmlinux-693c2e04.xz kernel image: https://storage.googleapis.com/syzbot-assets/06d32a5e48b0/bzImage-693c2e04.xz The issue was bisected by AI to: commit 67e345d17ff8c2085a54c293001ae548f7be7b21 Author: David Woodhouse Date: Sun Feb 27 23:01:36 2005 +0000 [JFFS2] Prevent ino cache removal for inodes in use reasoning: https://syzkaller.appspot.com/ai_job?id=04b4d0fa-a2b6-4d59-9054-c08c1045284f AI-generated root cause summary: `jffs2_do_read_inode()` in `fs/jffs2/readinode.c` does not handle `INO_STATE_CLEARING` (state 6) in its `switch (f->inocache->state)` statement and falls into `default: BUG();` at line 1365. When `iget_failed()` runs on a JFFS2 inode (e.g., after a failed `jffs2_iget()` or failed creation in `jffs2_create()`/`jffs2_mkdir()`/`jffs2_symlink()`/`jffs2_mknod()`), `make_bad_inode()` unhashes the VFS inode before `iput()` invokes `jffs2_evict_inode()` -> `jffs2_do_clear_inode()`, bypassing VFS `__wait_on_freeing_inode()` serialization. A concurrent `jffs2_garbage_collect_pass()` (which also omits `INO_STATE_CLEARING` from its `switch (ic->state)` at `fs/jffs2/gc.c:365`) can then call `jffs2_gc_fetch_inode()` -> `jffs2_iget()` -> `jffs2_do_read_inode()` while the `inocache` is in `INO_STATE_CLEARING`, triggering the `BUG()`. full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=40179a6b1f86287d2848 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+40179a6b1f86287d2848@syzkaller.appspotmail.com The bisection result may be wrong. If you agree with it, please also add: Fixes: 67e345d17ff8 ("[JFFS2] Prevent ino cache removal for inodes in use") ------------[ cut here ]------------ kernel BUG at fs/jffs2/readinode.c:1365! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 10842 Comm: jffs2_gcd_mtd0 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:jffs2_do_read_inode+0x699/0x6a0 fs/jffs2/readinode.c:1365 Code: f5 fe e9 ab fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c fd fe ff ff 48 89 df e8 02 83 f5 fe e9 f0 fe ff ff e8 98 78 81 fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90004b97740 EFLAGS: 00010293 RAX: ffffffff8346a078 RBX: 1ffff1100582914a RCX: ffff88802fa1be80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90004b97870 R08: ffff88802fa1be80 R09: 0000000000000006 R10: 0000000000000100 R11: 0000000000000005 R12: 0000000000000006 R13: 1ffff92000972ef4 R14: dffffc0000000000 R15: ffff88802c148a52 FS: 0000000000000000(0000) GS:ffff8881247fa000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b342ccff8 CR3: 0000000072e72000 CR4: 00000000003526f0 DR0: 0000000000000008 DR1: 0000000000000007 DR2: 0000000000000004 DR3: 0000000000000008 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: jffs2_iget+0x228/0xcc0 fs/jffs2/fs.c:277 jffs2_gc_fetch_inode+0xd9/0x340 fs/jffs2/fs.c:673 jffs2_garbage_collect_pass+0x1a69/0x2170 fs/jffs2/gc.c:454 jffs2_garbage_collect_thread+0x693/0x720 fs/jffs2/background.c:155 kthread+0x38b/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:jffs2_do_read_inode+0x699/0x6a0 fs/jffs2/readinode.c:1365 Code: f5 fe e9 ab fe ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c fd fe ff ff 48 89 df e8 02 83 f5 fe e9 f0 fe ff ff e8 98 78 81 fe 90 <0f> 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90004b97740 EFLAGS: 00010293 RAX: ffffffff8346a078 RBX: 1ffff1100582914a RCX: ffff88802fa1be80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90004b97870 R08: ffff88802fa1be80 R09: 0000000000000006 R10: 0000000000000100 R11: 0000000000000005 R12: 0000000000000006 R13: 1ffff92000972ef4 R14: dffffc0000000000 R15: ffff88802c148a52 FS: 0000000000000000(0000) GS:ffff8881247fa000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b7581d3f40 CR3: 0000000035b8c000 CR4: 00000000003526f0 DR0: 0000000000000008 DR1: 0000000000000007 DR2: 0000000000000004 DR3: 0000000000000008 DR6: 00000000ffff0ff0 DR7: 0000000000000400 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#ai-bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/