From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9296A385736C; Wed, 20 Apr 2022 14:45:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9296A385736C From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/29076] New: user_string_quoted() doesn't properly generate strings in .rodata on x86_64 machines Date: Wed, 20 Apr 2022 14:45:52 +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 attachments.created 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 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: Wed, 20 Apr 2022 14:45:52 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29076 Bug ID: 29076 Summary: user_string_quoted() doesn't properly generate strings in .rodata on x86_64 machines 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: --- Created attachment 14073 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14073&action=3Ded= it User-space and systemtap script showing issue with .rodata strings When triaging the testsuite systemtap.syscall/syscall.exp failures I found = that strings that were stored in the .rodata section were not properly printed on x86_64 fedora 35 machine. In their place was the pointer value passed in f= or the string location. Have a little example demonstrating the issue in x86_ro_string.tar.gz: $ uname -a Linux fedora 5.16.20-200.fc35.x86_64 #1 SMP PREEMPT Wed Apr 13 22:09:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux $ gcc -o acct2 -O2 acct2.c $ sudo stap -c ./acct2 sys_acct.stp=20 [sudo] password for wcohen:=20 kprobe.function("__x64_sys_acct")?(0x402010) kprobe.function("__x64_sys_acct")?("foobar") kprobe.function("__x64_sys_acct")?(0xffffffffffffffff) --=20 You are receiving this mail because: You are the assignee for the bug.=