Forwarded: [PATCH 1/1] jfs: try syzbot fix

syzbot
2026-04-23T13:26:16Z

Subject: [PATCH 1/1] jfs: try syzbot fix
Author: jakovnovak30@gmail.com

#syz test

---
fs/jfs/jfs_logmgr.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index 306165e61438..b319a4f542d8 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -1855,6 +1855,8 @@ static void lbmLogShutdown(struct jfs_log * log)

jfs_info("lbmLogShutdown: log:0x%p", log);

+ LOG_LOCK(log);
+
lbuf = log->lbuf_free;
while (lbuf) {
struct lbuf *next = lbuf->l_freelist;
@@ -1862,6 +1864,8 @@ static void lbmLogShutdown(struct jfs_log * log)
kfree(lbuf);
lbuf = next;
}
+
+ LOG_UNLOCK(log);
}

--
2.53.0