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 822503 - ipv6 tapset support
Summary: ipv6 tapset support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: systemtap
Version: 6.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Frank Ch. Eigler
QA Contact: Martin Cermak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-17 14:40 UTC by Bryn M. Reeves
Modified: 2013-02-21 08:50 UTC (History)
3 users (show)

Fixed In Version: systemtap-1.8-5.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 08:50:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0345 0 normal SHIPPED_LIVE systemtap bug fix and enhancement update 2013-02-20 20:53:47 UTC

Description Bryn M. Reeves 2012-05-17 14:40:47 UTC
Description of problem:
The existing tapset libraries provide probes and functions for common networking subsystems including Sun RPC and NFS. The implementation in systemtap 1.7 only supports the AF_INET (ipv4) address family.

Version-Release number of selected component (if applicable):
systemtap-1.7-*.el6

How reproducible:
100%

Steps to Reproduce:
1. On a system with ipv6 enabled execute a script that will evaluate a tapset variable containing an IP address or that calls a tapset function returning an IP address
  
Actual results:
Address filled as "Unsupported Address Family"

Expected results:
Address filled with valid ipv6 address

Additional info:

I noticed this with the nfsdtop.stp example which evaluates the client_ip tapset variable in a number of probes:

probe nfsd.proc.lookup {
        nfsd_lookups <<< 1
        nfsd_lookup_clients[client_ip] <<< 1
        nfsd_lookup_clients_last_file[client_ip] = filename
}

Using the script on a host with ipv6 clients causes most operations to be attributed to "Unsupported Address Family". This comes from the rpc.stp tapset:

        if (s_addr == 0)
                return "Unsupported Address Family"
        return sprintf("%s:%d", daddr_to_string(s_addr),
                       @cast(addr, "sockaddr_in")->sin_port)

This work has been tracked upstream as PR13646 and systemtap-1.8 will include much better ipv6 support in these tapsets.

Comment 1 Bryn M. Reeves 2012-05-17 14:45:34 UTC
sourceware.org bugzilla:

http://sourceware.org/bugzilla/show_bug.cgi?id=13646

"Base IPv6 support added in commits: b88df2, d5c431, 258532, ac9732, 7447cb,
57d584, df7d21, 032226, 1ed417, 96f244, a3c777.  The tcp.stp tapset in
particular now works correctly with IPv4 and IPv6 addresses.  A testcase was
added to make sure IPv4 and IPv6 addresses are converted correctly."

There are still some problems in nfs_proc.stp (tracked in PR13793) where binary addresses are passed around:

http://sourceware.org/bugzilla/show_bug.cgi?id=13793

These are still being worked on but the changes already committed are enough to make simple scripts (like nfsdtop) work properly on ipv6-enabled hosts.

Comment 2 RHEL Program Management 2012-07-10 06:50:45 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-11 01:51:45 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 9 errata-xmlrpc 2013-02-21 08:50:14 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.

http://rhn.redhat.com/errata/RHBA-2013-0345.html


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