From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 121EE3858D3C; Fri, 4 Feb 2022 19:40:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 121EE3858D3C From: "v.mayatskih at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/27465] ERROR: Couldn't insert module&Invalid module format Date: Fri, 04 Feb 2022 19:40:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: v.mayatskih at gmail dot com X-Bugzilla-Status: WAITING 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: Message-ID: In-Reply-To: References: 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 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2022 19:40:32 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27465 --- Comment #7 from Vitaly Mayatskikh --- check_version fails for module_layout: 204 insmod(43808): ->check_version info=3D{.name=3D"stap_30878", .mod=3D0xffffa1dc617d1740, .hdr=3D0xffffa1dc617c1000, .len=3D142104, .sechdrs=3D0xffffa1dc617e3098, .secstrings=3D"", .strtab=3D"", .symoffs=3D0, .stroffs=3D0, .init_typeoffs=3D0, .core_typeoffs=3D0, .debug=3D0x0, .num_de= bug=3D0, .sig_ok=3D0, .mod_kallsyms_init_off=3D0, .index=3D{.sym=3D39, .str=3D40, .m= od=3D34, .vers=3D0, .info=3D21, .pcpu=3D32}} symname=3D"module_layout" crc=3D-129063= 1832 mod=3DERROR 207 insmod(43808): <-check_version return=3D0x0 This is for non-guru case (does not fail): 311 insmod(43893): ->check_version info=3D{.name=3D"stap_11738", .mod=3D0xffffa1dc617d1c00, .hdr=3D0xffffa1dc617c1000, .len=3D139264, .sechdrs=3D0xffffa1dc617e2540, .secstrings=3D"", .strtab=3D"", .symoffs=3D0, .stroffs=3D0, .init_typeoffs=3D0, .core_typeoffs=3D0, .debug=3D0x0, .num_de= bug=3D0, .sig_ok=3D0, .mod_kallsyms_init_off=3D0, .index=3D{.sym=3D40, .str=3D41, .m= od=3D35, .vers=3D24, .info=3D21, .pcpu=3D33}} symname=3D"module_layout" crc=3D-12906= 31832 mod=3DERROR 319 insmod(43893): <-check_version return=3D0x1 ____versions symbol is missing in the "broken" module: $ sudo readelf -a /tmp/stapzTtc4M/stap_11738.ko | grep version [24] __versions PROGBITS 0000000000000000 0000cc80 27: 0000000000000076 35 OBJECT LOCAL DEFAULT 21 __UNIQUE_ID_srcversion127 29: 0000000000000000 8832 OBJECT LOCAL DEFAULT 24 ____versions $ sudo readelf -a /tmp/stapykqAs1/stap_30878.ko | grep version 26: 00000000000000a3 35 OBJECT LOCAL DEFAULT 21 __UNIQUE_ID_srcversion127 Adding -B CONFIG_MODVERSIONS=3Dy solved it for me. And this is where it gets messed up: buildrun.cxx: // PR10280: suppress symbol versioning to restrict to exact kernel version // // XXX (PR24720): this was reported to cause problems on a PPC machine, // and I've spotted kernel commits (43e24e82f35) which vary the vermagic // string for PPC. Still, a standard PPC configuration tested fine, so // I'm cautiously re-enabling this. if (s.guru_mode) make_cmd.push_back("CONFIG_MODVERSIONS=3D"); // Note: can re-enable from command line with "-B CONFIG_MODVERSIONS=3Dy". --=20 You are receiving this mail because: You are the assignee for the bug.=