From nobody Thu Aug 3 11:04:14 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RGmFC2WG4zZYZx for ; Thu, 3 Aug 2023 11:04:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RGmFB6lZ5z3RFq for ; Thu, 3 Aug 2023 11:04:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691060654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ge/owfZ+IwQGEU5kmvbuaCcU1kqGu6WXWVDVjxuJmus=; b=wkUTHAS5tzj8hG7BG6oNFOF2RLLCCsh4mXw8KtOvP/LAiGII2Ae5pnFq+xTB5dEHflPOB+ CBXh3HjcaSAkgaOs/oUThEYGBx2HqNsf34NPCAeOg9PPDhm0jww0bgXSi5iho4iVM0eUnZ Q0TbY0Jk24rzm+65iAoEM+uGEn/PD+/QBjTsTmYvhEaSScIWUFKCFwUAUrgjfZ8oHJgsgG mfl1IXtFAYbumRITAmI5YCAKBJcQGzjmypcy3QmvtTvRJ2mF9cgomr4cM+UkEjgeCS4vuW jzKdOfeg+8QEhHFKJDiD+9ro+maj9EiCWvW2KLYzsGPq4AwuB/yDBBbtCEK1sQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691060654; a=rsa-sha256; cv=none; b=MC4KmdnSIR9RRC/N0Xb1J0oSsEf/bShULx9o/WFgGwblcqFkqIMzmFVbdsOdq//4RPdmmF QWBSCq2AYZ2I5mDzsX0btwrEQHz4EebOa3AuicgEBrsbNWWY8a8N83BduEzj3wJjmqpZyM XQh6K4ym+3UaPynw0L1iU7JYMTZcnM7oMMoR7qkMHMJw8tnBGd2UpwPHaM6KEOuyBZnUaa KGDGRO6DneB8z84gasCIDUVaLZMVw3mkREjNQ/xxLjPYXi31iuaBpixpQuS52nh42ws6fj PpVkUQsxyE8nPON5HcqvjjXcuUtYNoZVzXSiMY5hrREr5eijGBL2G5ObWYPsRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RGmFB5ndlz3vq for ; Thu, 3 Aug 2023 11:04:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 373B4EXa031356 for ; Thu, 3 Aug 2023 11:04:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 373B4EI0031355 for bugs@FreeBSD.org; Thu, 3 Aug 2023 11:04:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272775] procfs "file" entry pointing to nothing? Date: Thu, 03 Aug 2023 11:04:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pen@lysator.liu.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272775 --- Comment #1 from Peter Eriksson --- Created attachment 243821 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243821&action= =3Dedit Script checking that /proc//file symlink can be read Attached a sample test script that can be run from crontab (for example) to check for unreadable /proc//file symlinks. Here's an example of it's output from one of my servers right now: > # bin/check_procfs > 34687: Unable to get exec path > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > peter 34687 0.0 0.0 21444 11040 - S 00:40 0:00.24 sshd: peter= @pts/3 (sshd) > 47882: Unable to get exec path > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > peter 47882 0.0 0.0 21444 10952 - I Mon11 0:00.82 sshd: peter= @pts/0 (sshd) > # ls -l /proc/34687/ > total 0 > -r--r--r-- 1 peter admins 0 Aug 3 12:57 cmdline > -r--r--r-- 1 peter admins 0 Aug 3 12:57 etype >=20 > ls: /proc/34687//file: No such file or directory > lr--r--r-- 1 peter admins 0 Aug 3 12:57 file > -r--r--r-- 1 peter admins 0 Aug 3 12:57 map > -r--r--r-- 1 peter admins 0 Aug 3 12:57 rlimit > -r--r--r-- 1 peter admins 0 Aug 3 12:57 status --=20 You are receiving this mail because: You are the assignee for the bug.=