diff options
author | Eric Dumazet <[email protected]> | 2016-11-10 13:12:35 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-11-13 12:30:02 -0500 |
commit | ac6e780070e30e4c35bd395acfe9191e6268bdd3 (patch) | |
tree | ee4ad258481549b15aa79cccf97b47c5ff3954e1 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 969447f226b451c453ddc83cac6144eaeac6f2e3 (diff) |
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 <[email protected]>
Reported-by: Marco Grassi <[email protected]>
Reported-by: Vladis Dronov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions