openwrt/target/linux/generic/pending-5.4
Hauke Mehrtens 72099b1208 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>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:08:02 +00:00
..
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch kernel: bump 5.4 to 5.4.31 2020-04-09 00:12:46 +02:00
103-MIPS-select-CPU_MIPS64-for-remaining-MIPS64-CPUs.patch kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-09-01 08:08:02 +00:00
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch kernel: bump 5.4 to 5.4.86 2021-09-01 08:07:26 +00:00
130-add-linux-spidev-compatible-si3210.patch kernel: bump 5.4 to 5.4.59 2021-09-01 08:06:52 +00:00
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch kernel: bump 5.4 to 5.4.61 2021-09-01 08:06:54 +00:00
141-jffs2-add-RENAME_EXCHANGE-support.patch kernel: bump 5.4 to 5.4.61 2021-09-01 08:06:54 +00:00
150-bridge_allow_receiption_on_disabled_port.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
180-net-phy-at803x-add-support-for-AT8032.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
190-rtc-rs5c372-support_alarms_up_to_1_week.patch kernel: bump 5.4 to 5.4.86 2021-09-01 08:07:26 +00:00
191-rtc-rs5c372-let_the_alarm_to_be_used_as_wakeup_source.patch kernel: bump 5.4 to 5.4.86 2021-09-01 08:07:26 +00:00
201-extra_optimization.patch kernel: bump 5.4 to 5.4.63 2021-09-01 08:06:57 +00:00
203-kallsyms_uncompressed.patch kernel: bump 5.4 to 5.4.111 2021-09-01 08:08:00 +00:00
205-backtrace_module_info.patch kernel: bump 5.4 to 5.4.43 2020-06-02 17:46:51 +02:00
240-remove-unsane-filenames-from-deps_initramfs-list.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
261-enable_wilink_platform_without_drivers.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
270-platform-mikrotik-build-bits.patch generic: mikrotik platform build bits 2020-05-08 15:17:17 +02:00
300-mips_expose_boot_raw.patch kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-09-01 08:08:02 +00:00
302-mips_no_branch_likely.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
305-mips_module_reloc.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
307-mips_highmem_offset.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
308-mips32r2_tune.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
310-arm_module_unresolved_weak_sym.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
311-MIPS-zboot-put-appended-dtb-into-a-section.patch kernel: mips: zboot: put appended dtb into a section 2021-09-01 08:07:07 +00:00
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch kernel: generic: 5.4: fix mips command line parameter patch 2020-04-09 00:12:46 +02:00
332-arc-add-OWRTDTB-section.patch kernel: bump 5.4 to 5.4.45 2020-06-09 16:59:33 +02:00
333-arc-enable-unaligned-access-in-kernel-mode.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
342-powerpc-Enable-kernel-XZ-compression-option-on-PPC_8.patch kernel: bump 5.4 to 5.4.75 2021-09-01 08:07:10 +00:00
400-mtd-add-rootfs-split-support.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
401-mtd-add-support-for-different-partition-parser-types.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
403-mtd-hook-mtdsplit-to-Kbuild.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
404-mtd-add-more-helper-functions.patch kernel: rename mtdpart_get_master to mtd_get_master 2021-09-01 08:07:11 +00:00
411-mtd-partial_eraseblock_write.patch kernel: fix mtd partition erase < parent_erasesize writes 2021-09-01 08:07:00 +00:00
412-mtd-partial_eraseblock_unlock.patch kernel: fix mtd partition erase < parent_erasesize writes 2021-09-01 08:07:00 +00:00
419-mtd-redboot-add-of_match_table-with-DT-binding.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
420-mtd-redboot_space.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
430-mtd-add-myloader-partition-parser.patch kernel: add the latest mtd patch extending ofpart parser 2021-09-01 08:07:44 +00:00
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
435-mtd-add-routerbootpart-parser-config.patch kernel: backport 5.13 mtd partitioning changes 2021-09-01 08:07:53 +00:00
447-mtd-spinand-gigadevice-Add-support-for-GD5F4GQ4xC.patch kernel: Add GigaDevice GD5F4GQ4xC SPI NAND flash 2021-09-01 08:06:52 +00:00
450-mtd-spi-nor-allow-NOR-driver-to-write-fewer-bytes-th.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch kernel: Move an upstreamed patch under backports 2021-09-01 08:08:02 +00:00
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch kernel: Move an upstreamed patch under backports 2021-09-01 08:08:02 +00:00
465-m25p80-mx-disable-software-protection.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
466-Revert-mtd-spi-nor-fix-Spansion-regressions-aliased-.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
476-mtd-spi-nor-add-eon-en25q128.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
479-mtd-spi-nor-add-xtx-xt25f128b.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
480-mtd-set-rootfs-to-be-root-dev.patch kernel: add pending mtd patches adding NVMEM support 2021-09-01 08:07:47 +00:00
481-mtd-spi-nor-rework-broken-flash-reset-support.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
482-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
482-mtd-spi-nor-fix-4-byte-opcode-support-for-w25q256.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-09-01 08:07:45 +00:00
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch kernel: bump 5.4 to 5.4.100 2021-09-01 08:07:41 +00:00
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
494-mtd-ubi-add-EOF-marker-support.patch kernel: bump 5.4 to 5.4.69 2021-09-01 08:07:03 +00:00
495-mtd-core-add-get_mtd_device_by_node.patch kernel: add pending mtd patches adding NVMEM support 2021-09-01 08:07:47 +00:00
496-dt-bindings-add-bindings-for-mtd-concat-devices.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch kernel: fix include of myloader.o since kernel 5.4 2020-04-24 17:50:12 +02:00
498-mtd-mtdconcat-select-readwrite-function.patch kernel: generic: 5.4: fix mtd concat panic on read/write functions 2020-03-29 16:23:57 +02:00
530-jffs2_make_lzma_available.patch kernel: 5.4: fix patches after wireguard backport 2021-09-01 08:07:42 +00:00
532-jffs2_eofdetect.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
600-netfilter_conntrack_flush.patch kernel: bump 5.4 to 5.4.114 2021-09-01 08:08:02 +00:00
610-netfilter_match_bypass_default_checks.patch kernel: bump 5.4 to 5.4.109 2021-09-01 08:07:54 +00:00
611-netfilter_match_bypass_default_table.patch kernel: bump 5.4 to 5.4.109 2021-09-01 08:07:54 +00:00
612-netfilter_match_reduce_memory_access.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
613-netfilter_optional_tcp_window_check.patch kernel: bump 5.4 to 5.4.114 2021-09-01 08:08:02 +00:00
620-net_sched-codel-do-not-defer-queue-length-update.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
630-packet_socket_type.patch kernel: bump 5.4 to 5.4.64 2021-09-01 08:06:58 +00:00
640-netfilter-nf_flow_table-add-hardware-offload-support.patch kernel: drop the conntrack rtcache patch 2021-09-01 08:08:01 +00:00
641-netfilter-nf_flow_table-support-hw-offload-through-v.patch generic: fix flow table hw offload 2020-04-06 07:07:42 +02:00
642-net-8021q-support-hardware-flow-table-offload.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
643-net-bridge-support-hardware-flow-table-offload.patch kernel: bump 5.4 to 5.4.85 2021-09-01 08:07:23 +00:00
644-net-pppoe-support-hardware-flow-table-offload.patch kernel: bump 5.4 to 5.4.42 2020-05-20 15:26:22 +02:00
645-netfilter-nf_flow_table-rework-hardware-offload-time.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
646-netfilter-nf_flow_table-rework-private-driver-data.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
647-net-dsa-support-hardware-flow-table-offload.patch mediatek: fix hardware flow offload 2021-09-01 08:07:00 +00:00
655-increase_skb_pad.patch kernel: bump 5.4 to 5.4.92 2021-09-01 08:07:31 +00:00
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: bump 5.4 to 5.4.63 2021-09-01 08:06:57 +00:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: bump 5.4 to 5.4.112 2021-09-01 08:08:00 +00:00
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: bump 5.4 to 5.4.114 2021-09-01 08:08:02 +00:00
681-NET-add-of_get_mac_address_mtd.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
690-net-add-support-for-threaded-NAPI-polling.patch kernel: bump 5.4 to 5.4.114 2021-09-01 08:08:02 +00:00
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: Update kernel 5.4 to version 5.4.50 2020-07-04 21:12:42 +02:00
735-net-phy-at803x-fix-at8033-sgmii-mode.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
736-net-phy-at803x-add-at8031-features.patch ath79: fix link mode support list on UniFi AC 2021-09-01 08:07:59 +00:00
739-net-avoid-tx-fault-with-Nokia-GPON-module.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
740-net-sfp-remove-incomplete-100BASE-FX-and-100BASE-LX-.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
741-net-sfp-derive-interface-mode-from-ethtool-link-mode.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
742-net-sfp-add-more-extended-compliance-codes.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
743-net-sfp-add-module-start-stop-upstream-notifications.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
744-net-sfp-move-phy_start-phy_stop-to-phylink.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
745-net-mdio-i2c-add-support-for-Clause-45-accesses.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
746-net-phylink-re-split-__phylink_connect_phy.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
747-net-phylink-support-Clause-45-PHYs-on-SFP-modules.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
748-net-phylink-split-link_an_mode-configured-and-curren.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
749-net-phylink-split-phylink_sfp_module_insert.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
750-net-phylink-delay-MAC-configuration-for-copper-SFP-m.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
751-net-phylink-make-Broadcom-BCM84881-based-SFPs-work.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
752-net-phy-add-Broadcom-BCM84881-PHY-driver.patch kernel: bump 5.4 to 5.4.71 2021-09-01 08:07:05 +00:00
753-net-sfp-add-support-for-Clause-45-PHYs.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
754-net-sfp-fix-unbind.patch kernel: bump 5.4 to 5.4.77 2021-09-01 08:07:12 +00:00
755-net-sfp-fix-hwmon.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
756-net-sfp-use-a-definition-for-the-fault-recovery-atte.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
757-net-sfp-rename-sm_retries.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
758-net-sfp-error-handling-for-phy-probe.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
759-net-sfp-re-attempt-probing-for-phy.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
760-net-dsa-mv88e6xxx-fix-vlan-setup.patch kernel: bump 5.4 to 5.4.97 2021-09-01 08:07:34 +00:00
762-net-bridge-switchdev-Refactor-br_switchdev_fdb_notif.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-09-01 08:07:40 +00:00
763-net-bridge-switchdev-Include-local-flag-in-FDB-notif.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-09-01 08:07:40 +00:00
764-net-bridge-switchdev-Send-FDB-notifications-for-host.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-09-01 08:07:40 +00:00
765-net-dsa-Include-local-addresses-in-assisted-CPU-port.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-09-01 08:07:40 +00:00
766-net-dsa-Include-bridge-addresses-in-assisted-CPU-por.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-09-01 08:07:40 +00:00
767-net-dsa-Sync-static-FDB-entries-on-foreign-interface.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-09-01 08:07:40 +00:00
768-net-dsa-mv88e6xxx-Request-assisted-learning-on-CPU-port.patch kernel: bump 5.4 to 5.4.114 2021-09-01 08:08:02 +00:00
770-00-net-ethernet-mtk_eth_soc-use-napi_consume_skb.patch mediatek/ramips: unify ethernet driver fixes and add performance optimizations 2021-09-01 08:06:56 +00:00
770-01-net-ethernet-mtk_eth_soc-significantly-reduce-mdio-b.patch mediatek/ramips: unify ethernet driver fixes and add performance optimizations 2021-09-01 08:06:56 +00:00
770-02-net-ethernet-mtk_eth_soc-fix-rx-vlan-offload.patch ramips/mediatek: improve GRO performance, fix PPE packet parsing 2021-09-01 08:06:59 +00:00
770-03-net-ethernet-mtk_eth_soc-fix-unnecessary-tx-queue-st.patch mediatek/ramips: unify ethernet driver fixes and add performance optimizations 2021-09-01 08:06:56 +00:00
770-04-net-ethernet-mtk_eth_soc-use-larger-burst-size-for-q.patch ramips/mediatek: improve GRO performance, fix PPE packet parsing 2021-09-01 08:06:59 +00:00
770-05-net-ethernet-mtk_eth_soc-increase-DMA-ring-sizes.patch mediatek/ramips: unify ethernet driver fixes and add performance optimizations 2021-09-01 08:06:56 +00:00
770-06-net-ethernet-mtk_eth_soc-implement-dynamic-interrupt.patch ramips/mediatek: improve GRO performance, fix PPE packet parsing 2021-09-01 08:06:59 +00:00
770-08-net-ethernet-mtk_eth_soc-cache-hardware-pointer-of-l.patch ramips/mediatek: improve GRO performance, fix PPE packet parsing 2021-09-01 08:06:59 +00:00
770-09-net-ethernet-mtk_eth_soc-only-read-the-full-rx-descr.patch mediatek/ramips: unify ethernet driver fixes and add performance optimizations 2021-09-01 08:06:56 +00:00
770-10-net-ethernet-mtk_eth_soc-unmap-rx-data-before-callin.patch mediatek/ramips: unify ethernet driver fixes and add performance optimizations 2021-09-01 08:06:56 +00:00
770-11-net-ethernet-mtk_eth_soc-avoid-rearming-interrupt-if.patch kernel: 5.4: fix .patch file extension 2021-09-01 08:07:37 +00:00
770-13-net-ethernet-mtk_eth_soc-fix-parsing-packets-in-GDM.patch kernel: improve skb hash on the mtk ethernet driver 2021-09-01 08:07:22 +00:00
770-14-net-ethernet-mtk_eth_soc-set-PPE-flow-hash-as-skb-ha.patch kernel: improve skb hash on the mtk ethernet driver 2021-09-01 08:07:22 +00:00
770-15-net-ethernet-mediatek-mtk_eth_soc-add-support-for-in.patch kernel: fix busy wait loop in mediatek PPE code 2021-09-01 08:07:36 +00:00
770-16-net-ethernet-mediatek-mtk_eth_soc-add-flow-offloadin.patch kernel: improve skb hash on the mtk ethernet driver 2021-09-01 08:07:22 +00:00
800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
810-pci_disable_common_quirks.patch kernel: bump 5.4 to 5.4.58 2021-09-01 08:06:51 +00:00
811-pci_disable_usb_common_quirks.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
820-libata-Assign-OF-node-to-the-SCSI-device.patch kernel: bump 5.4 to 5.4.64 2021-09-01 08:06:58 +00:00
834-ledtrig-libata.patch kernel: bump 5.4 to 5.4.69 2021-09-01 08:07:03 +00:00
840-hwrng-bcm2835-set-quality-to-1000.patch generic: add bcm2835-rng quality patch 2021-09-01 08:07:38 +00:00
920-mangle_bootargs.patch kernel: bump 5.4 to 5.4.111 2021-09-01 08:08:00 +00:00
0931-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00