mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] fs: nfs: Fix buffer overflows
@ 2025-11-04  8:08 Sascha Hauer
  2025-11-04  8:08 ` [PATCH 1/4] fs: nfs: drop PROG_NFS special casing Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sascha Hauer @ 2025-11-04  8:08 UTC (permalink / raw)
  To: BAREBOX

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@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@pengutronix.de>




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-04  8:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04  8:08 [PATCH 0/4] fs: nfs: Fix buffer overflows Sascha Hauer
2025-11-04  8:08 ` [PATCH 1/4] fs: nfs: drop PROG_NFS special casing Sascha Hauer
2025-11-04  8:08 ` [PATCH 2/4] fs: nfs: do not read past packets Sascha Hauer
2025-11-04  8:08 ` [PATCH 3/4] fs: nfs: use dev_* for messages Sascha Hauer
2025-11-04  8:08 ` [PATCH 4/4] fs: nfs: reduce unwanted message to debug level Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox