public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/31020] New: Use of symlinks in probe process(PATH).* would confuse task finder when matching procname
@ 2023-11-01  6:26 agentzh at gmail dot com
  2023-11-04 21:28 ` [Bug runtime/31020] " agentzh at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: agentzh at gmail dot com @ 2023-11-01  6:26 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=31020

            Bug ID: 31020
           Summary: Use of symlinks in probe process(PATH).* would confuse
                    task finder when matching procname
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: agentzh at gmail dot com
  Target Milestone: ---

For probes like `process("PATH").begin` and `process("PATH").function`, when we
use symlinks for PATH, the task finder would silently fail to match the target
processes' procname.

We should always resolve PATH at runtime to the real file path. The target
processes' process names and mmap file paths are always real file paths.

This is especially important once we do early inode uprobe registrations right
before the task finder is started, where we also resolve the real inode for the
PATH string without inspecting running processes (and also when we have to
specify symlinks like /proc/PID/exe link for deleted ELF files).

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug runtime/31020] Use of symlinks in probe process(PATH).* would confuse task finder when matching procname
  2023-11-01  6:26 [Bug runtime/31020] New: Use of symlinks in probe process(PATH).* would confuse task finder when matching procname agentzh at gmail dot com
@ 2023-11-04 21:28 ` agentzh at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: agentzh at gmail dot com @ 2023-11-04 21:28 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=31020

agentzh <agentzh at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from agentzh <agentzh at gmail dot com> ---
Fixed in commit 81b2ee28207.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-04 21:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-01  6:26 [Bug runtime/31020] New: Use of symlinks in probe process(PATH).* would confuse task finder when matching procname agentzh at gmail dot com
2023-11-04 21:28 ` [Bug runtime/31020] " agentzh at gmail dot com

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).