From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D2EF7385828F; Tue, 13 Feb 2024 14:17:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2EF7385828F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707833860; bh=cg2IgO9322cqfpfFUAWNz1bTGdH7rTW719VjLbO/cmY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hXOhalkFYk9F5lzy7uuYfoscaWxbrKOp99GP12BV2Fz3xPXTYS4IxXZpOT//Q9LRm sDact0PHXkzF3YES8zl02+VLmSybYN0VV38hMPn0YN6LrYsP40u6Gy1mrtGWOv0ky0 T6gCWBKEwxxDKfC9VzAqQPP4ZiHpwenf5zVx9oew= From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/31373] Allow systemtap to work on kernels without strlcpy (removed in the linux-6.8.0-rc3 kernels) Date: Tue, 13 Feb 2024 14:17:39 +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: 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: attachments.created 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31373 --- Comment #2 from William Cohen --- Created attachment 15361 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15361&action=3Ded= it Proposed define to map the strlcpy to strscpy The suggestion was the approach that this patch is taking. However, there a= re some places in the generated code that make use of the return value to track the amount of buffer space used by the operation. The proposed patch adjusts the strscpy return value to make it compatible with the existing uses of the strlcpy return value. The macro definition need to be placed where it is only used by the systemt= ap generated module. Currently it pulled into code for code for the dyninst target and causes the dyninst target code to not compile.. --=20 You are receiving this mail because: You are the assignee for the bug.=