Re: [PATCH v5] ptp: ocp: Limit signal/freq counts in summary output functions
From: patchwork-bot+netdevbpf
Date: Fri May 16 2025 - 18:50:04 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 14 May 2025 10:35:41 +0300 you wrote:
> The debugfs summary output could access uninitialized elements in
> the freq_in[] and signal_out[] arrays, causing NULL pointer
> dereferences and triggering a kernel Oops (page_fault_oops).
> This patch adds u8 fields (nr_freq_in, nr_signal_out) to track the
> number of initialized elements, with a maximum of 4 per array.
> The summary output functions are updated to respect these limits,
> preventing out-of-bounds access and ensuring safe array handling.
>
> [...]
Here is the summary with links:
- [v5] ptp: ocp: Limit signal/freq counts in summary output functions
https://git.kernel.org/netdev/net/c/c9e455581e2b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html