Magnus Karlsson
7762afa04f
samples/bpf: Fix possible deadlock in xdpsock
...
[ Upstream commit 5a2a0dd88f0f267ac5953acd81050ae43a82201f ]
Fix a possible deadlock in the l2fwd application in xdpsock that can
occur when there is no space in the Tx ring. There are two ways to get
the kernel to consume entries in the Tx ring: calling sendto() to make
it send packets and freeing entries from the completion ring, as the
kernel will not send a packet if there is no space for it to add a
completion entry in the completion ring. The Tx loop in l2fwd only
used to call sendto(). This patches adds cleaning the completion ring
in that loop.
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/1599726666-8431-3-git-send-email-magnus.karlsson@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-05 11:43:17 +01:00
..
auxdisplay
auxdisplay: Fix a typo in cfag12864b-example.c
2019-08-08 20:00:18 +02:00
binderfs
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
bpf
samples/bpf: Fix possible deadlock in xdpsock
2020-11-05 11:43:17 +01:00
configfs
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
2019-05-30 11:25:18 -07:00
connector
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
hidraw
hw_breakpoint
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
kdb
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
kfifo
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 465
2019-06-19 17:09:10 +02:00
kobject
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
kprobes
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
livepatch
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13
2019-05-21 11:28:45 +02:00
mei
mic /mpssd
misc: vop: add round_up(x,4) for vring_size to avoid kernel panic
2020-10-29 09:58:04 +01:00
pidfd
samples: make pidfd-metadata fail gracefully on older kernels
2019-06-24 15:55:50 +02:00
pktgen
samples: pktgen: fix proc_cmd command result check logic
2019-12-31 16:43:45 +01:00
qmi
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
rpmsg
samples/rpmsg: Introduce a module parameter for message count
2019-08-26 22:10:39 -07:00
seccomp
samples/seccomp: Zero out members based on seccomp_notif_sizes
2020-01-09 10:19:57 +01:00
timers
trace_events
sched/core: Provide a pointer to the valid CPU mask
2019-06-03 11:49:37 +02:00
trace_printk
samples/trace_printk: Wait for IRQ work to finish
2020-01-09 10:20:00 +01:00
uhid
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
v4l
media: v4l2-pci-skeleton.c: fix doc warning
2019-05-28 13:14:28 -04:00
vfio-mdev
vmalloc: fix remap_vmalloc_range() bounds checks
2020-04-29 16:33:14 +02:00
vfs
samples/vfs: avoid warning in statx override
2020-07-09 09:37:54 +02:00
watchdog
Kconfig
docs: driver-api: add a series of orphaned documents
2019-07-15 11:03:02 -03:00
Makefile
kbuild: add CONFIG_HEADERS_INSTALL and loosen the dependency of samples
2019-06-15 19:57:01 +09:00