+++ /dev/null
-From 5496827f630a0e92e757181b39b66bd65b0daeb5 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 27 Sep 2022 15:01:46 -0400
-Subject: drm/amd/display: fix array-bounds error in
- dc_stream_remove_writeback()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Hamza Mahfooz <hamza.mahfooz@amd.com>
-
-[ Upstream commit 5d8c3e836fc224dfe633e41f7f2856753b39a905 ]
-
-Address the following error:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c: In function ‘dc_stream_remove_writeback’:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:527:55: error: array subscript [0, 0] is outside array bounds of ‘struct dc_writeback_info[1]’ [-Werror=array-bounds]
- 527 | stream->writeback_info[j] = stream->writeback_info[i];
- | ~~~~~~~~~~~~~~~~~~~~~~^~~
-In file included from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:1269,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/basics/dc_common.h:29,
- from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:27:
-./drivers/gpu/drm/amd/amdgpu/../display/dc/dc_stream.h:241:34: note: while referencing ‘writeback_info’
- 241 | struct dc_writeback_info writeback_info[MAX_DWB_PIPES];
- |
-
-Currently, we aren't checking to see if j remains within
-writeback_info[]'s bounds. So, add a check to make sure that we aren't
-overflowing the buffer.
-
-Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
-Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-index d48fd87d3b95..867b8b66293a 100644
---- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-+++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-@@ -491,7 +491,7 @@ bool dc_stream_remove_writeback(struct dc *dc,
- }
-
- /* remove writeback info for disabled writeback pipes from stream */
-- for (i = 0, j = 0; i < stream->num_wb_info; i++) {
-+ for (i = 0, j = 0; i < stream->num_wb_info && j < MAX_DWB_PIPES; i++) {
- if (stream->writeback_info[i].wb_enabled) {
- if (i != j)
- /* trim the array */
---
-2.35.1
-
mmc-sdhci-msm-add-compatible-string-check-for-sdm670.patch
drm-dp-don-t-rewrite-link-config-when-setting-phy-te.patch
drm-amd-display-remove-interface-for-periodic-interr.patch
-drm-amd-display-fix-array-bounds-error-in-dc_stream_.patch
arm64-dts-qcom-sdm845-narrow-llcc-address-space.patch
arm-dts-imx7d-sdb-config-the-max-pressure-for-tsc204.patch
arm-dts-imx6q-add-missing-properties-for-sram.patch
+++ /dev/null
-From 6d15b9c041d3eb54917da6b57815a2827730074c Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 27 Sep 2022 15:01:46 -0400
-Subject: drm/amd/display: fix array-bounds error in
- dc_stream_remove_writeback()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Hamza Mahfooz <hamza.mahfooz@amd.com>
-
-[ Upstream commit 5d8c3e836fc224dfe633e41f7f2856753b39a905 ]
-
-Address the following error:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c: In function ‘dc_stream_remove_writeback’:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:527:55: error: array subscript [0, 0] is outside array bounds of ‘struct dc_writeback_info[1]’ [-Werror=array-bounds]
- 527 | stream->writeback_info[j] = stream->writeback_info[i];
- | ~~~~~~~~~~~~~~~~~~~~~~^~~
-In file included from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:1269,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/basics/dc_common.h:29,
- from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:27:
-./drivers/gpu/drm/amd/amdgpu/../display/dc/dc_stream.h:241:34: note: while referencing ‘writeback_info’
- 241 | struct dc_writeback_info writeback_info[MAX_DWB_PIPES];
- |
-
-Currently, we aren't checking to see if j remains within
-writeback_info[]'s bounds. So, add a check to make sure that we aren't
-overflowing the buffer.
-
-Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
-Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-index f0f54f4d3d9b..1f1f3d3c8884 100644
---- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-+++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-@@ -519,7 +519,7 @@ bool dc_stream_remove_writeback(struct dc *dc,
- }
-
- /* remove writeback info for disabled writeback pipes from stream */
-- for (i = 0, j = 0; i < stream->num_wb_info; i++) {
-+ for (i = 0, j = 0; i < stream->num_wb_info && j < MAX_DWB_PIPES; i++) {
- if (stream->writeback_info[i].wb_enabled) {
- if (i != j)
- /* trim the array */
---
-2.35.1
-
mmc-sdhci-msm-add-compatible-string-check-for-sdm670.patch
drm-dp-don-t-rewrite-link-config-when-setting-phy-te.patch
drm-amd-display-remove-interface-for-periodic-interr.patch
-drm-amd-display-fix-array-bounds-error-in-dc_stream_.patch
arm64-dts-qcom-sdm845-narrow-llcc-address-space.patch
arm-dts-imx7d-sdb-config-the-max-pressure-for-tsc204.patch
arm64-dts-qcom-sc7280-idp-correct-adc-channel-node-n.patch
+++ /dev/null
-From 0ccf890efd910a6bc77d06b49198e789a09733d7 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 27 Sep 2022 15:01:46 -0400
-Subject: drm/amd/display: fix array-bounds error in
- dc_stream_remove_writeback()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Hamza Mahfooz <hamza.mahfooz@amd.com>
-
-[ Upstream commit 5d8c3e836fc224dfe633e41f7f2856753b39a905 ]
-
-Address the following error:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c: In function ‘dc_stream_remove_writeback’:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:527:55: error: array subscript [0, 0] is outside array bounds of ‘struct dc_writeback_info[1]’ [-Werror=array-bounds]
- 527 | stream->writeback_info[j] = stream->writeback_info[i];
- | ~~~~~~~~~~~~~~~~~~~~~~^~~
-In file included from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:1269,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/basics/dc_common.h:29,
- from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:27:
-./drivers/gpu/drm/amd/amdgpu/../display/dc/dc_stream.h:241:34: note: while referencing ‘writeback_info’
- 241 | struct dc_writeback_info writeback_info[MAX_DWB_PIPES];
- |
-
-Currently, we aren't checking to see if j remains within
-writeback_info[]'s bounds. So, add a check to make sure that we aren't
-overflowing the buffer.
-
-Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
-Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-index de8b214132a2..5e460b16d650 100644
---- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-+++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-@@ -516,7 +516,7 @@ bool dc_stream_remove_writeback(struct dc *dc,
- }
-
- /* remove writeback info for disabled writeback pipes from stream */
-- for (i = 0, j = 0; i < stream->num_wb_info; i++) {
-+ for (i = 0, j = 0; i < stream->num_wb_info && j < MAX_DWB_PIPES; i++) {
- if (stream->writeback_info[i].wb_enabled) {
- if (i != j)
- /* trim the array */
---
-2.35.1
-
drm-dp-don-t-rewrite-link-config-when-setting-phy-te.patch
drm-amd-display-remove-interface-for-periodic-interr.patch
drm-amd-display-polling-vid-stream-status-in-hpo-dp-.patch
-drm-amd-display-fix-array-bounds-error-in-dc_stream_.patch
drm-amdkfd-fix-ubsan-shift-out-of-bounds-warning.patch
arm64-dts-qcom-sdm845-narrow-llcc-address-space.patch
arm-dts-imx6-delete-interrupts-property-if-interrupt.patch
+++ /dev/null
-From 7003c583e1d247137329b96240c27451d5ef3629 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 27 Sep 2022 15:01:46 -0400
-Subject: drm/amd/display: fix array-bounds error in
- dc_stream_remove_writeback()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Hamza Mahfooz <hamza.mahfooz@amd.com>
-
-[ Upstream commit 5d8c3e836fc224dfe633e41f7f2856753b39a905 ]
-
-Address the following error:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c: In function ‘dc_stream_remove_writeback’:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:527:55: error: array subscript [0, 0] is outside array bounds of ‘struct dc_writeback_info[1]’ [-Werror=array-bounds]
- 527 | stream->writeback_info[j] = stream->writeback_info[i];
- | ~~~~~~~~~~~~~~~~~~~~~~^~~
-In file included from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:1269,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/basics/dc_common.h:29,
- from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:27:
-./drivers/gpu/drm/amd/amdgpu/../display/dc/dc_stream.h:241:34: note: while referencing ‘writeback_info’
- 241 | struct dc_writeback_info writeback_info[MAX_DWB_PIPES];
- |
-
-Currently, we aren't checking to see if j remains within
-writeback_info[]'s bounds. So, add a check to make sure that we aren't
-overflowing the buffer.
-
-Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
-Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-index bb09243758fe..95d36cb79e28 100644
---- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-+++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-@@ -458,7 +458,7 @@ bool dc_stream_remove_writeback(struct dc *dc,
- }
-
- /* remove writeback info for disabled writeback pipes from stream */
-- for (i = 0, j = 0; i < stream->num_wb_info; i++) {
-+ for (i = 0, j = 0; i < stream->num_wb_info && j < MAX_DWB_PIPES; i++) {
- if (stream->writeback_info[i].wb_enabled) {
- if (i != j)
- /* trim the array */
---
-2.35.1
-
drm-amdgpu-fix-initial-connector-audio-value.patch
drm-exynos-fix-return-type-for-mixer_mode_valid-and-.patch
mmc-sdhci-msm-add-compatible-string-check-for-sdm670.patch
-drm-amd-display-fix-array-bounds-error-in-dc_stream_.patch
arm64-dts-qcom-sdm845-narrow-llcc-address-space.patch
arm-dts-imx7d-sdb-config-the-max-pressure-for-tsc204.patch
arm-dts-imx6q-add-missing-properties-for-sram.patch
+++ /dev/null
-From 276170299bcd3f6cbea11dcb0bd6a576a1ac7a83 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Tue, 27 Sep 2022 15:01:46 -0400
-Subject: drm/amd/display: fix array-bounds error in
- dc_stream_remove_writeback()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Hamza Mahfooz <hamza.mahfooz@amd.com>
-
-[ Upstream commit 5d8c3e836fc224dfe633e41f7f2856753b39a905 ]
-
-Address the following error:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c: In function ‘dc_stream_remove_writeback’:
-drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:527:55: error: array subscript [0, 0] is outside array bounds of ‘struct dc_writeback_info[1]’ [-Werror=array-bounds]
- 527 | stream->writeback_info[j] = stream->writeback_info[i];
- | ~~~~~~~~~~~~~~~~~~~~~~^~~
-In file included from ./drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:1269,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:29,
- from ./drivers/gpu/drm/amd/amdgpu/../display/dc/basics/dc_common.h:29,
- from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:27:
-./drivers/gpu/drm/amd/amdgpu/../display/dc/dc_stream.h:241:34: note: while referencing ‘writeback_info’
- 241 | struct dc_writeback_info writeback_info[MAX_DWB_PIPES];
- |
-
-Currently, we aren't checking to see if j remains within
-writeback_info[]'s bounds. So, add a check to make sure that we aren't
-overflowing the buffer.
-
-Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
-Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-index 0c85ab5933b4..f0a8bd924f43 100644
---- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-+++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c
-@@ -519,7 +519,7 @@ bool dc_stream_remove_writeback(struct dc *dc,
- }
-
- /* remove writeback info for disabled writeback pipes from stream */
-- for (i = 0, j = 0; i < stream->num_wb_info; i++) {
-+ for (i = 0, j = 0; i < stream->num_wb_info && j < MAX_DWB_PIPES; i++) {
- if (stream->writeback_info[i].wb_enabled) {
- if (i != j)
- /* trim the array */
---
-2.35.1
-
drm-dp-don-t-rewrite-link-config-when-setting-phy-te.patch
drm-amd-display-remove-interface-for-periodic-interr.patch
drm-amd-display-polling-vid-stream-status-in-hpo-dp-.patch
-drm-amd-display-fix-array-bounds-error-in-dc_stream_.patch
drm-amdkfd-fix-ubsan-shift-out-of-bounds-warning.patch
arm-dts-imx6-delete-interrupts-property-if-interrupt.patch
arm-dts-imx7d-sdb-config-the-max-pressure-for-tsc204.patch