Re: mmap() bug in 2.1.106

Linus Torvalds (torvalds@transmeta.com)
22 Jun 1998 21:20:54 GMT


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