netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/5] net: Use kmemdup_array() instead of kmemdup() for multiple allocation
@ 2024-08-28  7:09 Jinjie Ruan
  2024-08-28  7:07 ` Jinjie Ruan
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Jinjie Ruan @ 2024-08-28  7:09 UTC (permalink / raw)
  To: pablo, kadlec, roopa, razor, davem, edumazet, kuba, pabeni,
	dsahern, krzk, netfilter-devel, coreteam, bridge, netdev,
	linux-kernel
  Cc: ruanjinjie

Let the kmemdup_array() take care about multiplication and possible
overflows.

Jinjie Ruan (5):
  nfc: core: Use kmemdup_array() instead of kmemdup() for multiple
    allocation
  netfilter: Use kmemdup_array() instead of kmemdup() for multiple
    allocation
  netfilter: arptables: Use kmemdup_array() instead of kmemdup() for
    multiple allocation
  netfilter: iptables: Use kmemdup_array() instead of kmemdup() for
    multiple allocation
  netfilter: nf_nat: Use kmemdup_array() instead of kmemdup() for
    multiple allocation

 net/bridge/netfilter/ebtables.c | 2 +-
 net/ipv4/netfilter/arp_tables.c | 2 +-
 net/ipv4/netfilter/ip_tables.c  | 2 +-
 net/netfilter/nf_nat_core.c     | 2 +-
 net/nfc/core.c                  | 5 ++---
 5 files changed, 6 insertions(+), 7 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-28 14:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28  7:09 [PATCH -next 0/5] net: Use kmemdup_array() instead of kmemdup() for multiple allocation Jinjie Ruan
2024-08-28  7:07 ` Jinjie Ruan
2024-08-28  7:10 ` [PATCH -next 1/5] nfc: core: " Jinjie Ruan
2024-08-28  7:10 ` [PATCH -next 2/5] netfilter: " Jinjie Ruan
2024-08-28  7:10 ` [PATCH -next 3/5] netfilter: arptables: " Jinjie Ruan
2024-08-28  7:10 ` [PATCH -next 4/5] netfilter: iptables: " Jinjie Ruan
2024-08-28  8:42   ` Pablo Neira Ayuso
2024-08-28 14:51     ` Pablo Neira Ayuso
2024-08-28  7:10 ` [PATCH -next 5/5] netfilter: nf_nat: " Jinjie Ruan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).