kernel: Activate CONFIG_HARDENED_USERCOPY for all targets
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 22 Apr 2023 13:52:56 +0000 (15:52 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Apr 2023 19:56:53 +0000 (21:56 +0200)
commit626b37d70aad163089598e33da2590f838f6dd8c
treeff8836e94df2137b0b8ada1d01909c888efbe0ae
parent28df7f7ff251d8684caa60f07ed0ba0c4a8e71f4
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>
target/linux/archs38/config-5.15
target/linux/mediatek/mt7629/config-5.15
target/linux/rockchip/armv8/config-5.10
target/linux/rockchip/armv8/config-5.15