Re: [Patch]: write_kmem above high_memory
Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 4 Jan 2000 13:59:31 +0000 (GMT)
> > functions, and instead protect the read/writes with a exception table
> > entry similar to copy_from/to_user. Only drawback is that it needs
> > per architecture support.
> >
>
> set_fs(KERNEL_DS) + get_user()/__get_user()?
>
> BUT: that's dangerous, because we might read from the mmap'ed io space
> of a hardware device.
You are not guaranteed to get exception faults on invalid writes. Not all
platforms support them even. Eg i386 writes to user pages marked R/O will
not fault.
-
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/