aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2020-01-21 03:22:31 +0000
committerDaniel Borkmann <[email protected]>2020-01-22 10:31:21 +0000
commit05d57f1793fb250c85028c9952c3720010baa853 (patch)
tree746224e9acb03427aba28b7bb61e160379115f52 /net/ipv4/tcp_output.c
parentxsk, net: Make sock_def_readable() have external linkage (diff)
downloadkernel-05d57f1793fb250c85028c9952c3720010baa853.tar.gz
kernel-05d57f1793fb250c85028c9952c3720010baa853.zip
bpf: Fix trampoline usage in preempt
Though the second half of trampoline page is unused a task could be preempted in the middle of the first half of trampoline and two updates to trampoline would change the code from underneath the preempted task. Hence wait for tasks to voluntarily schedule or go to userspace. Add similar wait before freeing the trampoline. Fixes: fec56f5890d9 ("bpf: Introduce BPF trampoline") Reported-by: Jann Horn <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions