[Bug 258729] linprocfs regression: /compat/linux/proc/*/cwd wrongly points to calling process's cwd for all PIDs

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Sep 2021 06:28:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258729

            Bug ID: 258729
           Summary: linprocfs regression: /compat/linux/proc/*/cwd wrongly
                    points to calling process's cwd for all PIDs
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: damjan.jov@gmail.com

/compat/linux/proc/N/cwd is supposed to be a symlink to the CWD for PID N. In
FreeBSD 13, it's regressed to always being a symlink to the calling process's
CWD instead.

Example at https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/121

The code is in sys/compat/linprocfs/linprocfs.c function linprocfs_doproccwd().
It got changed at least twice in 2020.

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