Willem de Bruijn
4a06fa67c4
ip: on queued skb use skb_header_pointer instead of pskb_may_pull
...
Commit 2efd4fca703a ("ip: in cmsg IP(V6)_ORIGDSTADDR call
pskb_may_pull") avoided a read beyond the end of the skb linear
segment by calling pskb_may_pull.
That function can trigger a BUG_ON in pskb_expand_head if the skb is
shared, which it is when when peeking. It can also return ENOMEM.
Avoid both by switching to safer skb_header_pointer.
Fixes: 2efd4fca703a ("ip: in cmsg IP(V6)_ORIGDSTADDR call pskb_may_pull")
Reported-by: syzbot <syzkaller@googlegroups.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-10 09:27:20 -05:00
..
2018-07-24 14:10:42 -07:00
2018-12-20 18:20:26 -08:00
2018-05-22 10:51:09 +02:00
2019-01-04 12:47:06 -08:00
2018-10-08 10:39:05 -07:00
2019-01-05 14:17:07 -08:00
2017-11-15 11:56:19 -08:00
2018-11-08 17:04:43 -08:00
2018-07-05 20:15:26 +09:00
2019-01-10 09:27:20 -05:00
2018-12-19 11:21:37 -08:00
2018-12-19 11:21:37 -08:00
2018-05-07 23:50:27 -04:00
2015-09-02 15:31:00 -07:00
2018-07-05 20:15:26 +09:00
2017-09-01 20:33:42 -07:00
2018-05-11 00:10:56 +02:00
2019-01-04 13:06:07 -08:00
2019-01-04 13:40:03 -08:00
2017-01-28 10:33:06 -05:00
2018-12-14 15:55:20 -08:00
2018-10-24 14:18:16 -07:00
2019-01-02 20:15:43 -08:00
2018-07-07 10:58:49 +09:00
2019-01-01 12:05:02 -08:00
2017-11-02 11:10:55 +01:00
2018-12-09 21:43:31 -08:00
2018-12-15 13:23:02 -08:00
2016-04-07 16:53:29 -04:00
2018-12-20 11:53:36 -08:00
2019-01-01 12:05:02 -08:00
2018-12-20 11:53:36 -08:00
2019-01-01 12:05:02 -08:00
2019-01-01 12:05:02 -08:00
2016-11-04 14:45:23 -04:00
2018-11-07 16:12:39 -08:00
2018-07-24 14:10:43 -07:00
2017-11-02 11:10:55 +01:00
2015-08-13 17:08:39 -07:00
2018-10-19 11:03:06 -07:00
2016-12-25 17:21:23 +01:00
2018-10-26 15:58:06 -07:00
2018-11-27 00:12:20 +01:00
2017-11-24 01:37:35 +09:00
2018-07-07 10:58:49 +09:00
2018-05-16 07:24:30 +02:00
2017-03-24 13:17:07 -07:00
2018-12-20 11:53:36 -08:00
2018-12-30 13:02:46 -08:00
2019-01-02 10:29:20 -08:00
2018-07-03 10:29:26 +09:00
2018-12-07 12:22:39 -08:00
2018-07-31 09:22:48 +02:00
2018-06-22 13:43:27 +09:00
2019-01-01 12:05:02 -08:00
2018-03-25 20:53:54 -04:00
2018-04-25 13:02:15 -04:00
2018-12-15 11:36:14 -08:00
2018-12-15 13:23:02 -08:00
2018-11-08 17:13:08 -08:00
2018-11-08 17:13:08 -08:00
2018-12-15 13:23:02 -08:00
2019-01-04 20:23:33 -08:00
2018-11-08 17:13:08 -08:00
2018-12-19 11:21:37 -08:00
2017-06-16 11:48:39 -04:00
2018-07-11 15:26:35 +02:00
2018-09-04 10:26:30 +02:00
2018-03-07 10:54:29 +01:00
2018-09-03 07:37:57 +02:00
2018-11-22 07:55:48 +01:00
2018-11-08 17:13:08 -08:00
2018-04-26 07:51:48 +02:00
2018-12-19 12:33:17 +01:00