lkml.org 
[lkml]   [2000]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH #2] console lock grabbed too early in printk...
On Sun, 2 Jul 2000, Chris Lattner wrote:
> _YES_ and I found the deadlock. :) I'll describe it for you... it's the
> result of two seemingly innocuous things:

> 1. printk of arguments to the sys_access function
> 2. printk of mappings of vm pages

Not a deadlock, you are breaking rules. A simple "don't do that" fixes
the deadlock.

printk takes only kernel-space addresses. Don't expect it to page
anything in for you. That work should be done in your driver, BEFORE
calling printk.

In general, don't expect userspace addresses to be available without
help from uaccess.h or map_user_kiobuf...

Jeff





-
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.159 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site