Bug 1758001
| Summary: | fix compat statfs64() returning EOVERFLOW for when _FILE_OFFSET_BITS=64 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Frank Sorenson <fsorenso> | ||||
| Component: | kernel | Assignee: | Eric Sandeen <esandeen> | ||||
| kernel sub component: | VFS | QA Contact: | Kun Wang <kunwan> | ||||
| Status: | CLOSED ERRATA | Docs Contact: | |||||
| Severity: | urgent | ||||||
| Priority: | high | CC: | aviro, chhudson, dhoward, dhowells, dwysocha, esandeen, fsorenso, gnewell, jshivers, kunwan, mkderoy, mszeredi, mtowey, nmurray, pbhoot, rhandlin, swhiteho, tborcin, xzhou | ||||
| Version: | 7.8 | Keywords: | Regression, Reproducer, ZStream | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | kernel-3.10.0-1109.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 1757902 | ||||||
| : | 1775677 1775678 (view as bug list) | Environment: | |||||
| Last Closed: | 2020-03-31 19:33:37 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 1757902 | ||||||
| Bug Blocks: | 1775677, 1775678 | ||||||
| Attachments: | 
 | ||||||
| 
        
          Description
        
        
          Frank Sorenson
        
        
        
        
        
          2019-10-02 22:58:32 UTC
        
       Created attachment 1622407 [details]
updated reproducer
Reproducer updated:
 * test both statfs() and statfs64()
 * require expected compile-time options
 * verify that at least one of the 64-bit fields would have overflowed a 32-bit value
 * success/failure return value
 # mount -t tmpfs -o nr_inodes=4294967297 tmpfs /mnt
 # gcc compat_statfs.c -o compat_statfs -m32 -D_FILE_OFFSET_BITS=64
 # ./compat_statfs /mnt
*** Bug 1650928 has been marked as a duplicate of this bug. *** (In reply to Frank Sorenson from comment #3) > Reproducer updated: ... > * test both statfs() and statfs64() this should have read statfs() and fstatfs() sorry Eric- We sent them a patch and it sounds like it works: Created By: Michael DeRoy (10/15/2019 7:52 AM) The patch fixed the test I uploaded which reproduces the issue for us..the syscall no longer errors on 32-bit. How long will it take for this patch to get into production? Is it possible for Redhat to provide us with a supported patch we can install if our customers face this issue? and the TAMs reply: Created By: Christopher Hudson (10/15/2019 9:34 AM) Last Modified By: Christopher Hudson (10/15/2019 9:34 AM) ::Internal:: That's good news - thanks for driving this. If IBM would like an accelerated fix, then I would say let's go through the process and let them know that they will need to patch again within 30 days of the supported patch being released (which they would need to communicate to their customers). I guess alternatively, if the z-stream + backport is going to come out quickly, maybe they would be OK waiting. This is the kernel, so patching once vs. twice is a much better scenario when considering production workloads. -Chris You can grab the src.rpm here and rpmbuild --rebuild it http://brew-task-repos.usersys.redhat.com/repos/scratch/esandeen/kernel/3.10.0/957.5.1.el7.bz1758001/x86_64/kernel-3.10.0-957.5.1.el7.bz1758001.src.rpm Patch(es) committed on kernel-3.10.0-1109.el7 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1016 |