From nobody Tue Apr 7 18:51:42 2026 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1F9628CF6F for ; Fri, 27 Feb 2026 09:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772183657; cv=none; b=UnYmrA4e75bGfIHKMe5Jg/g4zLg6sgzyCkHq7iKZkQGXDkbou8QIb1HxtattRoipS/jH10uu7eEg4+eJ4jXTkIO2AUZpknwFnWVNgaIQHHJqhJ7Ka1z8KCfkuUMoRH6GlC8SrHvjvyxwyOqvOP+PjGKbL4Gl/UXebNdNefMoyu0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772183657; c=relaxed/simple; bh=2/AIrQ8Xe+RXeIdE61AYkHm6uRLcLPZucWB/SdqbQ7Q=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Y7vzcp6FAkxXH8I9tVwifSELzbjskArCeDGLa5lPnaHXyqZBvynD500v/mzm8Vc0l1Lkt+W7mN3N3wiojnmXl/Plwdc73qhYnERaMJFOUBmB1Tef1+Oq2pgMd7jWg0c2e3c5YBIXPp8gFM1tP53t6+1C1TpbkUTtDv7EHovMbhg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-463a018f61bso10645084b6e.3 for ; Fri, 27 Feb 2026 01:14:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772183655; x=1772788455; 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=j1NGkAZNszuIUHn/RT+v0GBK6e/JnxaItCu/Alg0PvU=; b=w0epPBNcUhxGTELkVQsCFDMACbJ7NfTVuwZqz378GyNbvkmxei0HkRPjgPQeqtfM/k UWbtKgJ2hk4421fbHo0RujfE0MFAUitMVk7nnmWYFVhzlfknIitP98i3SKPfLbmBaq/t ym0w91fuHOhCXZwXkeCjj2vzPtXPvVswbDQ6TgyADGD7QytFgs1zKIXQ+D3naTdMAmCH rnYnDEkEF70MIQuCvdF6jB+tL6io9BTIwZdGeKf1F1gfYW5AZqMqxy0A0LQ1Or4Iz3Rz BMq8rgwBJPAr8DWUHD7cqcsytt80XggY5YYdaK2hMPEWs3bmLrEOLEvom/eyOy7B6mjL rN0g== X-Gm-Message-State: AOJu0Yx+5eraNb3D7z2mEGegDB4Uw826cg/ahL6ZKn0jPger3Ov+s5GD CCDl/Zt6js16suyMDN12y4diu9rUn3s4Aqn+u2aqBdSSIpMup3L0v1sdfrELbX01oVvlYbWqO9O moJ3Y2P30AhfqR4m4ozQb4wBaemwd/LYsKDqB1akhwVdxyNk9fpIEvLfLTE0= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a4a:ec4a:0:b0:65f:6d6c:530d with SMTP id 006d021491bc7-679fadf37d4mr1511024eaf.18.1772183654829; Fri, 27 Feb 2026 01:14:14 -0800 (PST) Date: Fri, 27 Feb 2026 01:14:14 -0800 In-Reply-To: <000000000000ee81a205e9d6e3d7@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69a16066.050a0220.305b49.00be.GAE@google.com> Subject: Forwarded: Re: [syzbot] general protection fault in lmLogSync (2) From: syzbot To: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: Re: [syzbot] general protection fault in lmLogSync (2) Author: koike@igalia.com #syz test diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c =20 =20 =20 =20 index 5b1c5da04163..1fa202fc0458 100644 =20 =20 =20 =20 --- a/fs/jfs/jfs_logmgr.c =20 =20 =20 =20 +++ b/fs/jfs/jfs_logmgr.c =20 =20 =20 =20 @@ -74,12 +74,6 @@ static struct lbuf *log_redrive_list; =20 =20 =20 =20 static DEFINE_SPINLOCK(log_redrive_lock); =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 -/* =20 =20 =20 =20 - * log read/write serialization (per log) =20 =20 =20 =20 - */ =20 =20 =20 =20 -#define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) =20 =20 =20 =20 -#define LOG_LOCK(log) mutex_lock(&((log)->loglock)) =20 =20 =20 =20 -#define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 /* =20 =20 =20 =20 diff --git a/fs/jfs/jfs_logmgr.h b/fs/jfs/jfs_logmgr.h =20 =20 =20 =20 index 8b8994e48cd0..09e0ef6aecce 100644 =20 =20 =20 =20 --- a/fs/jfs/jfs_logmgr.h =20 =20 =20 =20 +++ b/fs/jfs/jfs_logmgr.h @@ -402,6 +402,13 @@ struct jfs_log { int no_integrity; /* 3: flag to disable journaling to disk */ }; =20 +/* + * log read/write serialization (per log) + */ +#define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) +#define LOG_LOCK(log) mutex_lock(&((log)->loglock)) +#define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) + /* * Log flag */ diff --git a/fs/jfs/jfs_umount.c b/fs/jfs/jfs_umount.c index 8ec43f53f686..8547bb5cd3f4 100644 --- a/fs/jfs/jfs_umount.c +++ b/fs/jfs/jfs_umount.c @@ -20,6 +20,7 @@ #include "jfs_superblock.h" #include "jfs_dmap.h" #include "jfs_imap.h" +#include "jfs_logmgr.h" #include "jfs_metapage.h" #include "jfs_debug.h" =20 @@ -63,6 +64,12 @@ int jfs_umount(struct super_block *sb) diUnmount(ipimap, 0); =20 diFreeSpecial(ipimap); + /* + * Hold log lock so write_special_inodes (lmLogSync) cannot see + * this sbi with a NULL inode pointer while iterating log->sb_list. + */ + if (log) + LOG_LOCK(log); sbi->ipimap =3D NULL; =20 /* @@ -88,6 +95,8 @@ int jfs_umount(struct super_block *sb) =20 diFreeSpecial(ipbmap); sbi->ipbmap =3D NULL; + if (log) + LOG_UNLOCK(log); /* * Make sure all metadata makes it to disk before we mark --=20 You received this message because you are subscribed to the Google Groups "= syzkaller-bugs" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to syzkaller-bugs+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/syzkaller-b= ugs/079704e1-9af1-42a7-85a3-6b48be909525n%40googlegroups.com.