Willem de Bruijn
719c44d340
packet: compat support for sock_fprog
...
Socket option PACKET_FANOUT_DATA takes a struct sock_fprog as argument
if PACKET_FANOUT has mode PACKET_FANOUT_CBPF. This structure contains
a pointer into user memory. If userland is 32-bit and kernel is 64-bit
the two disagree about the layout of struct sock_fprog.
Add compat setsockopt support to convert a 32-bit compat_sock_fprog to
a 64-bit sock_fprog. This is analogous to compat_sock_fprog support for
SO_REUSEPORT added in commit 1957598840f4 ("soreuseport: add compat
case for setsockopt SO_ATTACH_REUSEPORT_CBPF").
Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-06-09 23:41:03 -07:00
..
2016-04-22 15:02:21 +02:00
2016-06-01 17:54:19 -07:00
2016-06-01 17:54:19 -07:00
2016-05-04 01:48:16 +02:00
2016-02-11 03:54:14 -05:00
2016-05-01 21:06:10 -04:00
2016-05-04 00:24:27 -07:00
2016-04-13 10:41:10 +02:00
2016-05-20 11:23:49 -07:00
2016-02-11 03:54:14 -05:00
2016-04-11 15:34:40 -04:00
2016-02-08 10:30:42 -05:00
2015-12-08 21:55:49 -05:00
2016-02-09 04:45:49 -05:00
2016-03-18 23:14:15 -04:00
2015-11-18 16:17:38 -05:00
2016-05-12 11:16:40 +02:00
2016-03-13 15:01:00 -04:00
2016-04-19 20:09:25 -04:00
2016-04-25 16:44:27 -04:00
2016-04-25 16:44:27 -04:00
2016-04-25 16:44:27 -04:00
2016-06-09 23:41:03 -07:00
2016-04-15 12:57:29 -04:00
2016-05-11 19:36:28 -04:00
2016-02-16 20:21:48 -05:00
2016-03-11 15:14:26 -05:00
2016-04-25 16:20:09 -04:00
2016-03-10 16:24:02 -05:00
2016-03-20 13:44:34 -04:00
2016-05-20 18:03:16 -04:00
2016-04-28 17:03:38 -04:00
2016-04-25 16:45:53 -04:00
2016-04-26 12:00:49 -04:00
2016-02-18 11:42:19 -05:00
2016-04-21 15:35:44 -04:00
2016-05-12 16:53:58 -04:00
2016-05-10 12:25:04 -04:00
2016-03-14 12:19:46 -04:00
2016-04-27 22:48:25 -04:00
2016-01-04 20:40:41 +01:00
2015-12-15 23:25:20 -05:00
2016-03-22 15:45:44 -04:00
2016-04-04 22:11:20 -04:00
2016-05-20 18:03:17 -04:00
2016-02-18 11:35:51 -05:00
2016-01-15 15:07:23 -05:00
2016-02-16 20:42:54 -05:00
2016-04-04 22:11:20 -04:00
2015-12-18 14:43:38 -05:00
2015-12-16 00:14:12 -05:00
2016-03-13 23:55:13 -04:00
2015-11-15 17:12:37 -05:00
2016-04-11 15:56:20 -04:00
2016-05-29 22:24:21 -07:00
2016-02-18 11:31:36 -05:00
2016-05-20 18:03:16 -04:00
2016-06-06 09:47:25 +09:00
2016-05-11 19:31:40 -04:00
2016-05-03 16:08:14 -04:00
2016-01-29 17:13:43 +01:00
2016-03-10 14:42:03 -05:00
2016-05-11 19:31:40 -04:00
2016-02-21 22:00:28 -05:00
2016-05-12 11:16:55 +02:00
2016-04-13 10:41:08 +02:00
2015-12-01 15:07:59 -05:00
2015-12-14 12:48:58 +01:00
2016-05-16 13:46:23 -04:00
2015-12-08 22:02:33 -05:00
2016-04-23 20:13:24 -04:00
2016-03-23 22:09:58 -04:00
2016-06-07 16:59:53 -07:00
2016-05-24 14:49:14 -07:00
2016-04-07 16:53:30 -04:00
2016-02-11 03:54:14 -05:00
2016-04-04 22:11:19 -04:00
2016-04-23 18:51:33 -04:00
2016-05-02 22:27:06 -04:00
2016-06-07 16:59:53 -07:00
2016-02-08 10:30:42 -05:00
2016-04-28 11:49:45 -04:00
2016-01-19 14:44:23 -05:00
2016-05-20 18:05:32 -04:00
2016-05-17 13:58:49 -04:00
2016-05-11 19:31:40 -04:00
2016-05-03 16:08:14 -04:00
2015-10-26 22:24:22 -07:00
2016-05-09 15:59:24 -04:00
2016-04-27 22:48:25 -04:00
2016-05-04 00:52:29 -04:00
2016-04-27 22:48:23 -04:00