Marcelo Ricardo Leitner
7906b00f5c
sctp: fix missing wake ups in some situations
...
Commit fb586f2530 ("sctp: delay calls to sk_data_ready() as much as
possible") minimized the number of wake ups that are triggered in case
the association receives a packet with multiple data chunks on it and/or
when io_events are enabled and then commit 0970f5b366 ("sctp: signal
sk_data_ready earlier on data chunks reception") moved the wake up to as
soon as possible. It thus relies on the state machine running later to
clean the flag that the event was already generated.
The issue is that there are 2 call paths that calls
sctp_ulpq_tail_event() outside of the state machine, causing the flag to
linger and possibly omitting a needed wake up in the sequence.
One of the call paths is when enabling SCTP_SENDER_DRY_EVENTS via
setsockopt(SCTP_EVENTS), as noticed by Harald Welte. The other is when
partial reliability triggers removal of chunks from the send queue when
the application calls sendmsg().
This commit fixes it by not setting the flag in case the socket is not
owned by the user, as it won't be cleaned later. This works for
user-initiated calls and also for rx path processing.
Fixes: fb586f2530 ("sctp: delay calls to sk_data_ready() as much as possible")
Reported-by: Harald Welte <[email protected] >
Signed-off-by: Marcelo Ricardo Leitner <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2017-09-08 10:02:47 -07:00
..
6lowpan
9p
Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-07-15 12:00:42 -07:00
802
8021q
appletalk
atm
net: atm: make atmdev_ops const
2017-08-09 22:43:50 -07:00
ax25
batman-adv
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-08-09 16:28:45 -07:00
bluetooth
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-09-06 14:45:08 -07:00
bpf
bridge
bridge: switchdev: Use an helper to clear forward mark
2017-09-05 11:51:47 -07:00
caif
can
rtnetlink: make rtnl_register accept a flags parameter
2017-08-09 16:57:38 -07:00
ceph
libceph: make RECOVERY_DELETES feature create a new interval
2017-08-01 16:46:45 +02:00
core
udp: drop head states only when all skb references are gone
2017-09-07 20:02:39 -07:00
dcb
rtnetlink: make rtnl_register accept a flags parameter
2017-08-09 16:57:38 -07:00
dccp
net: dccp: Add handling of IPV6_PKTOPTIONS to dccp_v6_do_rcv()
2017-08-31 11:43:47 -07:00
decnet
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
2017-09-03 17:08:42 -07:00
dns_resolver
dsa
net: dsa: tag_brcm: Set output queue from skb queue mapping
2017-09-05 11:53:34 -07:00
ethernet
hsr
net/hsr: Check skb_put_padto() return value
2017-08-22 13:40:23 -07:00
ieee802154
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-09-05 20:03:35 -07:00
ife
ipv4
udp: drop head states only when all skb references are gone
2017-09-07 20:02:39 -07:00
ipv6
ipv6: fix memory leak with multiple tables during netns destruction
2017-09-08 09:35:42 -07:00
ipx
iucv
kcm
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-09-01 17:42:05 -07:00
key
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-08-15 20:23:23 -07:00
l2tp
l2tp: pass tunnel pointer to ->session_create()
2017-09-03 11:04:21 -07:00
l3mdev
lapb
llc
mac80211
mac80211: fix deadlock in driver-managed RX BA session start
2017-09-06 15:22:02 +02:00
mac802154
mpls
rtnetlink: make rtnl_register accept a flags parameter
2017-08-09 16:57:38 -07:00
ncsi
net/ncsi: fix ncsi_vlan_rx_{add,kill}_vid references
2017-09-05 09:11:45 -07:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-09-06 14:45:08 -07:00
netlabel
netlink
netlink: access nlk groups safely in netlink bind and getname
2017-09-06 21:22:54 -07:00
netrom
nfc
nsh
nsh: add GSO support
2017-08-29 15:16:52 -07:00
openvswitch
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
2017-09-03 17:08:42 -07:00
packet
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-09-01 17:42:05 -07:00
phonet
rtnetlink: make rtnl_register accept a flags parameter
2017-08-09 16:57:38 -07:00
psample
qrtr
rtnetlink: make rtnl_register accept a flags parameter
2017-08-09 16:57:38 -07:00
rds
rds: Fix incorrect statistics counting
2017-09-07 20:07:13 -07:00
rfkill
rose
rxrpc
rxrpc: Make service connection lookup always check for retry
2017-09-05 14:39:17 -07:00
sched
net: sched: fix memleak for chain zero
2017-09-07 19:17:20 -07:00
sctp
sctp: fix missing wake ups in some situations
2017-09-08 10:02:47 -07:00
smc
net/smc: synchronize buffer usage with device
2017-07-29 11:22:58 -07:00
strparser
strparser: initialize all callbacks
2017-08-24 21:57:50 -07:00
sunrpc
Two nfsd bugfixes, neither 4.13 regressions, but both potentially
2017-08-25 17:27:26 -07:00
switchdev
net: switchdev: Remove bridge bypass support from switchdev
2017-08-07 14:48:48 -07:00
tipc
tipc: remove unnecessary call to dev_net()
2017-09-06 21:25:52 -07:00
tls
unix
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-08-21 17:06:42 -07:00
vmw_vsock
hv_sock: implements Hyper-V transport for Virtual Sockets (AF_VSOCK)
2017-08-28 15:38:18 -07:00
wimax
wireless
cfg80211: honor NL80211_RRF_NO_HT40{MINUS,PLUS}
2017-09-06 12:56:31 +02:00
x25
X25: constify null_x25_address
2017-08-03 09:13:51 -07:00
xfrm
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-09-01 17:42:05 -07:00
compat.c
Kconfig
net: Remove CONFIG_NETFILTER_DEBUG and _ASSERT() macros.
2017-09-04 13:25:20 +02:00
Makefile
nsh: add GSO support
2017-08-29 15:16:52 -07:00
socket.c
net: fixes for skb_send_sock
2017-08-16 11:27:52 -07:00
sysctl_net.c