[lkml]   [2005]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 11/16] IB uverbs: add mthca mmap support
    Michael> Roland, I think VM_DONTCOPY is needed here.

Michael> If a process forks, we must prevent the child from
Michael> accessing the parent's hardware page. Otherwise the child
Michael> can corrupt the parent's queues since the hardware wont
Michael> be able to distinguish between parent and child.

Michael> Does this make sense?

This is true, but there are a number of pieces that are required
before fork will work for processes using userspace verbs. One of the
ingredients that's missing is adding something like PROT_DONTCOPY for
mprotect(). Once that's in place, an app can use that on the
doorbell page before forking.

I don't consider this attack by children of a process very serious,
since a process can always fork, munmap the doorbell page in the child
process, and then fork the untrusted child into yet another child.

- R.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-07-06 00:20    [W:0.068 / U:9.404 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site