All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211.
@ 2021-09-25  6:10 MichelleJin
  2021-09-25  6:10 ` [PATCH net-next v3 1/3] net/mlx5e: check return value of rhashtable_init MichelleJin
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: MichelleJin @ 2021-09-25  6:10 UTC (permalink / raw)
  To: davem, kuba, yoshfuji, dsahern, johannes
  Cc: saeedm, leon, roid, paulb, ozsh, vladbu, lariel, cmi, netdev

When rhashtable_init() fails, it returns -EINVAL.
However, since error return value of rhashtable_init is not checked,
it can cause use of uninitialized pointers.
So, fix unhandled errors of rhashtable_init.
The three patches are essentially the same logic.

v1->v2:
 - change commit message
 - fix possible memory leaks
v2->v3:
 - split patch into mlx5e, ipv6, mac80211.

MichelleJin (3):
  net/mlx5e: check return value of rhashtable_init
  net: ipv6: check return value of rhashtable_init
  net: mac80211: check return value of rhashtable_init

 drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 14 +++++++++++---
 net/ipv6/ila/ila_xlat.c                            |  6 +++++-
 net/ipv6/seg6.c                                    |  6 +++++-
 net/ipv6/seg6_hmac.c                               |  6 +++++-
 net/mac80211/mesh_pathtbl.c                        |  5 ++++-
 5 files changed, 30 insertions(+), 7 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH net-next v3 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211.
@ 2021-09-25  6:05 MichelleJin
  0 siblings, 0 replies; 7+ messages in thread
From: MichelleJin @ 2021-09-25  6:05 UTC (permalink / raw)
  To: avem, kuba, yoshfuji, dsahern, johannes
  Cc: saeedm, leon, roid, paulb, ozsh, vladbu, lariel, cmi, netdev

When rhashtable_init() fails, it returns -EINVAL.
However, since error return value of rhashtable_init is not checked,
it can cause use of uninitialized pointers.
So, fix unhandled errors of rhashtable_init.
The three patches are essentially the same logic.

v1->v2:
 - change commit message
 - fix possible memory leaks
v2->v3:
 - split patch into mlx5e, ipv6, mac80211.

MichelleJin (3):
  net/mlx5e: check return value of rhashtable_init
  net: ipv6: check return value of rhashtable_init
  net: mac80211: check return value of rhashtable_init

 drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 14 +++++++++++---
 net/ipv6/ila/ila_xlat.c                            |  6 +++++-
 net/ipv6/seg6.c                                    |  6 +++++-
 net/ipv6/seg6_hmac.c                               |  6 +++++-
 net/mac80211/mesh_pathtbl.c                        |  5 ++++-
 5 files changed, 30 insertions(+), 7 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-09-25 16:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-25  6:10 [PATCH net-next v3 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211 MichelleJin
2021-09-25  6:10 ` [PATCH net-next v3 1/3] net/mlx5e: check return value of rhashtable_init MichelleJin
2021-09-25  6:10 ` [PATCH net-next v3 2/3] net: ipv6: " MichelleJin
2021-09-25 16:38   ` David Ahern
2021-09-25  6:10 ` [PATCH net-next v3 3/3] net: mac80211: " MichelleJin
2021-09-25  7:26 ` [PATCH net-next v3 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211 진성희
  -- strict thread matches above, loose matches on Subject: below --
2021-09-25  6:05 MichelleJin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.