Re: [PATCH] Bluetooth: ISO: zero the sockaddr before returning it in getname

From: patchwork-bot+bluetooth

Date: Fri Aug 07 2026 - 12:59:57 EST


Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:

On Thu, 6 Aug 2026 23:06:21 +0000 you wrote:
> iso_sock_getname() fills a struct sockaddr_iso in place and returns its
> size without clearing it first, so bytes it does not write are copied to
> user space from the kernel stack. The getsockname(2) and getpeername(2)
> paths both run through do_getsockname(), which hands getname() an
> uninitialized sockaddr_storage on the stack and copies back up to the
> number of bytes getname() returns, so the driver has to initialize every
> byte it accounts for.
>
> [...]

Here is the summary with links:
- Bluetooth: ISO: zero the sockaddr before returning it in getname
https://git.kernel.org/bluetooth/bluetooth-next/c/e25de80035a3

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