From: "Szőts Ákos" <szotsaki@gmail.com>
To: mtk.manpages@gmail.com
Cc: alx.manpages@gmail.com, linux-man@vger.kernel.org
Subject: /proc/<pid>/stat file documentation
Date: Mon, 22 Mar 2021 09:48:30 +0100 [thread overview]
Message-ID: <2836850.zfUPAMbaDK@opensuse> (raw)
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
Dear Michael,
I found a documentation deficiency on [1] in /proc/<pid>/stat file (Table
1-4). May I ask you to indicate in this table that ESP and EIP have non-zero
values only when the process is exiting or dumping core and the calling
process has the permission for PTRACE_MODE_READ_FSCREDS | PTRACE_MODE_NOAUDIT.
For implementation reference see [2].
Please, also note that for many of the reported numbers in this table the
aforementioned permissions are needed to be displayed correctly (as non-
zeroes). They are start_code, end_code, start_stack, esp, eip, wchan,
start_data, end_data, start_brk, arg_start, arg_end, env_start, env_end, and
exit_code.
A small addition: I also observed that on [3] the "blog" points to 404.
Thank you and all the best,
Ákos
[1]: https://www.kernel.org/doc/html/latest/filesystems/proc.html
[2]: https://github.com/torvalds/linux/blob/master/fs/proc/array.c#L481-L502
[3]: https://www.kernel.org/doc/man-pages/maintaining.html
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2021-03-22 8:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-22 8:48 Szőts Ákos [this message]
2021-03-24 18:19 ` /proc/<pid>/stat file documentation Stefan Puiu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2836850.zfUPAMbaDK@opensuse \
--to=szotsaki@gmail.com \
--cc=alx.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox