From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 665B53858421; Wed, 5 Jul 2023 14:21:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 665B53858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688566896; bh=/QC+5wtf8AFWAEtNJVMh+DQ/psm6KFlv0y32F649rsc=; h=From:To:Subject:Date:From; b=V5Wi+XCtUlXV0Q5IFK3Vid+uEMeJqkhKbriQx8CXxbXgnDNpB/VuodJXRHK0P4n+b pT6O6/SVvqJSQ+wRos3oZKXvLEkXgMH76uKI15NciVL0oHSR2Ifw0F4nBP2UYwhnx/ ESB6UJsNuI2WnL/t1A+Z6gYVFa6ojeYRlTaV7Th8= From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/30617] New: Systemtap unable to successfully build kernel modules linux-6.5 Date: Wed, 05 Jul 2023 14:21:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30617 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 w= ith "make installcheck" the smoke test will fail with the following messages.= =20=20 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_p= rocess_vm.h: In function '__access_process_vm_': /home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_p= rocess_vm.h:57:36: error: passing argument 1 of 'get_user_pages_remote' from incompatible poin= ter type [-Werror=3Dincompatible-pointer-types] 57 | ret =3D get_user_pages_remote (tsk, mm, addr, 1, write, 1, &p= age, &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 argum= ent 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_p= rocess_vm.h:57:41: error: passing argument 2 of 'get_user_pages_remote' makes integer from poi= nter without a cast [-Werror=3Dint-conversion] 57 | ret =3D get_user_pages_remote (tsk, mm, addr, 1, write, 1, &p= age, &vma); | ^~ | | | struct mm_struct * ./include/linux/mm.h:2378:42: note: expected 'long unsigned int' but argume= nt is of type 'struct mm_struct *' 2378 | unsigned long start, unsigned long nr_pa= ges, | ~~~~~~~~~~~~~~^~~~~ /home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_p= rocess_vm.h:57:54: error: passing argument 5 of 'get_user_pages_remote' makes pointer from int= eger without a cast [-Werror=3Dint-conversion] 57 | ret =3D get_user_pages_remote (tsk, mm, addr, 1, write, 1, &p= age, &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 **pa= ges, | ~~~~~~~~~~~~~~^~= ~~~ /home/wcohen/systemtap_write/install/share/systemtap/runtime/linux/access_p= rocess_vm.h:57:61: error: passing argument 6 of 'get_user_pages_remote' makes pointer from int= eger without a cast [-Werror=3Dint-conversion] 57 | ret =3D get_user_pages_remote (tsk, mm, addr, 1, write, 1, &p= age, &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_p= rocess_vm.h:57:13: error: too many arguments to function 'get_user_pages_remote' 57 | ret =3D get_user_pages_remote (tsk, mm, addr, 1, write, 1, &p= age, &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 --=20 You are receiving this mail because: You are the assignee for the bug.=