lkml.org 
[lkml]   [1999]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.3.12 - klogd 100%CPU
Andrea Arcangeli wrote:
>
> On Thu, 12 Aug 1999, Manfred Spraul wrote:
>
> >But now my solution is far better. Alloc memory, check that you have
>
> In your solution you are doing a memmove from a to an userspace buffer.
> When you are in kernel you can touch userspace only if you have set a
> fixup entry.

It seems that there is no portable way to copy_to_from_user(), so I
replaced the memmove() with a __put_user()/__get_user() loop.

http://www.colorfullife.com/manfreds/patch-console_lock

Note that you have to disable IRQ's for a byte-wise move of up to 16 kB
memory, this could take quite a long time.

--
Manfred


-
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:53    [W:0.925 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site