From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA1363858C1F; Fri, 25 Feb 2022 23:29:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA1363858C1F From: "dannf at dannf dot org" To: systemtap@sourceware.org Subject: [Bug uprobes/28923] dtrace predictable temp file causes race Date: Fri, 25 Feb 2022 23:29:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: uprobes X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dannf at dannf dot org X-Bugzilla-Status: UNCONFIRMED 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: cc 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 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, 25 Feb 2022 23:29:26 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28923 dann frazier changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dannf at dannf dot org --- Comment #3 from dann frazier --- Created attachment 13997 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13997&action=3Ded= it Hash inputs to create predictable temporary name for .c file I didn't find a good way to alter the random seed used by mkstemp(), so ins= tead I experimented with a sha hash using the user-supplied input/output file pa= ths. See attached. This works for my use case, though I'd prefer a solution that overrides the .file directive if we can figure out how to do that and conti= nue to use mkstemp(). --=20 You are receiving this mail because: You are the assignee for the bug.=