From: Greg Kroah-Hartman Date: Tue, 10 Dec 2024 09:47:57 +0000 (+0100) Subject: 5.10-stable patches X-Git-Tag: v6.6.65~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b531daa69888277d4b45326aa7f5d40cc1910a1d;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch --- diff --git a/queue-5.10/ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch b/queue-5.10/ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch new file mode 100644 index 00000000000..b376f9db646 --- /dev/null +++ b/queue-5.10/ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch @@ -0,0 +1,43 @@ +From 914eec5e980171bc128e7e24f7a22aa1d803570e Mon Sep 17 00:00:00 2001 +From: Wengang Wang +Date: Tue, 19 Nov 2024 09:45:00 -0800 +Subject: ocfs2: update seq_file index in ocfs2_dlm_seq_next + +From: Wengang Wang + +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 +Reviewed-by: Joseph Qi +Cc: Mark Fasheh +Cc: Joel Becker +Cc: Junxiao Bi +Cc: Changwei Ge +Cc: Jun Piao +Cc: +Signed-off-by: Andrew Morton +Signed-off-by: Greg Kroah-Hartman +--- + 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); diff --git a/queue-5.10/series b/queue-5.10/series index 56a6656346f..4700afd88cf 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -377,3 +377,4 @@ dma-buf-fix-dma_fence_array_signaled-v4.patch regmap-detach-regmap-from-dev-on-regmap_exit.patch mmc-sdhci-pci-add-dmi-quirk-for-missing-cd-gpio-on-vexia-edu-atla-10-tablet.patch mmc-core-further-prevent-card-detect-during-shutdown.patch +ocfs2-update-seq_file-index-in-ocfs2_dlm_seq_next.patch