Re: [PATCH] Bluetooth: ISO: zero the sockaddr before returning it in getname
| Newsgroups | org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <178612021790.1887768.1776053981475041255.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>: 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