[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<170004662421.29267.17413794298247399121.git-patchwork-notify@kernel.org>
Date: Wed, 15 Nov 2023 11:10:24 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Gal Pressman <gal@...dia.com>
Cc: davem@...emloft.net, kuba@...nel.org, edumazet@...gle.com,
pabeni@...hat.com, jiri@...nulli.us, netdev@...r.kernel.org,
horms@...nel.org, vladbu@...dia.com
Subject: Re: [PATCH net v2] net: Fix undefined behavior in netdev name allocation
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem@...emloft.net>:
On Tue, 14 Nov 2023 09:56:18 +0200 you wrote:
> Cited commit removed the strscpy() call and kept the snprintf() only.
>
> It is common to use 'dev->name' as the format string before a netdev is
> registered, this results in 'res' and 'name' pointers being equal.
> According to POSIX, if copying takes place between objects that overlap
> as a result of a call to sprintf() or snprintf(), the results are
> undefined.
>
> [...]
Here is the summary with links:
- [net,v2] net: Fix undefined behavior in netdev name allocation
https://git.kernel.org/netdev/net/c/674e31808946
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