[Bug runtime/33574] New: error: ‘const struct proc_ns_operations’ has no member named ‘type’

mcermak at redhat dot com sourceware-bugzilla@sourceware.org
Thu Oct 23 18:27:19 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33574

            Bug ID: 33574
           Summary: error: ‘const struct proc_ns_operations’ has no member
                    named ‘type’
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

Current release-5.3-30-g799644b7a doesn't play well with Rawhide
6.18.0-0.rc2.251021g6548d364a3e85.24.fc44.x86_64:

f44 x86_64 # stap -ve 'probe kernel.function("__do_sys_file_getattr")
{println("HIT filename=", $filename)}' -c ./a.out 
Pass 1: parsed user script and 485 library scripts using
363628virt/129588res/14332shr/149844data kb, in 290usr/180sys/187real ms.
Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals using
492344virt/259488res/15548shr/278560data kb, in 2980usr/160sys/3193real ms.
Pass 3: translated to C into
"/tmp/stapGLciBl/stap_ee08179ca7c475d3d04a9d7ca3da4d81_1442_src.c" using
492344virt/259744res/15804shr/278560data kb, in 20usr/0sys/21real ms.
In file included from
/usr/local/share/systemtap/runtime/linux/task_finder2.c:17,
                 from
/usr/local/share/systemtap/runtime/linux/task_finder.c:15,
                 from /usr/local/share/systemtap/runtime/linux/runtime.h:347,
                 from /usr/local/share/systemtap/runtime/runtime.h:26,
                 from stap_ee08179ca7c475d3d04a9d7ca3da4d81_1442_src.c:21:
/usr/local/share/systemtap/runtime/linux/stap_fs.h: In function
‘stap_set_mnt_ns’:
/usr/local/share/systemtap/runtime/linux/stap_fs.h:72:20: error: ‘const struct
proc_ns_operations’ has no member named ‘type’
   72 |         if (ns->ops->type != CLONE_NEWNS) {
      |                    ^~
make[2]: ***
[/usr/src/kernels/6.18.0-0.rc2.251021g6548d364a3e85.24.fc44.x86_64/scripts/Makefile.build:287:
stap_ee08179ca7c475d3d04a9d7ca3da4d81_1442_src.o] Error 1
make[1]: ***
[/usr/src/kernels/6.18.0-0.rc2.251021g6548d364a3e85.24.fc44.x86_64/Makefile:2046:
.] Error 2
make: *** [Makefile:248: __sub-make] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_ee08179ca7c475d3d04a9d7ca3da4d81_1442.ko" in
52360usr/9040sys/17023real ms.
Pass 4: compilation failed.  [man error::pass4]
Kernel version 6.18.0 is outside tested range 3.10 ... 6.15-rc
f44 x86_64 # locate include/linux/proc_ns.h
/usr/src/debug/kernel-6.18-rc2-8-g6548d364a3e85/linux-6.18.0-0.rc2.251021g6548d364a3e85.24.fc44.x86_64/include/linux/proc_ns.h
/usr/src/kernels/6.18.0-0.rc2.251021g6548d364a3e85.24.fc44.x86_64/include/linux/proc_ns.h
f44 x86_64 #

Most likely related to:

commit 4055526d35746ce8b04bfa5e14e14f28bb163186
Author: Christian Brauner <brauner@kernel.org>
Date:   Wed Sep 24 13:33:59 2025 +0200

    ns: move ns type into struct ns_common

    It's misplaced in struct proc_ns_operations and ns->ops might be NULL if
    the namespace is compiled out but we still want to know the type of the
    namespace for the initial namespace struct.

    Reviewed-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Christian Brauner <brauner@kernel.org>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list