Shreyansh Chouhan 1d011c4803 ip_gre: add validation for csum_start
Validate csum_start in gre_handle_offloads before we call _gre_xmit so
that we do not crash later when the csum_start value is used in the
lco_csum function call.

This patch deals with ipv4 code.

Fixes: c54419321455 ("GRE: Refactor GRE tunneling code.")
Reported-by: syzbot+ff8e1b9f2f36481e2efc@syzkaller.appspotmail.com
Signed-off-by: Shreyansh Chouhan <chouhan.shreyansh630@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-22 21:24:40 +01:00
..
2021-06-30 15:51:09 -07:00
2021-06-30 15:51:09 -07:00
2021-06-07 14:08:30 -07:00
2021-05-17 15:29:35 -07:00
2021-08-22 21:24:40 +01:00
2021-06-30 15:51:09 -07:00
2021-07-07 20:52:25 -07:00
2021-06-29 11:28:21 -07:00
2021-06-23 12:56:08 -07:00
2021-05-17 15:29:35 -07:00
2021-06-29 11:28:21 -07:00
2020-12-16 11:01:04 -08:00
2021-03-28 17:31:13 -07:00
2020-12-14 16:40:27 -08:00
2021-05-17 15:29:35 -07:00
2021-07-21 08:49:31 -07:00
2021-05-17 15:29:35 -07:00