[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166802461512.30373.18057693825103816017.git-patchwork-notify@kernel.org>
Date: Wed, 09 Nov 2022 20:10:15 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, jacob.e.keller@...el.com
Subject: Re: [PATCH net-next] genetlink: correctly begin the iteration over
policies
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Tue, 8 Nov 2022 12:41:28 -0800 you wrote:
> The return value from genl_op_iter_init() only tells us if
> there are any policies but to begin the iteration (and therefore
> load the first entry) we need to call genl_op_iter_next().
> Note that it's safe to call genl_op_iter_next() on a family
> with no ops, it will just return false.
>
> This may lead to various crashes, a warning in
> netlink_policy_dump_get_policy_idx() when policy is not found
> or.. no problem at all if the kmalloc'ed memory happens to be
> zeroed.
>
> [...]
Here is the summary with links:
- [net-next] genetlink: correctly begin the iteration over policies
https://git.kernel.org/netdev/net-next/c/154ba79c9f16
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists