Maciej Żenczykowski
841cce409b
netfilter: xt_recent: fix (increase) ipv6 literal buffer length
[ Upstream commit 7b308feb4fd2d1c06919445c65c8fbf8e9fd1781 ]
in6_pton() supports 'low-32-bit dot-decimal representation'
(this is useful with DNS64/NAT64 networks for example):
# echo +aaaa:bbbb:cccc:dddd:eeee:ffff:1.2.3.4 > /proc/self/net/xt_recent/DEFAULT
# cat /proc/self/net/xt_recent/DEFAULT
src=aaaa:bbbb:cccc:dddd:eeee:ffff:0102:0304 ttl: 0 last_seen: 9733848829 oldest_pkt: 1 9733848829
but the provided buffer is too short:
# echo +aaaa:bbbb:cccc:dddd:eeee:ffff:255.255.255.255 > /proc/self/net/xt_recent/DEFAULT
-bash: echo: write error: Invalid argument
Fixes: 079aa88fe717 ("netfilter: xt_recent: IPv6 support")
Signed-off-by: Maciej Żenczykowski <zenczykowski@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 10:27:35 +01:00
..
2023-09-23 10:46:52 +02:00
2023-01-18 09:26:32 +01:00
2023-05-30 12:38:36 +01:00
2021-04-07 12:47:02 +02:00
2023-06-09 10:22:52 +02:00
2022-04-27 13:15:32 +02:00
2023-08-30 16:35:15 +02:00
2023-10-25 11:13:33 +02:00
2022-11-25 17:36:54 +01:00
2023-08-11 11:33:40 +02:00
2023-03-17 08:30:37 +01:00
2023-08-11 11:33:47 +02:00
2023-08-11 11:33:56 +02:00
2023-10-10 21:43:42 +02:00
2022-03-08 19:01:58 +01:00
2023-11-20 10:27:35 +01:00
2023-06-21 15:38:58 +02:00
2020-04-24 08:01:25 +02:00
2020-04-02 16:34:24 +02:00
2022-12-08 11:16:32 +01:00
2022-11-03 23:50:54 +09:00
2023-11-20 10:27:33 +01:00
2023-11-20 10:27:35 +01:00
2023-03-22 13:26:15 +01:00
2023-09-23 10:47:03 +02:00
2023-08-30 16:35:11 +02:00
2023-10-10 21:43:41 +02:00
2021-02-10 09:12:08 +01:00
2023-11-20 10:27:35 +01:00
2023-10-25 11:13:32 +02:00
2022-12-14 11:26:14 +01:00
2023-02-22 12:46:06 +01:00
2021-04-16 11:57:51 +02:00
2023-11-20 10:27:35 +01:00
2023-09-23 10:46:53 +02:00
2023-08-11 11:33:35 +02:00
2023-09-23 10:46:55 +02:00
2023-10-25 11:13:31 +02:00
2023-05-30 12:38:36 +01:00
2023-02-22 12:46:01 +01:00
2023-08-16 18:10:54 +02:00
2022-01-11 13:57:37 +01:00
2021-03-30 14:40:12 +02:00
2022-10-26 13:17:00 +02:00
2023-10-25 11:13:32 +02:00
2023-02-22 12:46:05 +01:00
2022-06-14 16:53:50 +02:00
2023-10-10 21:43:40 +02:00
2023-10-10 21:43:41 +02:00
2022-05-18 09:18:06 +02:00
2023-08-11 11:33:44 +02:00
2023-11-20 10:27:35 +01:00
2023-09-23 10:47:02 +02:00
2023-05-30 12:38:36 +01:00
2023-10-25 11:13:32 +02:00
2023-02-22 12:46:02 +01:00
2023-10-25 11:13:31 +02:00
2021-06-30 08:48:47 -04:00
2023-06-21 15:38:58 +02:00
2023-06-21 15:38:58 +02:00
2023-05-30 12:38:34 +01:00