lkml.org 
[lkml]   [1998]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: mmap() bug in 2.1.106
Date
In article <vyz1zslrbcq.fsf@issan.informatik.uni-dortmund.de>,
Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> wrote:
>
>Here is a patch. The problem is that it faults in copy_from_user on the
>null pointer reference, and the fault handler wants to grap the mmap
>semaphore again -> deadlock.

Don't apply this one. It changes one deadlock for another.

We need to get the mm semaphore before we get the kernel lock. So you
have to move down both the "down()" _and_ the "lock_kernel()".

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.181 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site