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-12-15 13:23:02 -08:00
2018-09-26 20:30:55 -07:00
2018-10-12 09:47:39 -07:00
2018-09-17 19:37:46 -07:00
2018-10-02 22:28:17 -07:00
2019-01-04 12:47:06 -08:00
2018-12-19 11:21:37 -08:00
2018-12-19 11:21:37 -08:00
2018-10-24 14:06:25 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-30 12:57:04 -08:00
2018-11-06 15:00:45 -08:00
2018-10-16 00:13:12 -07:00
2019-01-04 13:06:07 -08:00
2018-11-08 17:13:08 -08:00
2018-07-03 10:29:26 +09:00
2018-11-08 17:13:08 -08:00
2018-10-29 20:26:06 -07:00
2018-11-07 22:31:07 -08:00
2018-12-20 19:23:22 -08:00
2018-11-08 18:40:30 -08:00
2018-12-24 15:27:56 -08:00
2018-04-07 22:32:32 -04:00
2018-04-09 10:57:35 -04:00
2018-12-20 11:53:36 -08:00
2018-12-15 11:50:40 -08:00
2019-01-01 12:05:02 -08:00
2018-12-09 21:43:31 -08:00
2017-11-02 11:10:55 +01:00
2018-12-19 11:21:37 -08:00
2019-01-10 09:27:20 -05:00
2018-12-24 16:19:56 -08:00
2019-01-01 12:05:02 -08:00
2019-01-01 12:05:02 -08:00
2018-09-26 20:30:55 -07:00
2018-12-20 11:53:36 -08:00
2018-11-08 17:13:08 -08:00
2018-10-19 11:03:06 -07:00
2018-12-20 11:53:36 -08:00
2018-07-24 14:10:43 -07:00
2018-10-15 12:23:19 -07:00
2018-11-06 15:00:45 -08:00
2018-07-16 17:51:48 +02:00
2018-05-23 15:14:12 -04:00
2018-10-02 22:28:17 -07:00
2018-11-30 13:26:54 -08:00
2018-11-08 17:13:08 -08:00
2017-08-07 11:39:22 -07:00
2018-12-20 11:53:36 -08:00
2018-12-20 16:42:39 -08:00
2018-09-21 19:37:59 -07:00
2018-11-07 16:12:38 -08:00
2018-11-08 20:46:17 -08:00
2017-08-06 21:25:10 -07:00
2018-12-20 23:47:09 +01:00
2018-10-15 22:56:42 -07:00
2017-11-15 14:09:52 +09:00
2017-08-06 21:25:10 -07:00
2018-10-10 22:26:00 -07:00
2018-10-10 22:26:00 -07:00
2017-12-20 14:00:25 -05:00
2017-12-13 15:51:12 -05:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2016-11-21 13:20:17 -05:00
2018-02-28 12:03:47 -05:00
2018-11-30 13:26:53 -08:00
2018-11-30 13:28:03 -08:00
2017-05-17 16:06:01 -04:00
2018-12-28 12:11:47 -08:00
2018-08-31 23:10:35 -07:00
2018-01-31 10:26:30 -05:00
2018-12-15 13:23:02 -08:00
2018-12-10 12:09:15 -08:00
2018-09-21 19:37:59 -07:00
2018-09-21 19:37:59 -07:00
2017-08-06 21:25:10 -07:00
2018-11-30 17:22:41 -08:00
2018-10-16 12:38:41 -07:00
2017-09-29 06:07:00 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-30 11:20:08 -07:00
2017-08-06 21:25:10 -07:00
2018-12-06 12:19:47 -08:00
2018-11-08 17:13:08 -08:00
2018-10-28 19:27:21 -07:00
2018-11-08 17:13:08 -08:00
2018-12-15 13:23:02 -08:00
2018-12-03 14:15:26 -08:00
2018-12-14 15:55:20 -08:00
2018-11-08 17:13:08 -08:00
2018-09-04 10:26:30 +02:00
2017-06-16 11:48:39 -04:00
2018-09-04 10:26:30 +02:00
2018-03-07 10:54:29 +01:00
2018-03-04 17:49:17 -05:00
2018-03-27 13:18:09 -04:00
2018-11-08 17:13:08 -08:00
2017-11-02 11:10:55 +01:00
2013-05-31 17:19:05 -07:00