Messages in this thread | | | From | Alexei Starovoitov <> | Date | Thu, 22 Jan 2015 10:03:09 -0800 | Subject | Re: [PATCH] bpf: Call rcu_read_unlock() before copy_to_user() |
| |
On Thu, Jan 22, 2015 at 9:54 AM, Michael Holzheu <holzheu@linux.vnet.ibm.com> wrote: >> > 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.
| |