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