[Bug 260343] NFS client does not respect RLIMIT_FSIZE

2021-12-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343 Bug ID: 260343 Summary: NFS client does not respect RLIMIT_FSIZE Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severi

[Bug 260343] NFS client does not respect RLIMIT_FSIZE

2021-12-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343 --- Comment #1 from Rick Macklem --- Yep. I suppose vn_rlimit_fsize() should be called in nfs_allocate(). It should also be added to vop_stdallocate() to be consistent w.r.t. its use. (Note that VOP_SETATTR() of size does not check it and

[Bug 260343] NFS client does not respect RLIMIT_FSIZE

2021-12-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343 --- Comment #2 from Alan Somers --- Isn't vop_stdallocate covered by the call to VOP_WRITE, which checks RLIMIT_FSIZE? Or are you concerned that RLIMIT_FSIZE needs to be checked before vop_stdallocate's loop begins? Bug 164793 describes R

[Bug 260343] NFS client does not respect RLIMIT_FSIZE

2021-12-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343 --- Comment #3 from Rick Macklem --- Yes, I just noticed that vop_stdallocate() uses VOP_WRITE(), so it does get checked. I'll add it to nfs_allocate(). (I suspect long ago that VOP_SETATTR() of size was exempt because it does not alloca

[Bug 260343] NFS client does not respect RLIMIT_FSIZE

2021-12-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343 Rick Macklem changed: What|Removed |Added Status|New |Open Assignee|b...@freebs