diff options
| author | Florian Westphal <[email protected]> | 2018-07-09 11:43:38 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2018-07-09 16:04:12 +0000 |
| commit | 84379c9afe011020e797e3f50a662b08a6355dcf (patch) | |
| tree | a79259618f88d26e90f3e50cf1d4823852b90365 /net/nsh/nsh.c | |
| parent | netfilter: nf_conntrack: Fix possible possible crash on module loading. (diff) | |
| download | kernel-84379c9afe011020e797e3f50a662b08a6355dcf.tar.gz kernel-84379c9afe011020e797e3f50a662b08a6355dcf.zip | |
netfilter: ipv6: nf_defrag: drop skb dst before queueing
Eric Dumazet reports:
Here is a reproducer of an annoying bug detected by syzkaller on our production kernel
[..]
./b78305423 enable_conntrack
Then :
sleep 60
dmesg | tail -10
[ 171.599093] unregister_netdevice: waiting for lo to become free. Usage count = 2
[ 181.631024] unregister_netdevice: waiting for lo to become free. Usage count = 2
[ 191.687076] unregister_netdevice: waiting for lo to become free. Usage count = 2
[ 201.703037] unregister_netdevice: waiting for lo to become free. Usage count = 2
[ 211.711072] unregister_netdevice: waiting for lo to become free. Usage count = 2
[ 221.959070] unregister_netdevice: waiting for lo to become free. Usage count = 2
Reproducer sends ipv6 fragment that hits nfct defrag via LOCAL_OUT hook.
skb gets queued until frag timer expiry -- 1 minute.
Normally nf_conntrack_reasm gets called during prerouting, so skb has
no dst yet which might explain why this wasn't spotted earlier.
Reported-by: Eric Dumazet <[email protected]>
Reported-by: John Sperbeck <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Tested-by: Eric Dumazet <[email protected]>
Reported-by: syzbot <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
