Re: (subset) [PATCH v2 0/2] fs, zonefs: ignore RLIMIT_FSIZE values above LLONG_MAX

From: Christian Brauner

Date: Thu Nov 19 2026 - 14:08:19 EST


On Thu, 19 Nov 2026 11:10:24 +0800, Ding Feng wrote:
> generic_write_check_limits() and its zonefs copy store
> rlimit(RLIMIT_FSIZE), an unsigned long, in a loff_t. A soft limit
> between 2^63 and RLIM_INFINITY turns negative, and every write then
> fails with -EFBIG and SIGXFSZ:
>
> $ bash -c 'ulimit -f 9007199254740992; echo hi > /tmp/f'
> File size limit exceeded
>
> [...]

Applied to the vfs-7.5.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.5.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.5.misc

[1/2] fs: ignore RLIMIT_FSIZE above LLONG_MAX in generic_write_check_limits()
https://git.kernel.org/vfs/vfs/c/3f6eaa87ab42