[PATCH 0/4] fs: nfs: Fix buffer overflows
Sascha Hauer
s.hauer at pengutronix.de
Tue Nov 4 00:08:04 PST 2025
The NFS does hardly any checks on incoming packets. It blindly trusts
the length values in packets and happily reads past the packets. This
series introduces a function to read from packets concentrating the
boundary checks in a single place. Also some other things I stumbled
upon along the way.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
Sascha Hauer (4):
fs: nfs: drop PROG_NFS special casing
fs: nfs: do not read past packets
fs: nfs: use dev_* for messages
fs: nfs: reduce unwanted message to debug level
fs/nfs.c | 379 ++++++++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 267 insertions(+), 112 deletions(-)
---
base-commit: 7605338da017da2492d83e919f7a88eefe4cd306
change-id: 20251104-nfs-0af879139539
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list