[PATCH 0/2] Fixes and cleanups in PTRACE_SETOPTIONS

From: Denys Vlasenko
Date: Fri Sep 09 2011 - 02:22:36 EST


This patchset has two changes.

First patch makes ptrace(PTRACE_SETOPTIONS, pid, 0, <bogus value>)
to error out *without* changing any task->ptrace bits.

Second patch is a cleanup: PTRACE_SETOPTIONS code
clears all option bits in task->ptrace, then sets bits one-by-one.
This is butt-ugly.

--
vda
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/