Re: [PATCH v2] platform/chrome: cros_ec_typec: zero out stale pointers

From: patchwork-bot+chrome-platform
Date: Wed Dec 07 2022 - 21:00:25 EST


Hello:

This patch was applied to chrome-platform/linux.git (for-kernelci)
by Tzung-Bi Shih <tzungbi@xxxxxxxxxx>:

On Wed, 7 Dec 2022 09:39:40 +0000 you wrote:
> `cros_typec_get_switch_handles` allocates four pointers when obtaining
> type-c switch handles. These pointers are all freed if failing to obtain
> any of them; therefore, pointers in `port` become stale. The stale
> pointers eventually cause use-after-free or double free in later code
> paths. Zeroing out all pointer fields after freeing to eliminate these
> stale pointers.
>
> [...]

Here is the summary with links:
- [v2] platform/chrome: cros_ec_typec: zero out stale pointers
https://git.kernel.org/chrome-platform/c/9a8aadcf0b45

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