1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 22:18:16 +02:00
openwrt/target/linux/generic/hack-5.4
Hauke Mehrtens 9ffa2f8193 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>
2021-04-30 23:51:19 +02:00
..
204-module_strip.patch kernel: bump 5.4 to 5.4.111 2021-04-17 21:50:08 +02:00
210-darwin_scripts_include.patch
211-darwin-uuid-typedef-clash.patch
212-tools_portability.patch kernel: fix portability issue with perf on linux 5.4 2020-06-04 21:52:57 +02:00
214-spidev_h_portability.patch
220-gc_sections.patch
221-module_exports.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-04 22:06:53 +01:00
230-openwrt_lzma_options.patch kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
249-udp-tunnel-selection.patch kernel/hack-5.4: make UDP tunneling user-selectable 2021-01-01 19:55:59 +01:00
250-netfilter_depends.patch kernel: drop the conntrack rtcache patch 2021-04-22 09:08:56 +01:00
251-sound_kconfig.patch kernel: bump 5.4 to 5.4.69 2020-10-02 22:02:26 +02:00
259-regmap_dynamic.patch kernel: bump 5.4 to 5.4.69 2020-10-02 22:02:26 +02:00
260-crypto_test_dependencies.patch kernel: 5.4: fix patches after wireguard backport 2021-02-26 20:41:01 +01:00
260-lib-arc4-unhide.patch kernel: 5.4: fix patches after wireguard backport 2021-02-26 20:41:01 +01:00
280-rfkill-stubs.patch
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch
301-mips_image_cmdline_hack.patch kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
321-powerpc_crtsavres_prereq.patch
400-block-fit-partition-parser.patch kernel: fix FIT partition parser compatibility issues 2021-03-31 22:54:12 +01:00
400-unlock_mx25l6406e_with_4bit_block_protect.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-04 22:06:53 +01:00
531-debloat_lzma.patch kernel: remove a bunch of trailing whitespaces 2020-05-25 21:11:47 +02:00
550-loop-Report-EOPNOTSUPP-properly.patch kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
640-bridge-only-accept-EAP-locally.patch
645-netfilter-connmark-introduce-set-dscpmark.patch
647-netfilter-flow-acct.patch kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
650-netfilter-add-xt_OFFLOAD-target.patch kernel: drop the conntrack rtcache patch 2021-04-22 09:08:56 +01:00
651-wireless_mesh_header.patch
660-fq_codel_defaults.patch
661-use_fq_codel_by_default.patch kernel: bump 5.4 to 5.4.93 2021-01-29 14:22:09 +01:00
662-remove_pfifo_fast.patch kernel: Update kernel 5.4 to version 5.4.50 2020-07-04 21:12:42 +02:00
700-swconfig_switch_drivers.patch kernel: remove mvsw61xx swconfig driver 2020-11-16 13:55:05 +01:00
703-add_vsc8504_support.patch kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
710-net-dsa-mv88e6xxx-default-VID-1.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
721-phy_packets.patch kernel: bump 5.4 to 5.4.110 2021-04-10 20:27:40 +02:00
773-bgmac-add-srab-switch.patch
901-debloat_sock_diag.patch kernel: bump 5.4 to 5.4.74 2020-11-02 16:33:25 +01:00
902-debloat_proc.patch kernel: bump 5.4 to 5.4.112 2021-04-17 21:50:08 +02:00
904-debloat_dma_buf.patch kernel: bump 5.4 to 5.4.105 2021-03-13 17:06:35 +01:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch
921-always-create-console-node-in-initramfs.patch
991-platform-x86-pcengines-apuv2-revert-simswitch.patch target/hack-5.4: platform/x86/pcengines: revert led simswich compromise 2020-06-26 20:54:53 +02:00