Messages in this thread | | | Date | Fri, 23 Nov 2012 21:27:41 +0100 | From | Oleg Nesterov <> | Subject | [PATCH 0/7] uprobes: register/unregister preparations for filtering |
| |
Hello.
Srikar, it is not clear if you was convinced or not during the last discussion. We will discuss this again probably. So far I am sending the initial changes which (I think) make sense in any case. Please review.
The next step is locking. Alas, we can not use consumer_rwsem to protect the list in filter_chain(). Whatever we do, at least uprobe_mmap() needs to do this under mm->mmap_sem. And we do want to allow uc->handler() to play with current->mm.
Then we will actually immplement filter_chain(), this should be trivial unless you insist we need for_each_mm_user() (cough, I hope you do not ;).
Then we will try to solve the problem with fork.
Oleg.
| |