openwrt/target/linux/realtek/patches-6.6
Markus Stockhausen dc9fca1fd1 realtek: 6.6: harden fw_init_cmdline()
Some devices (e.g. HP JG924A) hand over other than expected kernel boot
arguments. Looking at these one can see:

fw_init_cmdline: fw_arg0=00020000
fw_init_cmdline: fw_arg1=00060000
fw_init_cmdline: fw_arg2=fffdffff
fw_init_cmdline: fw_arg3=0000416c

Especially fw_arg2 should be the pointer to the environment and it looks
very suspicous. It is not aligned and the address is outside KSEG0 and
KSEG1. Booting the device will result in a hang. Do better at verifying
the address.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Suggested-by: Bjørn Mork <bjorn@mork.no>
2024-09-14 20:08:57 +02:00
..
300-mips-add-rtl838x-platform.patch realtek: 6.6: refresh patch 300-mips-add-rtl838x-platform 2024-09-14 19:58:54 +02:00
301-gpio-add-rtl8231-driver.patch realtek: 6.6: refresh patch 301-gpio-add-rtl8231-driver 2024-09-14 19:58:55 +02:00
302-clocksource-add-otto-driver.patch realtek: 6.6: refresh patch 302-clocksource-add-otto-driver 2024-09-14 19:58:55 +02:00
303-gpio-update-dependencies-for-gpio-realtek-otto.patch ealtek: 6.6: refresh patch 303-gpio-update-dependencies-for-gpio-realtek-otto 2024-09-14 19:58:55 +02:00
304-spi-update-dependency-for-spi-realtek-rtl.patch realtek: 6.6: refresh patch 304-spi-update-dependency-for-spi-realtek-rtl 2024-09-14 19:58:55 +02:00
305-irqchip-update-dependency-for-irq-realtek-rtl.patch realtek: 6.6: refresh patch 305-irqchip-update-dependency-for-irq-realtek-rtl 2024-09-14 19:58:55 +02:00
307-wdt-update-dependency-for-realtek-otto-wdt.patch realtek: 6.6: refresh patch 307-wdt-update-dependency-for-realtek-otto-wdt 2024-09-14 19:58:55 +02:00
310-add-i2c-rtl9300-support.patch realtek: 6.6: refresh patch 310-add-i2c-rtl9300-support 2024-09-14 19:58:55 +02:00
311-add-i2c-mux-rtl9300-support.patch realtek: 6.6: copy patch 311-add-i2c-mux-rtl9300-support 2024-09-14 19:58:55 +02:00
314-irqchip-irq-realtek-rtl-add-VPE-support.patch realtek: 6.6: rework VPE patches 2024-09-14 19:58:55 +02:00
318-add-rtl83xx-clk-support.patch realtek: 6.6: refresh patch 318-add-rtl83xx-clk-support 2024-09-14 19:58:55 +02:00
320-harden-fw_init_cmdline.patch realtek: 6.6: harden fw_init_cmdline() 2024-09-14 20:08:57 +02:00
700-net-dsa-increase-dsa-max-ports-for-rtl838x.patch realtek: 6.6 copy patch net-dsa-increase-dsa-max-ports-for-rtl838x 2024-09-14 19:58:55 +02:00
702-include-linux-add-phy-hsgmii-mode.patch realtek: 6.6: rework patch include-linux-add-phy-hsgmii-mode 2024-09-14 19:58:55 +02:00
704-include-linux-phy-increase-phy-address-number-for-rtl839x.patch realtek: 6.6: refresh patch include-linux-phy-increase-phy-address-number-for-rtl839x 2024-09-14 19:58:55 +02:00
706-include-linux-add-phy-ops-for-rtl838x.patch realtek: 6.6: refresh patch include-linux-add-phy-ops-for-rtl838x 2024-09-14 19:58:55 +02:00
708-drivers-net-phy-eee-support-for-rtl838x.patch realtek: 6.6: refresh patch drivers-net-phy-eee-support-for-rtl838x 2024-09-14 19:58:55 +02:00
710-net-phy-sfp-re-probe-modules-on-DEV_UP-event.patch realtek: 6.6: refresh patch net-phy-sfp-re-probe-modules-on-DEV_UP-event 2024-09-14 19:58:55 +02:00
712-net-phy-add-an-MDIO-SMBus-library.patch realtek: 6.6: refresh patch net-phy-add-an-MDIO-SMBus-library 2024-09-14 19:58:55 +02:00
714-net-phy-sfp-add-support-for-SMBus.patch realtek: 6.6: rework patch net-phy-sfp-add-support-for-SMBus 2024-09-14 19:58:55 +02:00
716-net-ethernet-add-support-for-rtl838x-ethernet.patch realtek: 6.6: refresh patch net-ethernet-add-support-for-rtl838x-ethernet 2024-09-14 19:58:55 +02:00
718-net-dsa-add-support-for-rtl838x-switch.patch realtek: 6.6: refresh patch net-dsa-add-support-for-rtl838x-switch 2024-09-14 20:02:52 +02:00
720-add-rtl-phy.patch realtek: 6.6: refresh patch add-rtl-phy 2024-09-14 20:02:52 +02:00
722-net-dsa-add-rtl838x-support-for-tag-trailer.patch realtek: 6.6: refresh patch net-dsa-add-rtl838x-support-for-tag-trailer 2024-09-14 20:02:52 +02:00