From: MichelleJin <shjy180909@gmail.com>
To: davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org,
dsahern@kernel.org, johannes@sipsolutions.net
Cc: saeedm@nvidia.com, leon@kernel.org, roid@nvidia.com,
paulb@nvidia.com, ozsh@nvidia.com, vladbu@nvidia.com,
lariel@nvidia.com, cmi@nvidia.com, netdev@vger.kernel.org
Subject: [PATCH net-next v3 0/3] check return value of rhashtable_init in mlx5e, ipv6, mac80211.
Date: Sat, 25 Sep 2021 06:10:34 +0000 [thread overview]
Message-ID: <20210925061037.4555-1-shjy180909@gmail.com> (raw)
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
next reply other threads:[~2021-09-25 6:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-25 6:10 MichelleJin [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210925061037.4555-1-shjy180909@gmail.com \
--to=shjy180909@gmail.com \
--cc=cmi@nvidia.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=lariel@nvidia.com \
--cc=leon@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=ozsh@nvidia.com \
--cc=paulb@nvidia.com \
--cc=roid@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=vladbu@nvidia.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).