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.
With systemtap-2.6-7.el7 and kernel-3.10.0-206.el7 I see following issue:
# stap -v -c 'ls /tmp/some-nfs-mounted-dir' -e 'probe nfsd.open{print(fh)}'
Pass 1: parsed user script and 114 library script(s) using 218252virt/35588res/3020shr/33140data kb, in 150usr/20sys/163real ms.
Pass 2: analyzed script: 3 probe(s), 4 function(s), 7 embed(s), 1 global(s) using 342580virt/161080res/4156shr/157468data kb, in 1720usr/380sys/2110real ms.
Pass 3: translated to C into "/tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.c" using 342580virt/161380res/4456shr/157468data kb, in 200usr/60sys/254real ms.
/tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.c: In function ‘function___svc_fh’:
/tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.c:240:28: error: dereferencing pointer to incomplete type
struct knfsd_fh *fh = &fhp->fh_handle;
^
make[2]: *** [/tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.o] Error 1
make[1]: *** [_module_/tmp/stapOF3Ipl] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_4c24a6feff91c0788091460de2197891_5006.ko" in 650usr/270sys/843real ms.
Pass 4: compilation failed. [man error::pass4]
----------------
<@fche> so the problem appears to be that struct svc_fh's declaration moved from include/linux/nfsd/nfsfh.h to
fs/nfsd/nfsfh.h
<@fche> the latter is not accessible to stap's embedded-c code
Using upstream 957812a bits, this looks fixed except on powerpc (using kernel-3.10.0-215.el7.ppc64):
=======
semantic error: not accessible at this address (pc: 0x191bc) [man error::dwarf]: identifier '$fhp' at /usr/share/systemtap/tapset/linux/nfsd.stp:1093:16
dieoffset: 0x5376b from /usr/lib/debug/lib/modules/3.10.0-215.el7.ppc64/kernel/fs/nfsd/nfsd.ko.debug
function: nfsd_open at fs/nfsd/vfs.c:822 inlined by nfsd_get_tmp_read_open at fs/nfsd/vfs.c:1129
alternative locations: [0x191d4,0x191db], [0x191db,0x19264], [0x19264,0x19430], [0x19430,0x19480], [0x19480,0x19484], [0x19484,0x194d0], [0x194d0,0x1952c], [0x1952c,0x1953c], [0x1953c,0x19564]
source: fh = __svc_fh($fhp)
^
=======
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://rhn.redhat.com/errata/RHEA-2015-0373.html
With systemtap-2.6-7.el7 and kernel-3.10.0-206.el7 I see following issue: # stap -v -c 'ls /tmp/some-nfs-mounted-dir' -e 'probe nfsd.open{print(fh)}' Pass 1: parsed user script and 114 library script(s) using 218252virt/35588res/3020shr/33140data kb, in 150usr/20sys/163real ms. Pass 2: analyzed script: 3 probe(s), 4 function(s), 7 embed(s), 1 global(s) using 342580virt/161080res/4156shr/157468data kb, in 1720usr/380sys/2110real ms. Pass 3: translated to C into "/tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.c" using 342580virt/161380res/4456shr/157468data kb, in 200usr/60sys/254real ms. /tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.c: In function ‘function___svc_fh’: /tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.c:240:28: error: dereferencing pointer to incomplete type struct knfsd_fh *fh = &fhp->fh_handle; ^ make[2]: *** [/tmp/stapOF3Ipl/stap_4c24a6feff91c0788091460de2197891_5006_src.o] Error 1 make[1]: *** [_module_/tmp/stapOF3Ipl] Error 2 WARNING: kbuild exited with status: 2 Pass 4: compiled C into "stap_4c24a6feff91c0788091460de2197891_5006.ko" in 650usr/270sys/843real ms. Pass 4: compilation failed. [man error::pass4] ---------------- <@fche> so the problem appears to be that struct svc_fh's declaration moved from include/linux/nfsd/nfsfh.h to fs/nfsd/nfsfh.h <@fche> the latter is not accessible to stap's embedded-c code