openwrt/target/linux/realtek/patches-5.10
Sander Vanheule bde6311569 realtek: don't unmask non-maskable GPIO IRQs
On uniprocessor builds, for_each_cpu(cpu, mask) will assume 'mask'
always contains exactly one CPU, and ignore the actual mask contents.
This causes the loop to run, even when it shouldn't on an empty mask,
and tries to access an uninitialised pointer.

Fix this by wrapping the loop in a cpumask_empty() check, to ensure it
will not run on uniprocessor builds if the CPU mask is empty.

Fixes: af6cd37f42 ("realtek: replace RTL93xx GPIO patches")
Reported-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Reported-by: Robert Marko <robimarko@gmail.com>
Tested-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-05-30 07:21:03 +02:00
..
001-5.13-dt-bindings-gpio-binding-for-realtek-otto-gpio.patch kernel: bump 5.10 to 5.10.69 2021-09-30 22:29:33 +01:00
002-5.13-gpio-add-realtek-otto-gpio-support.patch kernel: bump 5.10 to 5.10.102 2022-03-01 21:38:36 +01:00
003-5.12-spi-realtek-rtl838x-rtl839x-spi-controller.patch kernel: bump 5.10 to 5.10.69 2021-09-30 22:29:33 +01:00
004-5.12-spi-realtek-rtl-add-support-for-realtek-rtl838x-rtl839x-spi-controllers.patch realtek: backport spi-realtek-rtl driver from 5.12 to 5.10 2021-09-26 00:32:17 +02:00
005-5.12-dt-bindings-interrupt-controller-add-realtek-rtl838x-rtl839x-support.patch kernel: bump 5.10 to 5.10.69 2021-09-30 22:29:33 +01:00
006-5.12-irqchip-add-support-for-realtek-rtl838x-rtl839x-interrupt-controller.patch realtek: backport irq-realtek-rtl driver from 5.12 to 5.10 2021-09-26 00:32:17 +02:00
007-5.16-gpio-realtek-realtek-otto-fix-gpio-line-irq-offset.patch realtek: backport GPIO IRQ index fix 2021-11-01 00:56:51 +01:00
008-5.17-watchdog-add-realtek-otto-watchdog-timer.patch kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
020-v5.17-net-mdio-add-helpers-to-extract-clause-45-regad-and-.patch realtek: backport Clause-45 MDIO helper functions 2022-02-17 15:21:47 +00:00
021-v5.19-02-gpio-realtek-otto-Support-reversed-port-layouts.patch realtek: replace RTL93xx GPIO patches 2022-05-22 08:46:50 +02:00
021-v5.19-03-gpio-realtek-otto-Support-per-cpu-interrupts.patch realtek: replace RTL93xx GPIO patches 2022-05-22 08:46:50 +02:00
021-v5.19-04-gpio-realtek-otto-Add-RTL930x-support.patch realtek: replace RTL93xx GPIO patches 2022-05-22 08:46:50 +02:00
021-v5.19-06-gpio-realtek-otto-Add-RTL931x-support.patch realtek: replace RTL93xx GPIO patches 2022-05-22 08:46:50 +02:00
300-mips-add-rtl838x-platform.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
301-gpio-add-rtl8231-driver.patch kernel: bump 5.10 to 5.10.102 2022-03-01 21:38:36 +01:00
303-gpio-update-dependencies-for-gpio-realtek-otto.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
304-spi-update-dependency-for-spi-realtek-rtl.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
305-irqchip-update-dependency-for-irq-realtek-rtl.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
307-wdt-update-dependency-for-realtek-otto-wdt.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
308-otto-wdt-fix-missing-math-header.patch kernel: bump 5.10 to 5.10.82 2021-11-27 19:19:30 +01:00
309-cevt-rtl9300-support.patch realtek: Replace the RTL9300 generic timer with a CEVT timer 2022-02-17 15:21:47 +00:00
310-add-i2c-rtl9300-support.patch realtek: Add support for RTL9300/RTL9310 I2C controller 2022-02-17 15:21:46 +00:00
311-add-i2c-mux-rtl9300-support.patch realtek: Add support for RTL9300/RTL9310 I2C multiplexing 2022-02-17 15:21:46 +00:00
312-rt9313-support.patch realtek: Add RTL931X sub-target 2022-02-17 15:21:47 +00:00
315-irqchip-irq-realtek-rtl-add-VPE-support.patch realtek: Add VPE support for the IRQ driver 2022-02-17 15:21:47 +00:00
316-otto-gpio-uniprocessor-irq-mask.patch realtek: don't unmask non-maskable GPIO IRQs 2022-05-30 07:21:03 +02:00
700-net-dsa-add-support-for-rtl838x-switch.patch kernel: bump 5.10 to 5.10.99 2022-02-11 23:17:40 +01:00
701-net-dsa-add-rtl838x-support-for-tag-trailer.patch realtek: refresh patches for Kernel 5.10 2021-09-26 00:32:17 +02:00
702-net-dsa-increase-dsa-max-ports-for-rtl838x.patch
702-net-ethernet-add-support-for-rtl838x-ethernet.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
703-include-linux-add-phy-ops-for-rtl838x.patch kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
704-drivers-net-phy-eee-support-for-rtl838x.patch kernel: bump 5.10 to 5.10.83 2021-12-12 21:11:30 +01:00
704-include-linux-add-phy-hsgmii-mode.patch kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
705-add-rtl-phy.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
705-include-linux-phy-increase-phy-address-number-for-rtl839x.patch kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
708-brflood-api.patch realtek: Backport bridge configuration for DSA 2022-02-17 15:21:47 +00:00
709-lag-offloading.patch kernel: bump 5.10 to 5.10.106 2022-03-19 16:13:58 +01:00
710-net-phy-sfp-re-probe-modules-on-DEV_UP-event.patch kernel: bump 5.10 to 5.10.114 2022-05-16 20:26:38 +02:00
711-net-phy-add-an-MDIO-SMBus-library.patch realtek: Add support for SFP EEPROM-access over SMBus 2022-02-17 15:21:46 +00:00
712-net-phy-sfp-add-support-for-SMBus.patch kernel: bump 5.10 to 5.10.114 2022-05-16 20:26:38 +02:00
713-v5.12-net-dsa-configure-better-brport-flags-when-ports-lea.patch realtek: net: dsa: configure better brport flags when ports leave the bridge 2022-03-06 22:01:04 +02:00
800-net-mdio-support-hardware-assisted-indirect-access.patch realtek: switch to use generic MDIO accessor functions 2022-02-17 15:21:47 +00:00