immortalwrt/target/linux/ramips/patches-5.4
Hauke Mehrtens cfbe24c91c 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-05-01 11:12:26 +08:00
..
100-mt7621-core-detect-hack.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
101-mt7621-timer.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
102-mt7621-fix-cpu-clk-add-clkdev.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
105-mt7621-memory-detect.patch kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-01 11:12:26 +08:00
110-mt7621-perfctr-fix.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
111-gpio-mmio-introduce-BGPIOF_NO_SET_ON_INPUT.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
112-gpio-mt7621-add-BGPIOF_NO_SET_ON_INPUT-flag.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
200-add-ralink-eth.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
300-mt7620-export-chip-version-and-pkg.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
301-MIPS-ralink-mt7621-introduce-soc_device-initializati.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
302-spi-nor-add-gd25q512.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-05 12:07:01 +08:00
401-net-ethernet-mediatek-support-net-labels.patch kernel: bump 5.4 to 5.4.85 2020-12-23 11:30:55 +08:00
804-staging-mt7621-pinctrl-use-ngpios-not-num-gpios.patch ramips: gpio-ralink: use ngpios, not ralink,num-gpios 2021-04-15 23:15:49 +08:00
990-NET-no-auto-carrier-off-support.patch kernel: bump 5.4 to 5.4.106 2021-03-23 11:22:55 +08:00
991-at803x.patch kernel: bump 5.4 to 5.4.113 2021-04-18 23:32:43 +08:00
999-fix-pci-init-mt7620.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0003-MIPS-Fix-memory-reservation-in-bootmem_init-for-cert.patch kernel: bump 5.4 to 5.4.87 2021-01-09 11:09:29 +08:00
0005-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0006-MIPS-ralink-add-cpu-frequency-scaling.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0007-MIPS-ralink-copy-the-commandline-from-the-devicetree.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0013-owrt-hack-fix-mt7688-cache-issue.patch kernel: bump 5.4 to 5.4.87 2021-01-09 11:09:29 +08:00
0015-arch-mips-do-not-select-illegal-access-driver-by-def.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0024-GPIO-add-named-gpio-exports.patch kernel: bump 5.4 to 5.4.114 2021-05-01 11:08:14 +08:00
0026-DT-Add-documentation-for-gpio-ralink.patch ramips: gpio-ralink: use ngpios, not ralink,num-gpios 2021-04-15 23:15:49 +08:00
0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch ramips: gpio-ralink: use ngpios, not ralink,num-gpios 2021-04-15 23:15:49 +08:00
0029-gpio-ralink-Add-support-for-GPIO-as-interrupt-contro.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0031-uvc-add-iPassion-iP2970-support.patch kernel: bump 5.4 to 5.4.105 2021-03-14 11:21:14 +08:00
0037-mtd-cfi-cmdset-0002-force-word-write.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0038-mtd-ralink-add-mt7620-nand-driver.patch ramips: add mt7620-nand driver for NAND flash 2020-09-12 11:58:02 +08:00
0041-DT-Add-documentation-for-spi-rt2880.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0042-SPI-ralink-add-Ralink-SoC-spi-driver.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0044-i2c-MIPS-adds-ralink-I2C-driver.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0048-asoc-add-mt7620-support.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0051-serial-add-ugly-custom-baud-rate-hack.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0052-pwm-add-mediatek-support.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0069-awake-rt305x-dwc2-controller.patch kernel: bump 5.4 to 5.4.53 2020-07-22 16:59:36 +08:00
0070-weak_reordering.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0098-disable_cm.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0100-staging-mt7621-pci-simplify-mt7621_pcie_init_virtual.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0101-staging-mt7621-pci-enable-clock-bit-for-each-port.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0102-staging-mt7621-pci-use-gpios-for-properly-reset.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0103-staging-mt7621-pci-change-value-for-PERST_DELAY_MS.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0104-staging-mt7621-pci-release-gpios-after-pci-initializ.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0105-staging-mt7621-pci-delete-no-more-needed-mt7621_rese.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0106-staging-mt7621-pci-phy-add-mt7621_phy_rmw-to-simplif.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0107-staging-mt7621-pci-fix-io-space-and-properly-set-res.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0108-staging-mt7621-pci-fix-register-to-set-up-virtual-br.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0109-staging-mt7621-pci-don-t-return-if-get-gpio-fails.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0110-staging-mt7621-pci-phy-avoid-to-create-to-different-.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0111-staging-mt7621-pci-use-only-two-phys-from-device-tre.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0112-staging-mt7621-pci-change-variable-to-print-for-slot.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0113-staging-mt7621-pci-be-sure-gpio-descriptor-is-null-o.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0114-staging-mt7621-pci-avoid-to-poweroff-the-phy-for-slo.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0115-staging-mt7621-pci-delete-release-gpios-related-code.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0116-staging-mt7621-pci-use-builtin_platform_driver.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0117-staging-mt7621-pci-phy-use-builtin_platform_driver.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0118-staging-mt7621-pci-phy-re-do-xtal_mode-detection.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0119-staging-mt7621-pci-avoid-to-set-iomem_resource-addre.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0120-staging-mt7621-pci-properly-power-off-dual-ported-pc.patch ramips: sync upstream source code 2020-04-19 12:29:05 +08:00
0121-staging-mt7621-pci-fix-PCIe-interrupt-mapping.patch ramips: sync upstream source code 2020-04-19 12:29:05 +08:00
0122-mips-ralink-enable-zboot-support.patch kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-01 11:12:26 +08:00
0123-mips-ralink-manage-low-reset-lines.patch kernel: bump 5.4 to 5.4.99 2021-02-19 03:30:02 +08:00
0200-linkit_bootstrap.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00
0300-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch ramips: fix kernel oops in mt7621_nfc_write_page_hwecc 2020-11-08 02:05:41 +08:00
0301-dt-bindings-add-documentation-for-mt7621-nand-driver.patch ramips: init kernel 5.4 support 2020-04-14 20:45:04 +08:00