* Insertion of die_if_kernel in unaligned.c
@ 2001-05-03 10:39 Carsten Langgaard
2001-05-03 17:21 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Carsten Langgaard @ 2001-05-03 10:39 UTC (permalink / raw)
To: linux-mips
In the latest version of arch/mips/kernel/unaligned.c, there has been
inserted some calls to the die_if_kernel, which check if we are running
in kernel mode and if so dies.
I'm not so sure this is the right thing to do, the floating point
emulator will in some cases generate an address error (e.g. if emulating
a swc1 to an unaligned address). The result is that an user application
can crash the kernel.
/Carsten
--
_ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com
|\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527
| \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555
TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556
Denmark http://www.mips.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Insertion of die_if_kernel in unaligned.c
2001-05-03 10:39 Insertion of die_if_kernel in unaligned.c Carsten Langgaard
@ 2001-05-03 17:21 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2001-05-03 17:21 UTC (permalink / raw)
To: Carsten Langgaard; +Cc: linux-mips
On Thu, May 03, 2001 at 12:39:20PM +0200, Carsten Langgaard wrote:
> In the latest version of arch/mips/kernel/unaligned.c, there has been
> inserted some calls to the die_if_kernel, which check if we are running
> in kernel mode and if so dies.
> I'm not so sure this is the right thing to do, the floating point
> emulator will in some cases generate an address error (e.g. if emulating
> a swc1 to an unaligned address). The result is that an user application
> can crash the kernel.
They're wrong and what's worse, I knew about them. The unaligned from
kernelspace case can also be triggered from the network stack so this
leaves machines open to remote DoS.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-03 17:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-03 10:39 Insertion of die_if_kernel in unaligned.c Carsten Langgaard
2001-05-03 17:21 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox