]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: harden receive path 22884/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 10 Apr 2026 20:02:59 +0000 (22:02 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 24 Apr 2026 07:47:04 +0000 (09:47 +0200)
commit32710715799d753c4f32d8767e219706f7e6e8f2
treeeb023c4d6f0332aa1dc0e7b2c81600c05d2f948d
parentf56e68791aa6c5a7ef7b8ed85b8621220364fdbe
realtek: eth: harden receive path

The hardware usually takes care that

- a packet is no larger than the available buffer
- has at least a FCS checksum of 4 bytes

Nevertheless be cautious and improve the existing
packet check. Just in case ...

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22884
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.18/drivers/net/ethernet/rtl838x_eth.c