Files
linux-st/include/net
Eric Dumazet ac6e780070 tcp: take care of truncations done by sk_filter()
With syzkaller help, Marco Grassi found a bug in TCP stack,
crashing in tcp_collapse()

Root cause is that sk_filter() can truncate the incoming skb,
but TCP stack was not really expecting this to happen.
It probably was expecting a simple DROP or ACCEPT behavior.

We first need to make sure no part of TCP header could be removed.
Then we need to adjust TCP_SKB_CB(skb)->end_seq

Many thanks to syzkaller team and Marco for giving us a reproducer.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Marco Grassi <marco.gra@gmail.com>
Reported-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-13 12:30:02 -05:00
..
2016-09-27 21:15:21 -04:00
2016-06-27 15:06:17 -04:00
2016-07-08 12:20:57 +02:00
2016-08-26 11:55:18 -07:00
2016-09-23 08:38:50 -04:00
2016-10-14 10:59:15 -04:00
2016-08-17 19:36:23 -04:00
2016-08-30 22:27:18 -07:00
2016-10-26 08:01:07 +02:00
2016-10-03 02:00:22 -04:00
2016-10-04 02:11:51 -04:00
2016-07-08 12:20:57 +02:00
2016-09-10 23:12:53 -07:00
2016-11-03 16:16:50 -04:00
2016-10-29 20:56:31 -04:00