Bug 210655 - ptrace(2) documentation is incorrect about access checking threads in same thread group
Summary: ptrace(2) documentation is incorrect about access checking threads in same th...
Status: NEW
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL: https://man7.org/linux/man-pages/man2...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-11 23:53 UTC by Ted Estes
Modified: 2020-12-15 18:24 UTC (History)
1 user (show)

See Also:
Kernel Version:
Tree: Mainline
Regression: No


Attachments

Description Ted Estes 2020-12-11 23:53:48 UTC
Under "Ptrace access mode checking", the documentation states:
  "1. If the calling thread and the target thread are in the same thread group, access is always allowed."

This is incorrect. A thread may never attach to another in the same group.

Reference, ptrace_attach()
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/kernel/ptrace.c?h=v5.9.14#n380

Note You need to log in before you can comment on or make changes to this bug.