mbox series

[net-next,v4,0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211

Message ID 20210927033457.1020967-1-shjy180909@gmail.com (mailing list archive)
Headers show
Series check return value of rhashtable_init in mlx5e, ipv6, mac80211 | expand

Message

MichelleJin Sept. 27, 2021, 3:34 a.m. UTC
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
v3->v4:
 - fix newly created warnings due to patches in net/ipv6/seg6.c


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                                    |  8 ++++++--
 net/ipv6/seg6_hmac.c                               |  4 +---
 net/mac80211/mesh_pathtbl.c                        |  5 ++++-
 5 files changed, 27 insertions(+), 10 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Sept. 28, 2021, 12:10 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (refs/heads/master):

On Mon, 27 Sep 2021 03:34:54 +0000 you wrote:
> 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
> v3->v4:
>  - fix newly created warnings due to patches in net/ipv6/seg6.c
> 
> [...]

Here is the summary with links:
  - [net-next,v4,1/3] net/mlx5e: check return value of rhashtable_init
    https://git.kernel.org/netdev/net-next/c/d7cade513752
  - [net-next,v4,2/3] net: ipv6: check return value of rhashtable_init
    https://git.kernel.org/netdev/net-next/c/f04ed7d277e8
  - [net-next,v4,3/3] net: mac80211: check return value of rhashtable_init
    https://git.kernel.org/netdev/net-next/c/f43bed7193a3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html