|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0013845||CentOS-7||kernel||public||2017-09-18 18:04||2017-10-12 13:45|
|Target Version||Fixed in Version|
|Summary||0013845: 7.4 kernel changes flock over nfs behavior|
|Description||prior 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 Reproduce||touch foo|
perl -e 'open(x,"<","foo");flock(x,2) || die $!'
Bad file descriptor at -e line 1.
change < to > and it will work without error.
|Additional Information||this 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?
|That's something you need to do: raise the issue on bugzilla.redhat.com|
|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.|
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
|great. any chance that bugzilla id could be made public so i can follow it?|
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.
|All kernel bugs on bugzilla are automatically marked as private. You can add email addresses to the list allowed to see the bz.|
our report was marked as duplicate.
please use https://bugzilla.redhat.com/show_bug.cgi?id=1497225 for tracking now.
|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|