openwrt/target/linux/realtek
Carl-Daniel Hailfinger dec360a3ac realtek: dsa: avoid use-after-free
The realtek target uses some functions marked __init for initialization.
However, that means they can only be called once when compiled in and
afterwards the memory occupied by them is freed and potentially reused.
Some "impossible" (code at a given location can't crash in the way it
does) crashes can be caused by this because upon re-execution of those
functions, garbage gets executed. Such re-execution can happen for
deferred probes or repeated probes.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Link: https://github.com/openwrt/openwrt/pull/21504
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

(cherry picked from commit a91c3abe83)
Link: https://github.com/openwrt/openwrt/pull/21900
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-02-08 21:25:29 +01:00
..
base-files realtek: rtl930x: Add support for Plasma Cloud MCX3 Media Converter 2025-11-07 21:12:58 +01:00
dts realtek: rtl838x: fix lan9 and lan10 on Netgear GS110TUP 2026-01-02 18:12:56 +01:00
files/firmware/rtl838x_phy
files-6.12 realtek: dsa: avoid use-after-free 2026-02-08 21:25:29 +01:00
image realtek: Cleanup tab vs spaces for indentation 2025-11-23 22:26:10 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.68 2026-02-03 23:26:21 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl839x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl930x kernel: reorder configuration options 2026-01-26 23:59:37 +01:00
rtl930x_nand kernel: reorder configuration options 2026-01-26 23:59:37 +01:00
rtl931x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl931x_nand realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00