linux/net/core
John Fastabend 552de91068 bpf: sk_msg, fix socket data_ready events
When a skb verdict program is in-use and either another BPF program
redirects to that socket or the new SK_PASS support is used the
data_ready callback does not wake up application. Instead because
the stream parser/verdict is using the sk data_ready callback we wake
up the stream parser/verdict block.

Fix this by adding a helper to check if the stream parser block is
enabled on the sk and if so call the saved pointer which is the
upper layers wake up function.

This fixes application stalls observed when an application is waiting
for data in a blocking read().

Fixes: d829e9c411 ("tls: convert to generic sk_msg interface")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-12-20 23:47:09 +01:00
..
datagram.c net: dump more useful information in netdev_rx_csum_fault() 2018-11-15 11:37:04 -08:00
dev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-12-09 21:43:31 -08:00
dev_addr_lists.c net: core: dev_addr_lists: add auxiliary func to handle reference address updates 2018-11-08 20:30:57 -08:00
dev_ioctl.c net: core: dev: Add extack argument to dev_change_flags() 2018-12-06 13:26:07 -08:00
devlink.c devlink: Add 'fw_load_policy' generic parameter 2018-12-03 13:55:43 -08:00
drop_monitor.c
dst.c
dst_cache.c
ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-10-19 11:03:06 -07:00
failover.c
fib_notifier.c
fib_rules.c net/fib_rules: Update fib_nl_dumprule for strict data checking 2018-10-08 10:39:05 -07:00
filter.c bpf: skmsg, replace comments with BUILD bug 2018-12-20 23:47:09 +01:00
flow_dissector.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-11-11 17:57:54 -08:00
gen_estimator.c
gen_stats.c net/core: make function ___gnet_stats_copy_basic() static 2018-09-28 10:25:11 -07:00
gro_cells.c
hwbm.c
link_watch.c net: linkwatch: add check for netdevice being present to linkwatch_do_dev 2018-09-19 21:06:46 -07:00
lwt_bpf.c
lwtunnel.c
Makefile bpf, sockmap: convert to generic sk_msg interface 2018-10-15 12:23:19 -07:00
neighbour.c neighbor: gc_list changes should be protected by table lock 2018-12-10 17:41:35 -08:00
net-procfs.c
net-sysfs.c net: core: dev: Add extack argument to dev_change_flags() 2018-12-06 13:26:07 -08:00
net-sysfs.h
net-traces.c
net_namespace.c netns: enable to dump full nsid translation table 2018-11-27 16:20:20 -08:00
netclassid_cgroup.c cgroup, netclassid: add a preemption point to write_classid 2018-10-23 12:58:17 -07:00
netevent.c
netpoll.c net: core: dev: Add extack argument to dev_open() 2018-12-06 13:26:06 -08:00
netprio_cgroup.c
page_pool.c
pktgen.c pktgen: Fix fall-through annotation 2018-09-13 15:36:41 -07:00
ptp_classifier.c
request_sock.c
rtnetlink.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-12-09 21:43:31 -08:00
scm.c
secure_seq.c
skbuff.c skbuff: Rename 'offload_mr_fwd_mark' to 'offload_l3_fwd_mark' 2018-12-04 08:36:36 -08:00
skmsg.c bpf: sk_msg, fix socket data_ready events 2018-12-20 23:47:09 +01:00
sock.c net: call sk_dst_reset when set SO_DONTROUTE 2018-12-07 16:11:54 -08:00
sock_diag.c
sock_map.c bpf: skmsg, fix psock create on existing kcm/tls port 2018-10-20 00:40:45 +02:00
sock_reuseport.c sctp: add sock_reuseport for the sock in __sctp_hash_endpoint 2018-11-12 09:09:51 -08:00
stream.c tcp: reduce POLLOUT events caused by TCP_NOTSENT_LOWAT 2018-12-04 21:21:18 -08:00
sysctl_net_core.c bpf: add bpf_jit_limit knob to restrict unpriv allocations 2018-10-25 17:11:42 -07:00
timestamping.c
tso.c
utils.c
xdp.c xdp: remove redundant variable 'headroom' 2018-09-01 01:35:53 +02:00