[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168238501856.6495.11277937193414735695.git-patchwork-notify@kernel.org>
Date: Tue, 25 Apr 2023 01:10:18 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, kaber@...sh.net, pablo@...filter.org,
christophe-h.ricard@...com, johannes.berg@...el.com,
dsahern@...il.com, kuni1840@...il.com, netdev@...r.kernel.org,
bspencer@...ckberry.com
Subject: Re: [PATCH v3 net] netlink: Use copy_to_user() for optval in
netlink_getsockopt().
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Fri, 21 Apr 2023 11:52:55 -0700 you wrote:
> Brad Spencer provided a detailed report [0] that when calling getsockopt()
> for AF_NETLINK, some SOL_NETLINK options set only 1 byte even though such
> options require at least sizeof(int) as length.
>
> The options return a flag value that fits into 1 byte, but such behaviour
> confuses users who do not initialise the variable before calling
> getsockopt() and do not strictly check the returned value as char.
>
> [...]
Here is the summary with links:
- [v3,net] netlink: Use copy_to_user() for optval in netlink_getsockopt().
https://git.kernel.org/netdev/net/c/d913d32cc270
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