lkml.org 
[lkml]   [1998]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: copy_from_user() fix
> Consider a userland pointer verification library that worked in about
> 10 lines of code by passing the pointer in question to a sys_write()
> call to /dev/null... but this wouldn't work actually these days due to
> how the kernel won't even verify the pointer in this case.

It would probably work on several systems, but all standards I know
of say that passing of invalid pointer to syscalls has totally undefined
effect. Dirty, unportable, hic sunt leones :))

Anyway, it might be interesting to implement a reliable way how to
check address ranges (a syscall or maybe a ioctl on /proc/self/mem?)...

Have a nice fortnight
--
Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"A LISP programmer knows value of everything, but cost of nothing."

-
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.altern.org/andrebalsa/doc/lkml-faq.html

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