Stefano Brivio
eccc73a6b2
geneve: Don't assume linear buffers in error handler
...
In commit a07966447f ("geneve: ICMP error lookup handler") I wrongly
assumed buffers from icmp_socket_deliver() would be linear. This is not
the case: icmp_socket_deliver() only guarantees we have 8 bytes of linear
data.
Eric fixed this same issue for fou and fou6 in commits 26fc181e6c
("fou, fou6: do not assume linear skbs") and 5355ed6388 ("fou, fou6:
avoid uninit-value in gue_err() and gue6_err()").
Use pskb_may_pull() instead of checking skb->len, and take into account
the fact we later access the GENEVE header with udp_hdr(), so we also
need to sum skb_transport_header() here.
Reported-by: Guillaume Nault <gnault@redhat.com >
Fixes: a07966447f ("geneve: ICMP error lookup handler")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-06-11 12:07:33 -07:00
..
2019-05-24 17:36:47 +02:00
2019-05-31 10:38:35 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-05-15 08:46:44 -07:00
2019-06-02 09:27:44 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:29:53 -07:00
2019-05-31 08:34:32 -07:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:29:54 -07:00
2019-06-01 18:29:58 +02:00
2019-05-25 10:11:23 -07:00
2019-05-24 17:27:11 +02:00
2019-05-30 11:29:52 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:35 -07:00
2019-06-02 11:06:13 -07:00
2019-05-24 17:36:45 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:46 +02:00
2019-05-31 08:34:32 -07:00
2019-05-31 08:34:32 -07:00
2019-05-30 11:29:19 -07:00
2019-05-21 10:50:46 +02:00
2019-04-13 09:36:35 -04:00
2019-05-30 11:29:22 -07:00
2019-05-21 10:50:46 +02:00
2019-06-02 10:18:11 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:46 +02:00
2019-05-31 08:34:32 -07:00
2019-06-07 09:25:27 -07:00
2019-05-30 11:29:22 -07:00
2019-05-21 10:50:46 +02:00
2019-06-01 15:51:32 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:41 -07:00
2019-05-31 08:34:32 -07:00
2019-06-02 10:14:25 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:52 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:35 -07:00
2019-05-31 08:34:32 -07:00
2019-05-30 11:26:41 -07:00
2019-05-21 11:28:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:53 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:52 -07:00
2019-06-11 12:07:33 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-25 10:11:23 -07:00
2019-05-24 16:02:14 -07:00
2019-05-30 11:26:41 -07:00
2019-05-13 08:52:37 -07:00
2019-05-21 10:50:46 +02:00
2019-06-06 13:13:09 -07:00
2019-05-30 11:26:35 -07:00
2019-05-27 10:55:08 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:41 -07:00
2019-06-01 18:29:58 +02:00
2019-06-01 18:29:58 +02:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:25:19 -07:00
2019-05-30 11:29:54 -07:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:52 -07:00
2019-06-07 09:29:14 -07:00
2019-05-24 17:36:45 +02:00
2019-06-02 09:26:34 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-04-25 22:23:06 +02:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:53 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-31 08:31:45 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-06-02 10:16:09 -07:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:08:18 +02:00
2019-05-24 17:36:45 +02:00
2019-05-29 13:26:32 -07:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:29:52 -07:00
2019-05-27 11:08:23 -04:00
2019-05-31 08:34:32 -07:00
2019-05-21 10:50:46 +02:00
2019-05-27 11:08:22 -04:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:39:00 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:29:53 -07:00
2019-05-31 10:53:34 -07:00
2019-05-21 10:50:46 +02:00
2019-04-25 21:33:37 +02:00
2019-04-25 21:33:37 +02:00