]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Drop net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
authorSasha Levin <sashal@kernel.org>
Tue, 5 Nov 2024 10:20:57 +0000 (05:20 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 5 Nov 2024 10:20:57 +0000 (05:20 -0500)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-5.15/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch [deleted file]
queue-5.15/series
queue-6.1/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch [deleted file]
queue-6.1/series
queue-6.11/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch [deleted file]
queue-6.11/series
queue-6.6/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch [deleted file]
queue-6.6/series

diff --git a/queue-5.15/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch b/queue-5.15/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
deleted file mode 100644 (file)
index c04c26e..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From e3025a942d034818d78d55d1ef1f86fe262e02cb Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 25 Oct 2024 17:29:34 +0800
-Subject: net: hns3: Resolved the issue that the debugfs query result is
- inconsistent.
-
-From: Hao Lan <lanhao@huawei.com>
-
-[ Upstream commit 2758f18a83ef283d50c0566d3f672621cc658a1a ]
-
-This patch modifies the implementation of debugfs:
-When the user process stops unexpectedly, not all data of the file system
-is read. In this case, the save_buf pointer is not released. When the user
-process is called next time, save_buf is used to copy the cached data
-to the user space. As a result, the queried data is inconsistent. To solve
-this problem, determine whether the function is invoked for the first time
-based on the value of *ppos. If *ppos is 0, obtain the actual data.
-
-Fixes: 5e69ea7ee2a6 ("net: hns3: refactor the debugfs process")
-Signed-off-by: Hao Lan <lanhao@huawei.com>
-Signed-off-by: Guangwei Zhang <zhangwangwei6@huawei.com>
-Signed-off-by: Jijie Shao <shaojijie@huawei.com>
-Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-index bd801e35d51ea..b4580c02ff539 100644
---- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-@@ -1043,8 +1043,10 @@ static ssize_t hns3_dbg_read(struct file *filp, char __user *buffer,
-               /* save the buffer addr until the last read operation */
-               *save_buf = read_buf;
-+      }
--              /* get data ready for the first time to read */
-+      /* get data ready for the first time to read */
-+      if (!*ppos) {
-               ret = hns3_dbg_read_cmd(dbg_data, hns3_dbg_cmd[index].cmd,
-                                       read_buf, hns3_dbg_cmd[index].buf_len);
-               if (ret)
--- 
-2.43.0
-
index f6db221ce75fada6b1791774828dbeb90e4db17a..1bcddb433875ffe69419927fca5df9b8cb900d70 100644 (file)
@@ -25,7 +25,6 @@ bpf-fix-out-of-bounds-write-in-trie_get_next_key.patch
 netfilter-fix-use-after-free-in-get_info.patch
 net-skip-offload-for-netif_f_ipv6_csum-if-ipv6-heade.patch
 netfilter-nft_payload-sanitize-offset-and-length-bef.patch
-net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
 firmware-arm_sdei-fix-the-input-parameter-of-cpuhp_r.patch
 acpi-cppc-make-rmw_lock-a-raw_spin_lock.patch
 fs-ntfs3-check-if-more-than-chunk-size-bytes-are-wri.patch
diff --git a/queue-6.1/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch b/queue-6.1/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
deleted file mode 100644 (file)
index 2b325f7..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From 673b67fbd8aaa0f337ccc2064f70cbec1a78893d Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 25 Oct 2024 17:29:34 +0800
-Subject: net: hns3: Resolved the issue that the debugfs query result is
- inconsistent.
-
-From: Hao Lan <lanhao@huawei.com>
-
-[ Upstream commit 2758f18a83ef283d50c0566d3f672621cc658a1a ]
-
-This patch modifies the implementation of debugfs:
-When the user process stops unexpectedly, not all data of the file system
-is read. In this case, the save_buf pointer is not released. When the user
-process is called next time, save_buf is used to copy the cached data
-to the user space. As a result, the queried data is inconsistent. To solve
-this problem, determine whether the function is invoked for the first time
-based on the value of *ppos. If *ppos is 0, obtain the actual data.
-
-Fixes: 5e69ea7ee2a6 ("net: hns3: refactor the debugfs process")
-Signed-off-by: Hao Lan <lanhao@huawei.com>
-Signed-off-by: Guangwei Zhang <zhangwangwei6@huawei.com>
-Signed-off-by: Jijie Shao <shaojijie@huawei.com>
-Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-index d2603cfc122c8..87720a74341b1 100644
---- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-@@ -1279,8 +1279,10 @@ static ssize_t hns3_dbg_read(struct file *filp, char __user *buffer,
-               /* save the buffer addr until the last read operation */
-               *save_buf = read_buf;
-+      }
--              /* get data ready for the first time to read */
-+      /* get data ready for the first time to read */
-+      if (!*ppos) {
-               ret = hns3_dbg_read_cmd(dbg_data, hns3_dbg_cmd[index].cmd,
-                                       read_buf, hns3_dbg_cmd[index].buf_len);
-               if (ret)
--- 
-2.43.0
-
index 0b5d288bc7614fcf93ebf14fb55638f9f92fb793..99503907fdaede26c92571fa11086d11f9d36905 100644 (file)
@@ -35,7 +35,6 @@ mlxsw-spectrum_router-add-support-for-double-entry-r.patch
 mlxsw-spectrum_ipip-rename-spectrum-2-ip6gre-operati.patch
 mlxsw-spectrum_ipip-fix-memory-leak-when-changing-re.patch
 netfilter-nft_payload-sanitize-offset-and-length-bef.patch
-net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
 iomap-convert-iomap_unshare_iter-to-use-large-folios.patch
 iomap-improve-shared-block-detection-in-iomap_unshar.patch
 iomap-don-t-bother-unsharing-delalloc-extents.patch
diff --git a/queue-6.11/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch b/queue-6.11/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
deleted file mode 100644 (file)
index 44e9b19..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From 7e07122807d23ae2d5e974a19b84949540a37002 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 25 Oct 2024 17:29:34 +0800
-Subject: net: hns3: Resolved the issue that the debugfs query result is
- inconsistent.
-
-From: Hao Lan <lanhao@huawei.com>
-
-[ Upstream commit 2758f18a83ef283d50c0566d3f672621cc658a1a ]
-
-This patch modifies the implementation of debugfs:
-When the user process stops unexpectedly, not all data of the file system
-is read. In this case, the save_buf pointer is not released. When the user
-process is called next time, save_buf is used to copy the cached data
-to the user space. As a result, the queried data is inconsistent. To solve
-this problem, determine whether the function is invoked for the first time
-based on the value of *ppos. If *ppos is 0, obtain the actual data.
-
-Fixes: 5e69ea7ee2a6 ("net: hns3: refactor the debugfs process")
-Signed-off-by: Hao Lan <lanhao@huawei.com>
-Signed-off-by: Guangwei Zhang <zhangwangwei6@huawei.com>
-Signed-off-by: Jijie Shao <shaojijie@huawei.com>
-Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-index 807eb3bbb11c0..841e5af7b2bee 100644
---- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-@@ -1293,8 +1293,10 @@ static ssize_t hns3_dbg_read(struct file *filp, char __user *buffer,
-               /* save the buffer addr until the last read operation */
-               *save_buf = read_buf;
-+      }
--              /* get data ready for the first time to read */
-+      /* get data ready for the first time to read */
-+      if (!*ppos) {
-               ret = hns3_dbg_read_cmd(dbg_data, hns3_dbg_cmd[index].cmd,
-                                       read_buf, hns3_dbg_cmd[index].buf_len);
-               if (ret)
--- 
-2.43.0
-
index 0644855ba25a53d9acc622975de9c5b805635d91..fbea815a14de34de628fbe35b866f8dbc4be3169 100644 (file)
@@ -53,7 +53,6 @@ mlxsw-pci-sync-rx-buffers-for-device.patch
 mlxsw-spectrum_ipip-fix-memory-leak-when-changing-re.patch
 net-ethernet-mtk_wed-fix-path-of-mt7988-wo-firmware.patch
 netfilter-nft_payload-sanitize-offset-and-length-bef.patch
-net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
 bpf-test_run-fix-live_frame-frame-update-after-a-pag.patch
 iomap-improve-shared-block-detection-in-iomap_unshar.patch
 iomap-don-t-bother-unsharing-delalloc-extents.patch
diff --git a/queue-6.6/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch b/queue-6.6/net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
deleted file mode 100644 (file)
index 1f52b5c..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From 95fc555c27d4cd6ab3cf77c3bd730dcf3adef45a Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 25 Oct 2024 17:29:34 +0800
-Subject: net: hns3: Resolved the issue that the debugfs query result is
- inconsistent.
-
-From: Hao Lan <lanhao@huawei.com>
-
-[ Upstream commit 2758f18a83ef283d50c0566d3f672621cc658a1a ]
-
-This patch modifies the implementation of debugfs:
-When the user process stops unexpectedly, not all data of the file system
-is read. In this case, the save_buf pointer is not released. When the user
-process is called next time, save_buf is used to copy the cached data
-to the user space. As a result, the queried data is inconsistent. To solve
-this problem, determine whether the function is invoked for the first time
-based on the value of *ppos. If *ppos is 0, obtain the actual data.
-
-Fixes: 5e69ea7ee2a6 ("net: hns3: refactor the debugfs process")
-Signed-off-by: Hao Lan <lanhao@huawei.com>
-Signed-off-by: Guangwei Zhang <zhangwangwei6@huawei.com>
-Signed-off-by: Jijie Shao <shaojijie@huawei.com>
-Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-index 4f385a18d288e..9dbb8e8d2a23e 100644
---- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
-@@ -1288,8 +1288,10 @@ static ssize_t hns3_dbg_read(struct file *filp, char __user *buffer,
-               /* save the buffer addr until the last read operation */
-               *save_buf = read_buf;
-+      }
--              /* get data ready for the first time to read */
-+      /* get data ready for the first time to read */
-+      if (!*ppos) {
-               ret = hns3_dbg_read_cmd(dbg_data, hns3_dbg_cmd[index].cmd,
-                                       read_buf, hns3_dbg_cmd[index].buf_len);
-               if (ret)
--- 
-2.43.0
-
index 440e98c6c14c0efb99bc3373ddfc3d1ee3967c6f..3eb0e8a4f6853d7a2bdd4acc8c3c246d94d5a756 100644 (file)
@@ -37,7 +37,6 @@ net-skip-offload-for-netif_f_ipv6_csum-if-ipv6-heade.patch
 mlxsw-spectrum_ptp-add-missing-verification-before-p.patch
 mlxsw-spectrum_ipip-fix-memory-leak-when-changing-re.patch
 netfilter-nft_payload-sanitize-offset-and-length-bef.patch
-net-hns3-resolved-the-issue-that-the-debugfs-query-r.patch
 bpf-test_run-fix-live_frame-frame-update-after-a-pag.patch
 iomap-improve-shared-block-detection-in-iomap_unshar.patch
 iomap-don-t-bother-unsharing-delalloc-extents.patch