strace receiving SIGSTOP on mips platform

Luis Dallos ld at nkvd.ignorelist.com
Fri Jan 17 12:39:37 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

This is not a strace only issue, gdb is affected too. This issue
(debugger/tracer receiving SIGSTOP) is specific of the latest
2.6.32 linux kernel series release (2.6.32.61), when commit
16365e5badcb314f350c47d4a9be90ed8a61b71a [1] was introduced
to fix CVE-2013-0871 [2].

Commit 55436c91652b45be576b91ec96a8d65f6b7447fa [3] fixes this
debug/trace issue on mips architecture. Note that this commit
was applied only on kernels >= 2.6.34.

Kind regards.

- ---

Notes:

[1]: wake_up_process() should be never used to wakeup a
TASK_STOPPED/TRACED task

[2]: Race condition in the ptrace functionality in the Linux kernel
before 3.7.5 allows local users to gain privileges via a PTRACE_SETREGS
ptrace system call in a crafted application, as demonstrated by
ptrace_death.

[3]: mips: use generic ptrace_resume code
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJS2SSIAAoJEEMgiHR4i0Q9tQEIAK0gy8t+4X4S/ZEa3GMhGQeN
lNw9un326sViSSVAwzhsD/8tLCVHgGcfqU5k/n8udG97bHZyiAs2DUYW58wL8WGm
IJXLdKPTFMcEQrVSkYmb2Jch29Sb6lV8XGB/cjvsGprbuVTzsXTVwkS4IkG39elS
M+cKj6SfuuHVRjkqtOL4Pt0moGkALyrs7KO9EZcf+dofvGdaP0/V0ffcyT0CN1+w
CS1ri983EtiNV17p3Kw6dxVNa20f74KSnIGgYUlYu9qTVNeD60wFfdpnvrAXxkGK
Ls9hlsT+oGcUEAFvWwYYy9rR3ItKlUS7Q6rGGWdYcgNgMenxCXvHPbn5hOQlqQk=
=5Xht
-----END PGP SIGNATURE-----




More information about the Strace-devel mailing list