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 - unhandled ppc64le-linux syscall: 131 (quotactl)
Summary: unhandled ppc64le-linux syscall: 131 (quotactl)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: valgrind
Version: 8.0
Hardware: ppc64le
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.1
Assignee: Mark Wielaard
QA Contact: Alexandra Petlanová Hájková
Vladimír Slávik
URL:
Whiteboard:
Depends On: 1682588 1683715
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-04 15:26 UTC by Maros Kopec
Modified: 2021-09-17 14:44 UTC (History)
6 users (show)

Fixed In Version: valgrind-3.15.0-2.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 20:51:48 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 405079 0 NOR RESOLVED unhandled ppc64le-linux syscall: 131 (quotactl) 2020-10-07 08:38:44 UTC
Red Hat Product Errata RHEA-2019:3346 0 None None None 2019-11-05 20:52:09 UTC

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


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