net: fix icmp_echo_enable_probe sysctl
Subsystems (2)
PATCH 1/1 net: fix icmp_echo_enable_probe sysctl
From: Eric Dumazet <[email protected]>
sysctl_icmp_echo_enable_probe is an u8.
ipv4_net_table entry should use
.maxlen = sizeof(u8).
.proc_handler = proc_dou8vec_minmax,
--- net/ipv4/sysctl_net_ipv4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv4/sysctl_net_ipv4.c +2 -2
@@ -601,9 +601,9 @@ static struct ctl_table ipv4_net_table[] = { { .procname = "icmp_echo_enable_probe", .data = &init_net.ipv4.sysctl_icmp_echo_enable_probe, - .maxlen = sizeof(int), + .maxlen = sizeof(u8), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dou8vec_minmax, .extra1 = SYSCTL_ZERO, .extra2 =SYSCTL_ONE },
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
Quoted 9 lines · Eric Dumazet
From: Eric Dumazet <[email protected]>
sysctl_icmp_echo_enable_probeis an u8.
ipv4_net_tableentry should use
.maxlen = sizeof(u8).
.proc_handler =proc_dou8vec_minmax,
I should have added the following tag :
Quoted 25 lines
Signed-off-by Eric Dumazet <[email protected]>Cc Andreas Roeseler <[email protected]>--- net/ipv4/sysctl_net_ipv4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)net/ipv4/sysctl_net_ipv4.c +2
-3@@ -601,9 +601,9 @@ static struct ctl_table ipv4_net_table[] = { { .procname = "icmp_echo_enable_probe", .data = &init_net.ipv4.sysctl_icmp_echo_enable_probe, - .maxlen = sizeof(int), + .maxlen = sizeof(u8), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dou8vec_minmax, .extra1 = SYSCTL_ZERO, .extra2 =SYSCTL_ONE }, --2.31.0.291.g576ba9dcdaf-goog
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 9 lines · On Tue, 30 Mar 2021 14:06:13 -0700 you wrote:
From: Eric Dumazet <[email protected]>
sysctl_icmp_echo_enable_probeis an u8.
ipv4_net_tableentry should use
.maxlen = sizeof(u8).
.proc_handler =proc_dou8vec_minmax,[...]
Here is the summary with links:
- [net-next] net: fix icmp_echo_enable_probe sysctl
https://git.kernel.org/netdev/net-next/c/b8128656a5ed
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html