Florian Westphal
40177a7931
netfilter: nfnetlink_cttimeout: fetch timeouts for udplite and gre, too
...
commit 89259088c1 upstream
syzbot was able to trigger the WARN in cttimeout_default_get() by
passing UDPLITE as l4protocol. Alias UDPLITE to UDP, both use
same timeout values.
Furthermore, also fetch GRE timeouts. GRE is a bit more complicated,
as it still can be a module and its netns_proto_gre struct layout isn't
visible outside of the gre module. Can't move timeouts around, it
appears conntrack sysctl unregister assumes net_generic() returns
nf_proto_net, so we get crash. Expose layout of netns_proto_gre instead.
A followup nf-next patch could make gre tracker be built-in as well
if needed, its not that large.
Last, make the WARN() mention the missing protocol value in case
anything else is missing.
Reported-by: syzbot+2fae8fa157dd92618cae@syzkaller.appspotmail.com
Fixes: 8866df9264 ("netfilter: nfnetlink_cttimeout: pass default timeout policy to obj_to_nlattr")
Signed-off-by: Florian Westphal <fw@strlen.de >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
Signed-off-by: Zubin Mithra <zsm@chromium.org >
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org >
2019-04-17 08:38:46 +02:00
..
2019-01-26 09:32:33 +01:00
2019-03-23 20:09:45 +01:00
2018-07-10 20:06:34 -07:00
2018-08-24 09:58:16 +02:00
2018-08-03 21:12:12 +02:00
2019-01-22 21:40:29 +01:00
2018-03-20 13:44:14 +01:00
2018-06-28 22:21:32 +09:00
2019-04-05 22:33:08 +02:00
2018-03-20 13:44:14 +01:00
2018-08-03 18:37:55 +02:00
2018-04-17 10:59:43 +02:00
2018-04-24 10:29:14 +02:00
2018-01-08 18:01:05 +01:00
2018-01-08 18:01:26 +01:00
2018-08-03 18:37:55 +02:00
2018-04-24 10:29:14 +02:00
2018-03-30 11:41:18 -04:00
2018-08-16 19:37:00 +02:00
2018-09-11 01:30:25 +02:00
2018-09-11 01:30:25 +02:00
2019-04-17 08:38:46 +02:00
2018-09-11 01:30:25 +02:00
2018-09-11 01:30:25 +02:00
2018-09-11 01:30:25 +02:00
2019-04-05 22:33:00 +02:00
2018-09-11 01:30:25 +02:00
2018-09-11 01:29:24 +02:00
2018-04-24 10:29:14 +02:00
2019-01-13 09:50:57 +01:00
2018-05-06 21:51:37 -04:00
2018-03-30 11:41:18 -04:00
2018-07-17 15:27:49 +02:00
2018-04-24 10:29:14 +02:00
2018-08-07 17:14:15 +02:00
2018-03-20 13:44:14 +01:00
2019-02-27 10:08:54 +01:00
2018-04-24 10:28:45 +02:00
2018-06-01 09:47:36 +02:00
2018-05-23 09:14:05 +02:00
2018-06-28 22:21:32 +09:00
2018-03-27 13:18:09 -04:00
2018-06-26 16:48:40 +02:00
2019-01-13 09:50:59 +01:00
2018-03-20 13:44:14 +01:00
2018-04-24 10:29:12 +02:00
2018-03-20 13:44:14 +01:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-05-29 00:25:40 +02:00
2018-04-24 10:29:12 +02:00
2018-01-10 15:32:15 +01:00
2018-05-16 07:24:30 +02:00
2019-02-27 10:09:02 +01:00
2019-04-05 22:33:00 +02:00
2018-07-06 19:31:53 +02:00
2018-08-16 19:37:00 +02:00
2018-06-12 16:19:22 -07:00
2019-04-17 08:38:46 +02:00
2018-06-06 18:39:49 -07:00
2019-02-27 10:09:03 +01:00
2018-09-11 01:31:47 +02:00
2018-07-18 11:26:48 +02:00
2018-08-16 19:37:03 +02:00
2018-01-08 18:01:01 +01:00
2019-02-27 10:09:03 +01:00
2019-01-22 21:40:29 +01:00
2018-06-03 00:02:11 +02:00
2018-08-29 13:04:38 +02:00
2018-08-16 19:37:11 +02:00
2018-04-27 00:00:56 +02:00
2019-02-27 10:08:55 +01:00
2018-06-01 10:35:47 +02:00
2018-06-01 09:38:40 +02:00
2018-07-17 20:48:24 +02:00
2018-05-23 09:50:28 +02:00
2018-06-07 16:14:00 -04:00
2018-07-30 11:52:02 +02:00
2018-01-10 15:32:08 +01:00
2018-07-30 11:52:02 +02:00
2018-04-24 10:29:12 +02:00
2018-11-27 16:13:02 +01:00
2018-04-24 10:29:09 +02:00
2018-09-20 18:38:40 +02:00
2018-01-10 15:32:08 +01:00
2018-04-27 00:00:55 +02:00
2018-08-16 19:36:59 +02:00
2018-08-16 19:36:59 +02:00
2018-09-28 14:47:01 +02:00
2018-07-18 11:26:52 +02:00
2018-08-16 19:37:10 +02:00
2018-08-04 00:53:29 +02:00
2018-07-16 17:51:48 +02:00
2019-03-23 20:09:45 +01:00
2018-02-14 21:05:37 +01:00
2018-06-19 10:43:55 -04:00
2018-02-14 21:05:38 +01:00
2018-06-28 22:21:32 +09:00
2018-08-24 09:58:16 +02:00
2018-08-23 20:26:53 +02:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-07-30 14:07:09 +02:00
2018-06-12 19:35:52 +02:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-08-07 17:14:15 +02:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:38 +01:00
2018-12-17 09:24:33 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:37 +01:00
2018-11-27 16:13:03 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:39 +01:00
2018-03-05 23:15:50 +01:00
2018-11-13 11:08:20 -08:00
2018-04-24 10:29:12 +02:00
2018-03-05 23:15:43 +01:00
2018-04-19 13:02:44 +02:00
2018-02-14 21:05:35 +01:00
2018-07-30 14:07:11 +02:00
2018-06-28 22:21:32 +09:00
2019-04-05 22:33:15 +02:00
2018-02-14 21:05:37 +01:00
2018-03-05 23:15:44 +01:00
2018-12-17 09:24:31 +01:00
2018-06-28 22:21:32 +09:00
2018-04-24 10:29:12 +02:00
2018-02-14 21:05:38 +01:00
2018-06-06 14:00:54 +02:00
2018-09-28 14:47:41 +02:00
2018-02-14 21:05:38 +01:00
2018-01-31 14:59:24 +01:00
2018-03-30 11:04:12 +02:00
2018-02-14 21:05:38 +01:00
2019-03-13 14:02:40 -07:00
2018-03-20 13:44:14 +01:00
2018-07-20 22:28:28 -07:00