2017-10-23 20:28 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0013845CentOS-7kernelpublic2017-10-12 13:45
Reporterq7joey 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
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
Attached Files

-Relationships
+Relationships

-Notes

~0030112

TrevorH (developer)

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

~0030113

q7joey (reporter)

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.

~0030276

filex (reporter)

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

~0030277

q7joey (reporter)

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

~0030278

filex (reporter)

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.

~0030279

TrevorH (developer)

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

~0030280

filex (reporter)

our report was marked as duplicate.

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

-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
+Issue History