* [LTP] [PATCH] cve: icmp_rate_limit: Make sure icmp_msgs_burst = 50
@ 2026-03-12 10:43 Cyril Hrubis
2026-03-12 13:03 ` Martin Doucha
0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2026-03-12 10:43 UTC (permalink / raw)
To: ltp; +Cc: Eric Dumazet
The test is written with an assumption that the burst for icmp message
is 50 since it sends 100 messages in a batch and expects the kernel to
go over the limit. The easiest way how to fix the test is to set the
sysctl to 50 before the test and restore it later.
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
testcases/cve/icmp_rate_limit01.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/cve/icmp_rate_limit01.c b/testcases/cve/icmp_rate_limit01.c
index 0305ad095..78480cea6 100644
--- a/testcases/cve/icmp_rate_limit01.c
+++ b/testcases/cve/icmp_rate_limit01.c
@@ -255,6 +255,7 @@ static struct tst_test test = {
},
.save_restore = (const struct tst_path_val[]) {
{"/proc/sys/user/max_user_namespaces", "1024", TST_SR_SKIP},
+ {"/proc/sys/net/ipv4/icmp_msgs_burst", "50", TST_SR_TBROK},
{}
},
.tags = (const struct tst_tag[]) {
--
2.52.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [LTP] [PATCH] cve: icmp_rate_limit: Make sure icmp_msgs_burst = 50
2026-03-12 10:43 [LTP] [PATCH] cve: icmp_rate_limit: Make sure icmp_msgs_burst = 50 Cyril Hrubis
@ 2026-03-12 13:03 ` Martin Doucha
2026-03-16 12:02 ` Petr Vorel
0 siblings, 1 reply; 3+ messages in thread
From: Martin Doucha @ 2026-03-12 13:03 UTC (permalink / raw)
To: Cyril Hrubis, ltp; +Cc: Eric Dumazet
Hi,
yes, that's the best fix. Thank you.
Reviewed-by: Martin Doucha <mdoucha@suse.cz>
On 3/12/26 11:43, Cyril Hrubis wrote:
> The test is written with an assumption that the burst for icmp message
> is 50 since it sends 100 messages in a batch and expects the kernel to
> go over the limit. The easiest way how to fix the test is to set the
> sysctl to 50 before the test and restore it later.
>
> Suggested-by: Eric Dumazet <edumazet@google.com>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> ---
> testcases/cve/icmp_rate_limit01.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/testcases/cve/icmp_rate_limit01.c b/testcases/cve/icmp_rate_limit01.c
> index 0305ad095..78480cea6 100644
> --- a/testcases/cve/icmp_rate_limit01.c
> +++ b/testcases/cve/icmp_rate_limit01.c
> @@ -255,6 +255,7 @@ static struct tst_test test = {
> },
> .save_restore = (const struct tst_path_val[]) {
> {"/proc/sys/user/max_user_namespaces", "1024", TST_SR_SKIP},
> + {"/proc/sys/net/ipv4/icmp_msgs_burst", "50", TST_SR_TBROK},
> {}
> },
> .tags = (const struct tst_tag[]) {
--
Martin Doucha mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-16 12:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12 10:43 [LTP] [PATCH] cve: icmp_rate_limit: Make sure icmp_msgs_burst = 50 Cyril Hrubis
2026-03-12 13:03 ` Martin Doucha
2026-03-16 12:02 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox