From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.225 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792746880; b=DSICYm82p6nL/xglVtZfCDL8zwfbPYudlv1xZlUZO1JLlSReV9KS/w9ITRQ6CQ7e8gu7 WpcfWKNwkxjNeaLZnFRXq3kLslTwcPYtgj8mgv/QYzvCdd9Tt1EsB/NwW6O/OtUJHjYSU S8CobIbKNjgAHd8QFf6VZS5nmn2Qy22Pvy/vhztrt/tYKjG6J4MECHQaymBhjs7w8yJmJ kprTKetpCbtI34P3yPA4XFIuZsOY2BEbg5V5APesTZ/S///UWqZUoHyK03M1jx4Tqdkcm y7b4v/VcggBRPjC/RtXMGaV6WVujw1Dj6P6gfmXLIKp0+RrYu4lajV3JEyBBmDajVOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792746880; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=4zAc3he/vCh5XQJ3xmbFTBFKdpkOc7QTrO/peAQSjfo=; b=yrR8sjR+dYyNO/Sbc+/9g4QRlpLq4PGM0rFqurT/8xrbCjPxIrcWDo1eLNOblyQcUoD8 Blwak7trRrJ7U3hcgFqSpzGuJxlUwtZBcyOwkUdwlOz5YqZT1Xpzel09Ue8dgjCrPzWdR kiTXRxUFC6lwTAWEjfWwcybarDcV1ea/aRPcm7CEvA3WXFY+yycn0E2uxJ1aNz7TXgZGu CE7IkXKzwv+On8TXHYTcbRtrfLoJaKAQ8wiK8OxxRvgreVhBvpDsf3cwkmW+xL5hQ/dFf 0Hr2Qj1Rlnw75W2TJPjO8lmcLBK65LiInIPeh7++iVtCxr2SWGCSUauNqzv1SC9UsRA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=FvmHYpW9; arc=none smtp.remote-ip=91.218.175.225 Received: from mta0.migadu.com (out-225.mta0.migadu.com [91.218.175.225]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB749606A330 for ; Fri, 23 Oct 2026 09:14:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CB749606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=FvmHYpW9 X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=bCF8cbR3CbPnLMlPgvVa1/bBaRcT7OGjsLq3olXXh6Q=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1792746877; v=1; x=1793351677; b=FvmHYpW9aue5DDkI54G1xWxUCkzbbIfriTbxvh0qPAEbJunpYQD84yBr9kqdtmFDdh3zuNI0 J+XK4IWtTWqJQof0Yu+ayZL9WCLHQVt/baf1oRKciCg0wgexG+gPkg9pIwAlU2LbvgBIfMyxnrZ W08ljWi7vhC66CWhS8XTbEUE= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 5c5795b909675e0d; Fri, 23 Oct 2026 09:14:36 +0000 X-Mizu-Trace-ID: 5c5795b909675e0d X-Migadu-Flow: FLOW_OUT From: Jiayuan Chen To: netdev@vger.kernel.org Cc: Jiayuan Chen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , David Ahern , Ido Schimmel , Kuniyuki Iwashima , Nikolay Aleksandrov , Joel Granados , Chia-Yu Chang , Yung Chih Su , Wyatt Feng , Fernando Fernandez Mancera , Flavio Leitner , Hannes Frederic Sowa , Petr Mladek , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: [PATCH net 0/5] net: fix misc signed overflows caused by bad sysctl values Date: Fri, 23 Oct 2026 17:13:26 +0800 Message-ID: <20261023091419.167088-1-jiayuan.chen@linux.dev> X-Mailer: git-send-email 2.43.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Recently I have reviewed quite a few fixes for variable overflows caused by config values, i.e. a value set from sysctl, module params or netlink that is accepted as valid but later overflows when it is used in a calculation. I believe there are more of these still out there, so I used an LLM to dig through the code and it found the issues fixed in this series. All of them have been reproduced and verified in QEMU. Jiayuan Chen (5): ipv6: restrict gc_elasticity to 31 ipv4: fix shift-out-of-bounds in ip_rt_send_redirect() ipv6: restrict mld_qrv to 255 ipv4: restrict igmp_qrv to 255 net: restrict message_cost and message_burst to non-negative values net/core/sysctl_net_core.c | 21 +++++++++++++++++++-- net/ipv4/route.c | 7 ++++--- net/ipv4/sysctl_net_ipv4.c | 4 +++- net/ipv6/route.c | 6 +++++- net/ipv6/sysctl_net_ipv6.c | 4 +++- 5 files changed, 34 insertions(+), 8 deletions(-) -- 2.43.0