]> bbs.cooldavid.org Git - net-next-2.6.git/commit
kgdb: Read buffer overflow
authorJason Wessel <jason.wessel@windriver.com>
Fri, 11 Dec 2009 14:43:13 +0000 (08:43 -0600)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 11 Dec 2009 14:43:13 +0000 (08:43 -0600)
commit84667d4849b0e0a939a76f9f62d45fa3b4d59692
tree5765d861dc39cf52863ac569211a43355ef3fc29
parenta5d09d68335bb8422d5e7050c9f03f99ba6cfebd
kgdb: Read buffer overflow

Roel Kluin reported an error found with Parfait.  Where we want to
ensure that that kgdb_info[-1] never gets accessed.

Also check to ensure any negative tid does not exceed the size of the
shadow CPU array, else report critical debug context because it is an
internal kgdb failure.

Reported-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/kgdb.c