Re: [PATCH v2 net] ptp: netc: fix period truncation and potential divide-by-zero in PEROUT
From: patchwork-bot+netdevbpf
Date: Sat Aug 22 2026 - 16:01:32 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 21 Aug 2026 11:24:49 +0800 you wrote:
> From: Wei Fang <wei.fang@xxxxxxx>
>
> The max_period bound in net_timer_enable_perout() was computed as:
>
> max_period = (u64)NETC_TMR_DEFAULT_FIPER + integral_period;
>
> which exceeds U32_MAX when integral_period > 0 (e.g. 0x100000002 for
> the default 333333333 Hz clock). A period_ns that passes this check but
> exceeds U32_MAX is then silently truncated when stored into the u32
> struct netc_pp::period field.
>
> [...]
Here is the summary with links:
- [v2,net] ptp: netc: fix period truncation and potential divide-by-zero in PEROUT
https://git.kernel.org/netdev/net/c/777dbc9914b2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html