Liping Zhang
5ce6b04ce9
netfilter: nft_log: restrict the log prefix length to 127
...
First, log prefix will be truncated to NF_LOG_PREFIXLEN-1, i.e. 127,
at nf_log_packet(), so the extra part is useless.
Second, after adding a log rule with a very very long prefix, we will
fail to dump the nft rules after this _special_ one, but acctually,
they do exist. For example:
# name_65000=$(printf "%0.sQ" {1..65000})
# nft add rule filter output log prefix "$name_65000"
# nft add rule filter output counter
# nft add rule filter output counter
# nft list chain filter output
table ip filter {
chain output {
type filter hook output priority 0; policy accept;
}
}
So now, restrict the log prefix length to NF_LOG_PREFIXLEN-1.
Fixes: 96518518cc ("netfilter: add nftables")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
2017-01-24 21:46:29 +01:00
..
2016-11-18 10:59:15 -05:00
2016-12-24 11:46:01 -08:00
2016-12-06 21:42:16 +01:00
2017-01-16 14:23:02 +01:00
2016-12-06 21:48:25 +01:00
2017-01-19 14:28:01 +01:00
2016-08-30 11:43:08 +02:00
2016-08-09 10:38:46 +02:00
2016-07-11 11:47:50 +02:00
2016-09-07 10:38:00 +02:00
2016-07-11 12:32:45 +02:00
2016-09-24 21:29:53 +02:00
2016-11-08 23:53:37 +01:00
2016-07-21 02:31:53 +02:00
2016-07-22 17:05:10 +02:00
2016-09-12 19:59:39 +02:00
2016-08-30 11:43:09 +02:00
2016-12-04 20:53:15 +01:00
2016-08-13 13:27:13 +02:00
2016-11-18 10:59:15 -05:00
2016-12-04 20:55:37 +01:00
2016-08-13 13:27:13 +02:00
2016-08-13 13:27:13 +02:00
2016-12-04 20:57:36 +01:00
2016-12-04 21:17:25 +01:00
2016-07-21 02:31:53 +02:00
2016-09-25 14:54:01 +02:00
2016-10-27 18:27:59 +02:00
2016-12-04 21:17:25 +01:00
2016-07-21 02:31:53 +02:00
2016-12-06 21:48:22 +01:00
2016-11-03 11:52:59 +01:00
2016-12-04 20:45:33 +01:00
2016-12-04 20:45:33 +01:00
2017-01-24 21:46:29 +01:00
2016-12-04 20:45:32 +01:00
2016-12-04 20:45:30 +01:00
2016-12-07 13:22:50 +01:00
2016-12-04 20:45:32 +01:00
2016-12-06 21:42:15 +01:00
2016-11-18 10:59:15 -05:00
2017-01-23 23:36:50 +01:00
2016-11-09 23:42:23 +01:00
2016-09-12 19:54:45 +02:00
2016-09-12 19:54:45 +02:00
2016-11-03 11:52:34 +01:00
2016-08-25 13:11:00 +02:00
2016-09-24 21:29:53 +02:00
2016-08-25 13:11:30 +02:00
2016-12-25 17:21:22 +01:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2016-11-09 23:42:23 +01:00
2016-11-09 23:42:23 +01:00
2016-11-09 23:42:23 +01:00
2016-07-23 12:25:00 +02:00
2016-12-11 10:01:05 -05:00
2016-12-04 21:16:50 +01:00
2017-01-23 23:36:50 +01:00
2016-10-17 17:43:54 +02:00
2016-11-03 11:52:34 +01:00
2016-12-06 21:42:20 +01:00
2016-12-06 21:48:22 +01:00
2016-12-03 12:29:53 -05:00
2016-11-09 23:42:23 +01:00
2016-10-04 08:59:03 +02:00
2017-01-24 21:46:29 +01:00
2017-01-23 23:36:50 +01:00
2016-12-04 21:17:16 +01:00
2016-11-03 11:52:34 +01:00
2016-12-04 21:17:16 +01:00
2016-10-26 16:35:16 +02:00
2017-01-23 23:36:50 +01:00
2016-12-14 23:39:11 +01:00
2016-12-14 23:39:01 +01:00
2016-12-14 23:38:51 +01:00
2016-12-03 12:29:53 -05:00
2016-12-04 21:17:16 +01:00
2016-11-03 11:52:34 +01:00
2016-08-25 12:55:34 +02:00
2016-11-03 11:52:34 +01:00
2016-12-07 13:31:40 +01:00
2016-12-07 13:31:40 +01:00
2016-12-07 13:31:41 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-12-07 13:32:35 +01:00
2016-11-03 10:56:21 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-18 10:59:15 -05:00
2016-12-04 21:16:50 +01:00
2016-04-29 14:28:48 +02:00
2016-10-17 17:38:19 +02:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-12-06 21:48:20 +01:00
2016-12-04 21:16:51 +01:00
2016-12-04 21:16:51 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-08-12 00:42:14 +02:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-12-05 15:21:59 -05:00
2016-12-05 15:21:59 -05:00
2016-11-18 10:59:15 -05:00
2016-12-04 21:16:51 +01:00
2016-09-22 03:13:26 -04:00
2016-11-10 13:28:42 +01:00
2016-12-06 21:42:00 +01:00
2016-12-04 21:16:50 +01:00
2016-11-03 10:56:21 +01:00
2016-07-03 10:55:07 +02:00
2016-11-03 10:56:21 +01:00
2016-12-25 17:21:22 +01:00
2016-12-06 21:42:00 +01:00
2016-06-23 13:26:49 +02:00