From: "dannf at dannf dot org" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug uprobes/28923] dtrace predictable temp file causes race
Date: Fri, 25 Feb 2022 23:29:25 +0000 [thread overview]
Message-ID: <bug-28923-6586-OasTiza4E0@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28923-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=28923
dann frazier <dannf at dannf dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dannf at dannf dot org
--- Comment #3 from dann frazier <dannf at dannf dot org> ---
Created attachment 13997
--> https://sourceware.org/bugzilla/attachment.cgi?id=13997&action=edit
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 instead
I experimented with a sha hash using the user-supplied input/output file paths.
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 continue
to use mkstemp().
--
You are receiving this mail because:
You are the assignee for the bug.
next prev parent reply other threads:[~2022-02-25 23:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-25 0:12 [Bug uprobes/28923] New: " dannf at dannf dot org
2022-02-25 2:07 ` [Bug uprobes/28923] " fche at redhat dot com
2022-02-25 16:06 ` dannf at dannf dot org
2022-02-25 23:29 ` dannf at dannf dot org [this message]
2022-02-26 1:14 ` fche at redhat dot com
2022-02-26 16:21 ` dannf at dannf dot org
2022-02-28 17:33 ` dannf at dannf dot org
2022-03-01 16:06 ` fche at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-28923-6586-OasTiza4E0@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).