lkml.org 
[lkml]   [2000]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH #2] console lock grabbed too early in printk...
Date
Chris Lattner writes:
> The sequence of events goes like this:
> 1. printk of args to sys_access
> 2. printk grabs the console lock
> 3. vfprintf is called, but one of the strings (the filename) resides on a
> page that hasn't been materialized yet.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is the real bug.

> 4. page fault occurs
> 5. page fault handler runs, maps page
> 6. Page mapping causes printk
> 7. printk causes deadlock as it attempts to grab the console lock that the
> kernel thread already has...

printk is not broken. Your debug code is.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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