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 <[email protected]> --- 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 <[email protected]>
