openwrt/target/linux
Hauke Mehrtens f49d4aebe2 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4
CONFIG_FORTIFY_SOURCE=y is already set in the generic kernel
configuration, but it is not working for MIPS on kernel 5.4, support for
MIPS was only added with kernel 5.5, other architectures like aarch64
support FORTIFY_SOURCE already since some time.

This patch adds support for FORTIFY_SOURCE to MIPS with kernel 5.4,
kernel 5.10 already supports this and needs no changes.

This backports one patch from kernel 5.5 and one fix from 5.8 to make
fortify source also work on our kernel 5.4.

The changes are not compatible with the
306-mips_mem_functions_performance.patch patch which was also removed
with kernel 5.10, probably because of the same problems. I think it is
not needed anyway as the compiler should automatically optimize the
calls to memset(), memcpy() and memmove() even when not explicitly
telling the compiler to use the build in variant.

This increases the size of an uncompressed kernel by less than 1 KB.

Acked-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 9ffa2f8193)
2021-05-14 23:32:22 +02:00
..
apm821xx kernel: bump 5.4 to 5.4.108 2021-03-27 16:26:56 +01:00
arc770
archs38 archs38: Add CONFIG_HZ=100 2021-03-19 18:01:55 +01:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-14 23:32:22 +02:00
ath79 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-14 23:32:22 +02:00
bcm27xx kernel: bump 5.4 to 5.4.117 2021-05-07 23:30:57 +02:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-17 23:38:46 +01:00
bcm53xx bcm53xx: add pending TRX patch for "firmware" partition 2021-04-16 16:19:12 +02:00
bcm63xx kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-14 23:32:22 +02:00
bcm4908 kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
gemini gemini,layerscape,oxnas: don't disable option CONFIG_BPF_SYSCALL 2021-04-16 11:42:42 +01:00
generic kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-14 23:32:22 +02:00
imx6 kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
ipq40xx ipq40xx: fix hard_config partition size on MikroTik hAP-ac2 2021-05-14 22:52:40 +02:00
ipq806x kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
kirkwood kernel: fix parsing fixed subpartitions 2021-05-08 19:29:08 +02:00
lantiq kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-14 23:32:22 +02:00
layerscape kernel: bump 5.4 to 5.4.114 2021-05-02 14:32:27 +02:00
malta
mediatek kernel: bump 5.4 to 5.4.114 2021-05-02 14:32:27 +02:00
mpc85xx mpc85xx: p2020: fix cfi-nor detection 2021-03-01 21:49:55 +01:00
mvebu kernel: fix parsing fixed subpartitions 2021-05-08 19:29:08 +02:00
mxs
octeon kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
octeontx kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
omap kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
oxnas gemini,layerscape,oxnas: don't disable option CONFIG_BPF_SYSCALL 2021-04-16 11:42:42 +01:00
pistachio kernel: add pending mtd patches adding NVMEM support 2021-03-17 21:24:22 +01:00
ramips kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-14 23:32:22 +02:00
realtek realtek: allow writing to "u-boot-env2" 2021-04-18 12:06:57 +02:00
rockchip kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
sunxi sunxi: disable LPAE on cortexa8 2021-04-11 00:00:49 +02:00
tegra kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
uml
x86 kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile