]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix potential DOS by untrusted user app.
authorVlad Malov <Vlad.Malov@caviumnetworks.com>
Tue, 18 Nov 2008 23:05:46 +0000 (15:05 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 4 Dec 2008 17:47:26 +0000 (17:47 +0000)
commit6683d1186f195d24dd52704f261a80f13358b03c
treea9b61e4d8f4e53a81df3bb14df0a4c2b037d8d81
parent04aaae7092d235f1cc412c8f839a05d46b4c183b
MIPS: Fix potential DOS by untrusted user app.

On a 64 bit kernel if an o32 syscall was made with a syscall number less
than 4000, we would read the function from outside of the bounds of the
syscall table.  This led to non-deterministic behavior including system
crashes.

While we were at it we reworked the 32 bit version as well to use fewer
instructions.  Both 32 and 64 bit versions are use the same code now.

Signed-off-by: Vlad Malov <Vlad.Malov@caviumnetworks.com>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall64-o32.S