]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2024 09:47:49 +0000 (10:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2024 09:47:49 +0000 (10:47 +0100)
added patches:
ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch

queue-5.4/ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch b/queue-5.4/ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch
new file mode 100644 (file)
index 0000000..b376f9d
--- /dev/null
@@ -0,0 +1,43 @@
+From 914eec5e980171bc128e7e24f7a22aa1d803570e Mon Sep 17 00:00:00 2001
+From: Wengang Wang <wen.gang.wang@oracle.com>
+Date: Tue, 19 Nov 2024 09:45:00 -0800
+Subject: ocfs2: update seq_file index in ocfs2_dlm_seq_next
+
+From: Wengang Wang <wen.gang.wang@oracle.com>
+
+commit 914eec5e980171bc128e7e24f7a22aa1d803570e upstream.
+
+The following INFO level message was seen:
+
+seq_file: buggy .next function ocfs2_dlm_seq_next [ocfs2] did not
+update position index
+
+Fix:
+Update *pos (so m->index) to make seq_read_iter happy though the index its
+self makes no sense to ocfs2_dlm_seq_next.
+
+Link: https://lkml.kernel.org/r/20241119174500.9198-1-wen.gang.wang@oracle.com
+Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
+Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
+Cc: Mark Fasheh <mark@fasheh.com>
+Cc: Joel Becker <jlbec@evilplan.org>
+Cc: Junxiao Bi <junxiao.bi@oracle.com>
+Cc: Changwei Ge <gechangwei@live.cn>
+Cc: Jun Piao <piaojun@huawei.com>
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/ocfs2/dlmglue.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/fs/ocfs2/dlmglue.c
++++ b/fs/ocfs2/dlmglue.c
+@@ -3101,6 +3101,7 @@ static void *ocfs2_dlm_seq_next(struct s
+       struct ocfs2_lock_res *iter = v;
+       struct ocfs2_lock_res *dummy = &priv->p_iter_res;
++      (*pos)++;
+       spin_lock(&ocfs2_dlm_tracking_lock);
+       iter = ocfs2_dlm_next_res(iter, priv);
+       list_del_init(&dummy->l_debug_list);
index e272fb7a90de5f70d9805d03ae564d9d69675502..5ddf72011ba62975a1192c1d6c31e2673d42c178 100644 (file)
@@ -254,6 +254,7 @@ bpf-handle-bpf_exist-and-bpf_noexist-for-lpm-trie.patch
 bpf-fix-exact-match-conditions-in-trie_get_next_key.patch
 hid-wacom-fix-when-get-product-name-maybe-null-pointer.patch
 tracing-fix-cmp_entries_dup-to-respect-sort-comparison-rules.patch
+ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch
 scsi-qla2xxx-fix-nvme-and-npiv-connect-issue.patch
 scsi-qla2xxx-supported-speed-displayed-incorrectly-for-vports.patch
 scsi-qla2xxx-remove-check-req_sg_cnt-should-be-equal-to-rsp_sg_cnt.patch