View Issue Details

IDProjectCategoryView StatusLast Update
0013845CentOS-7kernelpublic2018-05-11 17:10
Reporterq7joey 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0013845: 7.4 kernel changes flock over nfs behavior
Descriptionprior to the 7.4 kernel, flock on an nfs file would allow an exclusive lock for a read-only file. now it fails with EBADF. shared locks for read only work fine, as do exclusive locks for files open with write.

i don't have access to upstream based systems to tell if this is a change from there, which is most likely.
Steps To Reproducetouch foo
perl -e 'open(x,"<","foo");flock(x,2) || die $!'

gives:
Bad file descriptor at -e line 1.

change < to > and it will work without error.
Additional Informationthis broke quite a few of our system maintenance scripts, so it at least needs to be documented if it is going to be the new behavior.

if this is from upstream, will someone from the centos team push the issue to them?
Tagsflock, nfs
abrt_hash
URL

Activities

TrevorH

TrevorH

2017-09-18 18:15

manager   ~0030112

That's something you need to do: raise the issue on bugzilla.redhat.com
q7joey

q7joey

2017-09-18 18:31

reporter   ~0030113

i can't confirm it is from upstream as i don't have access to a system running that. until that is confirmed, i don't think a bugzilla entry is appropriate. i'm hoping someone else that sees this can do the testing.
filex

filex

2017-10-02 15:22

reporter   ~0030276

We have had the same problem after rebooting into the 7.4 kernel. We could verify that the bug occurs in RHEL, too.

q7joey, we used your reproducer to report it upstream: https://bugzilla.redhat.com/show_bug.cgi?id=1497756
q7joey

q7joey

2017-10-02 15:28

reporter   ~0030277

great. any chance that bugzilla id could be made public so i can follow it?
filex

filex

2017-10-02 15:36

reporter   ~0030278

q7joey, we would love to do so. but somehow the report has gotten an "Private Group" flag that is read-only to us. maybe someone at redhat has to uncheck it?

we'll post an update here, if something happens.
TrevorH

TrevorH

2017-10-02 15:59

manager   ~0030279

All kernel bugs on bugzilla are automatically marked as private. You can add email addresses to the list allowed to see the bz.
filex

filex

2017-10-02 16:50

reporter   ~0030280

our report was marked as duplicate.

please use https://bugzilla.redhat.com/show_bug.cgi?id=1497225 for tracking now.
eugenysp

eugenysp

2017-11-23 14:57

reporter   ~0030641

Is there any progress on this issue?
TrevorH

TrevorH

2017-11-23 17:15

manager   ~0030642

Questions about the status of an upstream issue need to be directed to upstream. CentOS has no knowledge of what's going on behind the scenes in private bugzilla entries and cannot help. When RH fix the problem and provide a public updated package then it will automatically be inherited by CentOS.
filex

filex

2017-11-29 12:31

reporter   ~0030672

FYI, there has been some activity in the upstream bug report. The status of https://bugzilla.redhat.com/show_bug.cgi?id=1497225 has changed from [fix] ON_QA to [fix] VERIFIED after patches for NFS were made available in kernel-3.10.0-799.el7.
toracat

toracat

2017-11-29 16:34

manager   ~0030675

Relevant RHEL solution article is here:

https://access.redhat.com/solutions/3252651

"This bug is expected to be fixed on RHEL 7.5."

Hopefully they backport the fix to 7.4.
toracat

toracat

2018-05-11 17:10

manager   ~0031768

CentOS 7.5.1804 is out. Closing this bug report as 'resolved'. Feel free to reopen (or start a new report) if this is not the case.

Issue History

Date Modified Username Field Change
2017-09-18 18:04 q7joey New Issue
2017-09-18 18:04 q7joey Tag Attached: flock
2017-09-18 18:04 q7joey Tag Attached: nfs
2017-09-18 18:15 TrevorH Note Added: 0030112
2017-09-18 18:31 q7joey Note Added: 0030113
2017-10-02 15:22 filex Note Added: 0030276
2017-10-02 15:28 q7joey Note Added: 0030277
2017-10-02 15:36 filex Note Added: 0030278
2017-10-02 15:59 TrevorH Note Added: 0030279
2017-10-02 16:50 filex Note Added: 0030280
2017-11-23 14:57 eugenysp Note Added: 0030641
2017-11-23 17:15 TrevorH Note Added: 0030642
2017-11-29 12:31 filex Note Added: 0030672
2017-11-29 16:34 toracat Note Added: 0030675
2017-11-29 16:34 toracat Status new => confirmed
2018-05-11 17:10 toracat Note Added: 0031768
2018-05-11 17:10 toracat Status confirmed => resolved
2018-05-11 17:10 toracat Resolution open => fixed