[lkml]   [2001]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Potenitial security hole in the kernel
On Tue, May 29, 2001 at 12:30:03AM +0200, Vadim Lebedev wrote:
> Kurt,
> Maybe i'm missing something but it seems that during execution of the signal
> handler, user mode stack contains kernel mode context...
> Hence the security hole

It's rather complicated how things work.

Both the user and kernel stack are changed.

On the user stack we add a frame from the calling function. This
just looks a function call.

On the kernel stack we change the last frame so we "return" to
the signal handler from the kernel.

The signal handler then "returns" to the place where the process
did the system call. You do not return to the kernel.

I hope this helps you understand things better.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:54    [W:0.109 / U:0.124 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site