Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1489858 - s390x: Argument of wrong type is passed to fcntl() (big-endian error)
s390x: Argument of wrong type is passed to fcntl() (big-endian error)
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python (Show other bugs)
7.4
s390x Linux
high Severity high
: rc
: 7.5
Assigned To: Charalampos Stratakis
Mirosław Zalewski
:
Depends On:
Blocks: 1399177 1438583 1522983 1456513
  Show dependency treegraph
 
Reported: 2017-09-08 09:50 EDT by Adrian Reber
Modified: 2018-04-11 04:32 EDT (History)
10 users (show)

See Also:
Fixed In Version: python-2.7.5-61.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 11:00:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
IBM Linux Technology Center 158538 None None None 2017-09-11 07:55 EDT
Red Hat Product Errata RHBA-2018:0833 None None None 2018-04-10 11:00 EDT

  None (edit)
Description Adrian Reber 2017-09-08 09:50:41 EDT
While backporting the necessary kernel patches to get CRIU running on s390x (https://bugzilla.redhat.com/show_bug.cgi?id=1466682) I detected a problem in RHEL's python which is already fixed upstream:

https://bugs.python.org/issue22821

It can be reproduced with:

#!/usr/bin/env python2
import fcntl
import tempfile
import struct
import errno

F_OFD_SETLK = 37

try:
	with tempfile.TemporaryFile() as fd:
		flock = struct.pack('hhllhh', fcntl.F_RDLCK, 0, 0, 0, 0, 0)
		fcntl.fcntl(fd.fileno(), F_OFD_SETLK, flock)
except IOError as e:
	if e.errno == errno.EINVAL:
		print "I/O error({0}): {1}".format(e.errno, e.strerror)
		print "OFD locks are not supported."
		exit(1)

exit(0)

On x86_64 I get an error (as expected) and on s390x I do not get the error, which leads to wrong results of the CRIU test suite. I am about to also test it on powerpc big-endian to see if it is reproducible on another big-endian platform.
Comment 2 Adrian Reber 2017-09-08 11:26:08 EDT
Not reproducible on powerpc big-endian, only on s390x.
Comment 12 errata-xmlrpc 2018-04-10 11:00:08 EDT
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/RHBA-2018:0833
Comment 13 IBM Bug Proxy 2018-04-11 04:32:03 EDT
------- Comment From hannsj_uhl@de.ibm.com 2018-04-11 04:28 EDT-------
.

Note You need to log in before you can comment on or make changes to this bug.