Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1685195

Summary: unhandled ppc64le-linux syscall: 131 (quotactl)
Product: Red Hat Enterprise Linux 8 Reporter: Maros Kopec <makopec>
Component: valgrindAssignee: Mark Wielaard <mjw>
valgrind sub component: system-version QA Contact: Alexandra Petlanová Hájková <ahajkova>
Status: CLOSED ERRATA Docs Contact: Vladimír Slávik <vslavik>
Severity: unspecified    
Priority: unspecified CC: ahajkova, dsmith, fweimer, jakub, mcermak, ohudlick
Version: 8.0Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: 8.1   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: valgrind-3.15.0-2.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:51:48 UTC Type: Bug
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: 1682588, 1683715    
Bug Blocks:    

Description Maros Kopec 2019-03-04 15:26:22 UTC
Description of problem:
unhandled ppc64le-linux syscall: 131


Version-Release number of selected component (if applicable):
valgrind-3.14.0 and LibVEX


How reproducible:
100%


Steps to Reproduce:
1. clone job https://beaker.engineering.redhat.com/jobs/3393822
2. wait for fail


Actual results:
==22732== Conditional jump or move depends on uninitialised value(s)
==22732==    at 0x1900A4: init_io (quotaio.c:82)
==22732==    by 0x18F363: create_handle_list (quotasys.c:922)
==22732==    by 0x1841CB: showquotas (quota.c:190)
==22732==    by 0x18361B: main (quota.c:422)
==22732== 
--22732-- WARNING: unhandled ppc64le-linux syscall: 131
--22732-- You may be able to write your own handler.
--22732-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--22732-- Nevertheless we consider this a bug.  Please report
--22732-- it at http://valgrind.org/support/bug_reports.html.
==22732== Conditional jump or move depends on uninitialised value(s)
==22732==    at 0x188548: meta_qf_fstype (quotasys.c:71)
==22732==    by 0x18FDAB: init_io (quotaio.c:107)
==22732==    by 0x18F363: create_handle_list (quotasys.c:922)
==22732==    by 0x1841CB: showquotas (quota.c:190)
==22732==    by 0x18361B: main (quota.c:422)
==22732== 


Expected results:
==22732== Conditional jump or move depends on uninitialised value(s)
==22732==    at 0x1900A4: init_io (quotaio.c:82)
==22732==    by 0x18F363: create_handle_list (quotasys.c:922)
==22732==    by 0x1841CB: showquotas (quota.c:190)
==22732==    by 0x18361B: main (quota.c:422)
==22732== 
==22732== Conditional jump or move depends on uninitialised value(s)
==22732==    at 0x188548: meta_qf_fstype (quotasys.c:71)
==22732==    by 0x18FDAB: init_io (quotaio.c:107)
==22732==    by 0x18F363: create_handle_list (quotasys.c:922)
==22732==    by 0x1841CB: showquotas (quota.c:190)
==22732==    by 0x18361B: main (quota.c:422)
==22732== 


Additional info:
Code which was ran: http://pkgs.devel.redhat.com/cgit/tests/quota/tree/Regression/bz684017-memory-leak

Comment 1 Mark Wielaard 2019-03-04 15:34:44 UTC
ppc64le syscall number 131 is quotactl.
This looks like a generic linux syscall that is just not hooked up for ppc64le.

Totally untested patch:

diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c
index 0fdcc8e..eada099 100644
--- a/coregrind/m_syswrap/syswrap-ppc64-linux.c
+++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c
@@ -755,7 +755,7 @@ static SyscallTableEntry syscall_table[] = {
    LINX_(__NR_delete_module,     sys_delete_module),      // 129
 
 // _____(__NR_get_kernel_syms,   sys_get_kernel_syms),    // 130
-// _____(__NR_quotactl,          sys_quotactl),           // 131
+   LINX_(__NR_quotactl,          sys_quotactl),           // 131
    GENX_(__NR_getpgid,           sys_getpgid),            // 132
    GENX_(__NR_fchdir,            sys_fchdir),             // 133
 // _____(__NR_bdflush,           sys_bdflush),            // 134

Comment 2 Mark Wielaard 2019-03-04 20:05:08 UTC
That patch seems to do the trick. See upstream bug https://bugs.kde.org/show_bug.cgi?id=405079

That patch is now upstream, in the fedora package (for f30 & rawhide) and the copr packages:
https://copr.fedorainfracloud.org/coprs/mjw/valgrind-3.14.0/

Comment 3 Mark Wielaard 2019-04-20 20:19:42 UTC
This fix has been integrated upstream and is part of the 3.15.0 upstream release.

Comment 6 Alexandra Petlanová Hájková 2019-06-18 11:45:41 UTC
I verified valgrind doesn't support the quotactl sycall on ppcc64le for valgrind-3.14.0-11 and does support it for valgrind-3.15.0-2.

Comment 8 errata-xmlrpc 2019-11-05 20:51:48 UTC
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/RHEA-2019:3346