Re: [PATCH] bpf: Call rcu_read_unlock() before copy_to_user()

From: Alexei Starovoitov <hidden>
Date: 2015-01-22 18:03:31
Also in: lkml

On Thu, Jan 22, 2015 at 9:54 AM, Michael Holzheu
[off-list ref] wrote:
quoted
quoted
So call rcu_read_unlock() before copy_to_user(). We can
release the lock earlier because it is not needed for copy_to_user().
we cannot move the rcu unlock this way, since it protects the value.
So we need to copy the value while still under rcu.
Ok, right. I assume you will provide the correct fix.
sure :) will do.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help