[DTrace-devel] [oracle/dtrace-utils] e0b7d9: dtprobed: use /proc/$pid/map_files, not the filena...

Kris Van Hees noreply at github.com
Thu Feb 12 16:07:23 UTC 2026


  Branch: refs/heads/dev-queue
  Home:   https://github.com/oracle/dtrace-utils
  Commit: e0b7d9ec245e1137e4a7566cb8b9a5e3b3ab7cd9
      https://github.com/oracle/dtrace-utils/commit/e0b7d9ec245e1137e4a7566cb8b9a5e3b3ab7cd9
  Author: Eugene Loh <eugene.loh at oracle.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M dtprobed/dtprobed.c

  Log Message:
  -----------
  dtprobed: use /proc/$pid/map_files, not the filename of the mapping

Instead of using prf->prf_mapname (which resolves to the mapped file's
target), use Pmap_mapfile_name() to get the actual
/proc/$pid/map_files/* path.  These magic symlinks can be opened even
when their corresponding files are deleted or in an inaccessible
filesystem namespace, ensuring we can read the mapping contents
reliably.  DTrace already does this to read mappings during USDT probe
lookup.

Fixes issues with probes in paths like /home when dtprobed
is sandboxed by systemd.

Tested on both systemd and non-systemd (non-jailed) systems, with USDT
programs running out of /tmp, /usr/local and /home.

Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>


  Commit: 77d969e49aeb76bc9dc60cb46f3bdf075491ae34
      https://github.com/oracle/dtrace-utils/commit/77d969e49aeb76bc9dc60cb46f3bdf075491ae34
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    R uts/common/sys/mnttab.h

  Log Message:
  -----------
  uts: remove unused header file

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>


Compare: https://github.com/oracle/dtrace-utils/compare/e2f202cea89c...77d969e49aeb

To unsubscribe from these emails, change your notification settings at https://github.com/oracle/dtrace-utils/settings/notifications



More information about the DTrace-devel mailing list