public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/30617] New: Systemtap unable to successfully build kernel modules linux-6.5
@ 2023-07-05 14:21 wcohen at redhat dot com
  2023-07-05 14:24 ` [Bug runtime/30617] Systemtap unable to successfully build kernel modules for linux-6.5 wcohen at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: wcohen at redhat dot com @ 2023-07-05 14:21 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 30617
           Summary: Systemtap unable to successfully build kernel modules
                    linux-6.5
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: wcohen at redhat dot com
  Target Milestone: ---

Fedora rawhide recently switched to the linux-6.5 kernels.  Systemtap from the
git repo works with the earlier linux-6.4, but when attempting to run any
systemtap instrumentation on linux-6.5 the build fails.  This can be seen with
"make installcheck" the smoke test will fail with the following messages.  


In file included from
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/runtime.h:271,
                 from
/home/wcohen/systemtap_write/install/share/systemtap/runtime/runtime.h:26,
                 from
/tmp/stapndYBKY/stap_34ef71e6e2ed0e338834720b8dff538e_1736_src.c:21:
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_process_vm.h:
In function '__access_process_vm_':
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_process_vm.h:57:36:
error: passing argument 1 of 'get_user_pages_remote' from incompatible pointer
type [-Werror=incompatible-pointer-types]
   57 |       ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page,
&vma);
      |                                    ^~~
      |                                    |
      |                                    struct task_struct *
In file included from ./include/linux/kallsyms.h:13,
                 from ./include/linux/ftrace.h:13,
                 from ./include/linux/kprobes.h:28,
                 from
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/runtime.h:21:
./include/linux/mm.h:2377:46: note: expected 'struct mm_struct *' but argument
is of type 'struct task_struct *'
 2377 | long get_user_pages_remote(struct mm_struct *mm,
      |                            ~~~~~~~~~~~~~~~~~~^~
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_process_vm.h:57:41:
error: passing argument 2 of 'get_user_pages_remote' makes integer from pointer
without a cast [-Werror=int-conversion]
   57 |       ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page,
&vma);
      |                                         ^~
      |                                         |
      |                                         struct mm_struct *
./include/linux/mm.h:2378:42: note: expected 'long unsigned int' but argument
is of type 'struct mm_struct *'
 2378 |                            unsigned long start, unsigned long nr_pages,
      |                            ~~~~~~~~~~~~~~^~~~~
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_process_vm.h:57:54:
error: passing argument 5 of 'get_user_pages_remote' makes pointer from integer
without a cast [-Werror=int-conversion]
   57 |       ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page,
&vma);
      |                                                      ^~~~~
      |                                                      |
      |                                                      int
./include/linux/mm.h:2379:66: note: expected 'struct page **' but argument is
of type 'int'
 2379 |                            unsigned int gup_flags, struct page **pages,
      |                                                    ~~~~~~~~~~~~~~^~~~~
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_process_vm.h:57:61:
error: passing argument 6 of 'get_user_pages_remote' makes pointer from integer
without a cast [-Werror=int-conversion]
   57 |       ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page,
&vma);
      |                                                             ^
      |                                                             |
      |                                                             int
./include/linux/mm.h:2380:33: note: expected 'int *' but argument is of type
'int'
 2380 |                            int *locked);
      |                            ~~~~~^~~~~~
/home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_process_vm.h:57:13:
error: too many arguments to function 'get_user_pages_remote'
   57 |       ret = get_user_pages_remote (tsk, mm, addr, 1, write, 1, &page,
&vma);
      |             ^~~~~~~~~~~~~~~~~~~~~
./include/linux/mm.h:2377:6: note: declared here
 2377 | long get_user_pages_remote(struct mm_struct *mm,
      |      ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:252:
/tmp/stapndYBKY/stap_34ef71e6e2ed0e338834720b8dff538e_1736_src.o] Error 1
make[3]: *** [Makefile:2050: /tmp/stapndYBKY] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
child process exited abnormally

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-10 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-05 14:21 [Bug runtime/30617] New: Systemtap unable to successfully build kernel modules linux-6.5 wcohen at redhat dot com
2023-07-05 14:24 ` [Bug runtime/30617] Systemtap unable to successfully build kernel modules for linux-6.5 wcohen at redhat dot com
2023-07-06 16:05 ` wcohen at redhat dot com
2023-07-10 14:16 ` wcohen at redhat dot com
2023-07-10 15:08 ` wcohen at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).