]> git.baikalelectronics.ru Git - kernel.git/commit
tun: relax check on eth_get_headlen() return value
authorEric Dumazet <edumazet@google.com>
Tue, 17 Oct 2017 17:07:44 +0000 (10:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Oct 2017 12:17:39 +0000 (13:17 +0100)
commit438fe606674acb330c2fbd148997c5d49f719dd7
treee74de233d9da5944058f3a357b949160524f863c
parenteabfed04f72eb16bb9e1065f5ab0c5de9c728530
tun: relax check on eth_get_headlen() return value

syzkaller hit the WARN() in tun_get_user(), providing skb
with payload in fragments only, and nothing in skb->head

GRO layer is fine with this, so relax the check.

Fixes: dbb28a8499aa ("tun: enable napi_gro_frags() for TUN/TAP driver")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c