From: Roland McGrath Date: Wed, 6 Feb 2008 21:39:44 +0000 (+0100) Subject: x86 ptrace: disallow null cs/ss X-Git-Tag: v2.6.25-rc1~513^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c63855d04034c96db791a7217954c93aa66d24cb;p=pandora-kernel.git x86 ptrace: disallow null cs/ss In my revamp of the x86 ptrace code for setting register values, I accidentally omitted a check that was there in the old code. Allowing %cs to be 0 causes a bad crash in recovery from iret failure. This patch fixes that regression against 2.6.24, and adds a comment that should help prevent this subtlety from being overlooked again. Signed-off-by: Roland McGrath Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed