Re: [PATCH] vfs: Fix EOVERFLOW testing in put_compat_statfs64

2019-10-03 Thread Linus Torvalds
On Wed, Oct 2, 2019 at 2:17 PM Eric Sandeen wrote: > > As a result, 32-bit userspace gets -EOVERFLOW for i.e. large file > counts even with -D_FILE_OFFSET_BITS=64 set. Applied. Linus

[PATCH] vfs: Fix EOVERFLOW testing in put_compat_statfs64

2019-10-02 Thread Eric Sandeen
Today, put_compat_statfs64() disallows nearly any field value over 2^32 if f_bsize is only 32 bits, but that makes no sense. compat_statfs64 is there for the explicit purpose of providing 64-bit fields for f_files, f_ffree, etc. And f_bsize is always only 32 bits. As a result, 32-bit userspace ge