Messages in this thread | | | Date | Fri, 13 Aug 1999 21:45:49 +0200 | From | Manfred Spraul <> | Subject | Re: 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/
| |