From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 063133858035; Wed, 1 Nov 2023 06:26:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 063133858035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698820016; bh=/MlxHJwUxRJDt0FE4PCPgVIJwQKSyk6gPcV5EZIwfik=; h=From:To:Subject:Date:From; b=orkN54BS1vyPl1YS48MNKJM9BmqRPFtW6UZXz8LRP2D/CFJup1KHUPga41JNTDUAh 84JKFeDzSWYpSbQEofMSJf3jS7+dne3IyJNX40Tqj9LnLJwHfxUMUFB8WLmVThJ9kT df2rEfdH3OlVt9cZDHhdC/NqfzGnkolZqZ8s5bb4= From: "agentzh at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/31020] New: Use of symlinks in probe process(PATH).* would confuse task finder when matching procname Date: Wed, 01 Nov 2023 06:26:55 +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: agentzh at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31020 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`, whe= n we use symlinks for PATH, the task finder would silently fail to match the tar= get 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 ri= ght 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). --=20 You are receiving this mail because: You are the assignee for the bug.=