]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RAMOOPS: Don't overflow over non-allocated regions
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 25 Dec 2010 09:57:09 +0000 (11:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:42 +0000 (13:58 -0800)
commit8a228e5dcd2e464a974a06b4460f124afbe80ad3
treedc48587d3fc6f4c2c0dd0ba1a35c8698800e819b
parent879ef03a76c5169898a121e988f3eaaabb95d73a
RAMOOPS: Don't overflow over non-allocated regions

commit 1873bb8115e678ad9fd0aac9dbbc68383bc36e06 upstream.

The current code mis-calculates the ramoops header size, leading to an
overflow over the next record at best, or over a non-allocated region at
worst.  Fix that calculation.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Acked-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/ramoops.c