aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rockchip
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2023-04-22 15:52:56 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-04-29 21:56:53 +0200
commit626b37d70aad163089598e33da2590f838f6dd8c (patch)
treeff8836e94df2137b0b8ada1d01909c888efbe0ae /target/linux/rockchip
parent28df7f7ff251d8684caa60f07ed0ba0c4a8e71f4 (diff)
downloadupstream-626b37d70aad163089598e33da2590f838f6dd8c.tar.gz
upstream-626b37d70aad163089598e33da2590f838f6dd8c.tar.bz2
upstream-626b37d70aad163089598e33da2590f838f6dd8c.zip
kernel: Activate CONFIG_HARDENED_USERCOPY for all targets
This activates CONFIG_HARDENED_USERCOPY for the remaining targets. This adds additional checks in the copy_from_user() and copy_to_user() functions. This was not activated for ARCHS38 before because of a bug in the Linux kernel 5.4 till 5.14, which as fixed and is described here: https://github.com/foss-for-synopsys-dwc-arc-processors/linux/issues/15 I do not know why this was deactivated for mt7629 and rockchip. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/rockchip')
-rw-r--r--target/linux/rockchip/armv8/config-5.101
-rw-r--r--target/linux/rockchip/armv8/config-5.151
2 files changed, 0 insertions, 2 deletions
diff --git a/target/linux/rockchip/armv8/config-5.10 b/target/linux/rockchip/armv8/config-5.10
index 1488da23a8..220b0ec198 100644
--- a/target/linux/rockchip/armv8/config-5.10
+++ b/target/linux/rockchip/armv8/config-5.10
@@ -249,7 +249,6 @@ CONFIG_GPIO_DWAPB=y
CONFIG_GPIO_GENERIC=y
CONFIG_GPIO_GENERIC_PLATFORM=y
CONFIG_HANDLE_DOMAIN_IRQ=y
-# CONFIG_HARDENED_USERCOPY is not set
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_HAS_DMA=y
CONFIG_HAS_IOMEM=y
diff --git a/target/linux/rockchip/armv8/config-5.15 b/target/linux/rockchip/armv8/config-5.15
index 5f94e0c9f2..d6377f905f 100644
--- a/target/linux/rockchip/armv8/config-5.15
+++ b/target/linux/rockchip/armv8/config-5.15
@@ -248,7 +248,6 @@ CONFIG_GPIO_GENERIC=y
CONFIG_GPIO_GENERIC_PLATFORM=y
CONFIG_GPIO_ROCKCHIP=y
CONFIG_HANDLE_DOMAIN_IRQ=y
-# CONFIG_HARDENED_USERCOPY is not set
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_HAS_DMA=y
CONFIG_HAS_IOMEM=y