diff options
author | Eric Dumazet <edumazet@google.com> | 2018-10-02 00:02:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-02 00:42:13 +0200 |
commit | 1ad98e9d1bdf4724c0a8532fabd84bf3c457c2bc (patch) | |
tree | fe345cf7a2ca53907e70b4522ba10b00d2e721bf /include/video/radeon.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf (diff) | |
download | linux-1ad98e9d1bdf4724c0a8532fabd84bf3c457c2bc.tar.xz linux-1ad98e9d1bdf4724c0a8532fabd84bf3c457c2bc.zip |
tcp/dccp: fix lockdep issue when SYN is backlogged
In normal SYN processing, packets are handled without listener
lock and in RCU protected ingress path.
But syzkaller is known to be able to trick us and SYN
packets might be processed in process context, after being
queued into socket backlog.
In commit 06f877d613be ("tcp/dccp: fix other lockdep splats
accessing ireq_opt") I made a very stupid fix, that happened
to work mostly because of the regular path being RCU protected.
Really the thing protecting ireq->ireq_opt is RCU read lock,
and the pseudo request refcnt is not relevant.
This patch extends what I did in commit 449809a66c1d ("tcp/dccp:
block BH for SYN processing") by adding an extra rcu_read_{lock|unlock}
pair in the paths that might be taken when processing SYN from
socket backlog (thus possibly in process context)
Fixes: 06f877d613be ("tcp/dccp: fix other lockdep splats accessing ireq_opt")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/video/radeon.h')
0 files changed, 0 insertions, 0 deletions