From a1535b0667cd2868b6e25fbaa2ff1621c6aa3d65 Mon Sep 17 00:00:00 2001 From: Tashfin Shakeer Rhythm Date: Wed, 29 Jul 2026 02:39:16 +0600 Subject: [PATCH] tcp: fix an incorrect __user annotation on tcp_proc_delayed_ack_control No user pointers for sysctls anymore. Fixes: c3f877ec98a12 ("BACKPORT: sysctl: pass kernel pointers to ->proc_handler") Change-Id: Ie7d47a3bb5ed4238cea83a493937f38a3fee2571 Signed-off-by: Tashfin Shakeer Rhythm --- include/net/tcp.h | 2 +- net/ipv4/tcp_timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index bbad196da16c..c8bd83fcabab 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -359,7 +359,7 @@ extern int tcp_use_userconfig_sysctl_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos); extern int tcp_proc_delayed_ack_control(struct ctl_table *table, int write, - void __user *buffer, size_t *length, + void *buffer, size_t *length, loff_t *ppos); void tcp_enter_quickack_mode(struct sock *sk, unsigned int max_quickacks); diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 3b7f98ef34a4..9787b935d6cd 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c @@ -47,7 +47,7 @@ static void set_tcp_default(void) /*sysctl handler for tcp_ack realted master control */ int tcp_proc_delayed_ack_control(struct ctl_table *table, int write, - void __user *buffer, size_t *length, + void *buffer, size_t *length, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, length, ppos);