Re: [PATCH v2 2/2] zonefs: ignore RLIMIT_FSIZE above LLONG_MAX in zonefs_write_check_limits()

From: Damien Le Moal

Date: Fri Nov 20 2026 - 10:45:25 EST


On 2026/11/18 19:10, Ding Feng wrote:
> zonefs_write_check_limits() follows generic_write_check_limits() and
> has the same problem: it stores rlimit(RLIMIT_FSIZE), an unsigned long,
> in a loff_t, so a soft limit between 2^63 and RLIM_INFINITY is negative
> and every write fails with -EFBIG and raises SIGXFSZ.
>
> Keep the limit unsigned and apply it only when it is at most LLONG_MAX,
> as the generic helper now does.
>
> Fixes: ebfd68cd0c1e ("zonefs: Fix O_APPEND async write handling")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: Claude:claude-opus-5-5 Frama-C

Not needed...

> Signed-off-by: Ding Feng <dingf3ng@xxxxxxxxx>

I queued up this version in zonefs tree for-7.4-fixes. Thanks!

--
Damien Le Moal
Western Digital Research