+++ /dev/null
-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
-
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
+++ /dev/null
-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
-
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
+++ /dev/null
-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
-
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
+++ /dev/null
-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
-
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