All of lore.kernel.org
 help / color / mirror / Atom feed
* VERIFY_READ/WRITE in uaccess.h?
@ 2015-05-10  9:44 Richard Weinberger
  2015-05-11 21:05 ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Weinberger @ 2015-05-10  9:44 UTC (permalink / raw)
  To: Linux-Arch; +Cc: linux-kernel@vger.kernel.org, Linus Torvalds, Arnd Bergmann

Hi!

While cleaning up UML's uaccess code I've noticed that not a single architecture
is using VERIFY_READ/WRITE in access_ok().
One exception is UML, it uses the access type in one check which is in vain anyways.
Also asm-generic/uaccess.h drops the type parameter silently.

Why do we still carry it around?

Is it because we want it for some future architecture which can benefit
from it or just because nobody cared enough to do a tree-wide cleanup?
I fear it is the latter... ;)

Thanks,
//richard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-12  5:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-10  9:44 VERIFY_READ/WRITE in uaccess.h? Richard Weinberger
2015-05-11 21:05 ` H. Peter Anvin
2015-05-11 21:26   ` Richard Weinberger
2015-05-11 21:42   ` Linus Torvalds
2015-05-12  5:47     ` H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.