linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 210655] ptrace.2: documentation is incorrect about access checking threads in same thread group
@ 2020-12-15 17:01 Alejandro Colomar (man-pages)
  2020-12-15 18:31 ` Ted Estes
  2020-12-15 23:07 ` Jann Horn
  0 siblings, 2 replies; 14+ messages in thread
From: Alejandro Colomar (man-pages) @ 2020-12-15 17:01 UTC (permalink / raw)
  To: Pavel Emelyanov, Oleg Nesterov, Andrew Morton, Michael Kerrisk,
	Kees Cook, Jann Horn
  Cc: Ted Estes, linux-man, linux-kernel

Hi,

There's a bug report: https://bugzilla.kernel.org/show_bug.cgi?id=210655

[[
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
]]

I just wanted to make sure that it is a bug in the manual page, and not
in the implementation.


Thanks,

Alex

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-12-17 18:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 17:01 [Bug 210655] ptrace.2: documentation is incorrect about access checking threads in same thread group Alejandro Colomar (man-pages)
2020-12-15 18:31 ` Ted Estes
2020-12-15 18:34   ` Alejandro Colomar (man-pages)
2020-12-15 22:48     ` Alejandro Colomar (man-pages)
2020-12-16  0:55       ` Linus Torvalds
2020-12-16  7:34         ` Oleg Nesterov
2020-12-15 23:07 ` Jann Horn
2020-12-15 23:23   ` Alejandro Colomar (man-pages)
2020-12-15 23:25     ` Alejandro Colomar (man-pages)
2020-12-16  0:01       ` Jann Horn
2020-12-16  2:21         ` Ted Estes
2020-12-16  2:33           ` Jann Horn
2020-12-16  9:22             ` Alejandro Colomar (man-pages)
2020-12-17 18:45               ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).