[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240828123224.3697672-1-lihongbo22@huawei.com>
Date: Wed, 28 Aug 2024 20:32:18 +0800
From: Hongbo Li <lihongbo22@...wei.com>
To: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <dsahern@...nel.org>, <ralf@...ux-mips.org>,
<jmaloy@...hat.com>, <ying.xue@...driver.com>, <dan.carpenter@...aro.org>
CC: <netdev@...r.kernel.org>, <linux-hams@...r.kernel.org>,
<netfilter-devel@...r.kernel.org>, <lihongbo22@...wei.com>
Subject: [PATCH net-next v2 0/6] replace deprecated strcpy with strscpy
The deprecated helper strcpy() performs no bounds checking on the
destination buffer. This could result in linear overflows beyond
the end of the buffer, leading to all kinds of misbehaviors.
The safe replacement is strscpy() [1].
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
Hongbo Li (6):
net: prefer strscpy over strcpy
net/ipv6: replace deprecated strcpy with strscpy
net/netrom: prefer strscpy over strcpy
net/netfilter: replace deprecated strcpy with strscpy
net/tipc: replace deprecated strcpy with strscpy
net/ipv4: net: prefer strscpy over strcpy
net/core/dev.c | 2 +-
net/ipv4/ip_tunnel.c | 2 +-
net/ipv4/netfilter/arp_tables.c | 2 +-
net/ipv4/netfilter/ip_tables.c | 2 +-
net/ipv6/ndisc.c | 2 +-
net/netfilter/xt_recent.c | 2 +-
net/netrom/nr_route.c | 4 ++--
net/tipc/bearer.c | 2 +-
8 files changed, 9 insertions(+), 9 deletions(-)
--
2.34.1
Powered by blists - more mailing lists