Thread (2 messages) flat view 2 messages, 2 authors, 2018-01-31

Re: [PATCH net] netfilter: on sockopt() acquire sock lock only in the required scope

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2018-01-31 15:39:32
Also in: netfilter-devel

On Tue, Jan 30, 2018 at 07:01:40PM +0100, Paolo Abeni wrote:
Syzbot reported several deadlocks in the netfilter area caused by
rtnl lock and socket lock being acquired with a different order on
different code paths, leading to backtraces like the following one:
[...]
The problem, as Florian noted, is that nf_setsockopt() is always
called with the socket held, even if the lock itself is required only
for very tight scopes and only for some operation.
Applied, thanks Paolo.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help