Daniel Borkmann
b1fcd35cf5
net: filter: let unattached filters use sock_fprog_kern
...
The sk_unattached_filter_create() API is used by BPF filters that
are not directly attached or related to sockets, and are used in
team, ptp, xt_bpf, cls_bpf, etc. As such all users do their own
internal managment of obtaining filter blocks and thus already
have them in kernel memory and set up before calling into
sk_unattached_filter_create(). As a result, due to __user annotation
in sock_fprog, sparse triggers false positives (incorrect type in
assignment [different address space]) when filters are set up before
passing them to sk_unattached_filter_create(). Therefore, let
sk_unattached_filter_create() API use sock_fprog_kern to overcome
this issue.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com >
Acked-by: Alexei Starovoitov <ast@plumgrid.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2014-05-23 16:48:05 -04:00
..
2014-05-03 00:20:31 +02:00
2014-04-05 15:37:40 -07:00
2014-04-24 09:57:02 -07:00
2014-05-21 15:56:26 -04:00
2014-04-29 15:44:05 +01:00
2014-03-27 14:20:04 -04:00
2014-05-05 07:46:56 -07:00
2014-05-12 13:19:14 -04:00
2014-04-05 15:37:40 -07:00
2014-04-18 16:57:53 -07:00
2014-05-12 13:19:14 -04:00
2014-04-29 19:26:58 +02:00
2014-04-24 13:44:54 -04:00
2014-04-29 01:28:17 +02:00
2014-04-08 13:27:40 +02:00
2014-04-03 09:28:16 -07:00
2014-03-21 11:16:30 +09:00
2014-04-16 12:03:47 +05:30
2014-04-04 09:50:07 -07:00
2014-03-19 14:41:58 +09:00
2014-03-08 11:51:13 -08:00
2014-04-11 11:58:33 -07:00
2014-03-02 19:53:09 -08:00
2014-04-22 09:28:02 -07:00
2014-04-30 09:48:54 +10:00
2014-04-18 10:31:34 -07:00
2014-04-16 14:14:07 -07:00
2014-05-01 04:07:52 -07:00
2014-04-09 08:45:40 -07:00
2014-04-21 23:36:07 +02:00
2014-04-26 11:22:16 +01:00
2014-05-13 17:43:20 -04:00
2014-04-23 07:48:03 -07:00
2014-04-16 16:09:40 +02:00
2014-04-29 19:23:22 +02:00
2014-05-23 16:48:05 -04:00
2014-04-10 09:06:10 -07:00
2014-04-07 16:35:52 -07:00
2014-03-07 15:54:48 +11:00
2014-04-16 12:28:47 -07:00
2014-05-02 14:14:02 -07:00
2014-04-16 11:57:27 +05:30
2014-02-28 16:47:21 -08:00
2014-04-01 15:14:04 -07:00
2014-04-09 08:39:39 -07:00
2014-04-16 12:28:47 -07:00
2014-04-09 08:39:39 -07:00
2014-05-05 09:31:33 +03:00
2014-05-23 16:48:05 -04:00
2014-03-11 00:47:09 +01:00
2014-04-07 10:59:20 -07:00
2014-05-22 15:43:02 -04:00
2014-03-20 13:43:46 +01:00
2014-02-28 16:22:42 -08:00
2014-04-16 10:24:32 -06:00
2014-04-01 15:14:04 -07:00
2014-04-24 12:53:38 -07:00
2014-04-23 16:09:53 +02:00
2014-04-10 12:11:56 -04:00
2014-04-30 22:36:33 +02:00
2014-04-24 17:20:50 +01:00
2014-04-07 14:55:46 -07:00
2014-03-07 10:24:48 -05:00
2014-05-12 13:19:14 -04:00
2014-04-18 16:40:08 -07:00
2014-04-07 16:36:07 -07:00
2014-04-14 22:16:25 +01:00
2014-02-24 11:16:16 +02:00
2014-03-27 01:28:19 +01:00
2014-04-05 15:37:40 -07:00
2014-05-13 17:43:20 -04:00
2014-02-20 13:34:11 -05:00
2014-05-23 16:28:53 -04:00
2014-04-05 15:38:41 -07:00
2014-04-23 13:50:18 +01:00
2014-03-08 22:15:52 -08:00
2014-05-13 17:43:20 -04:00
2014-04-12 17:31:22 -07:00
2014-04-10 09:15:46 -07:00
2014-05-03 18:14:28 -04:00
2014-05-13 17:43:20 -04:00
2014-04-24 12:45:40 -07:00
2014-04-03 14:05:02 -07:00
2014-04-12 16:51:08 -07:00
2014-04-17 08:10:20 +03:00
2014-03-13 11:27:57 +10:30
2014-04-16 14:08:37 -07:00
2014-04-16 14:07:51 -07:00
2014-04-07 14:55:46 -07:00
2014-04-17 10:54:07 -07:00
2014-02-28 15:36:37 -08:00
2014-04-17 08:10:19 +03:00