Re: [PATCH v2 net] ptp: netc: fix period truncation and potential divide-by-zero in PEROUT

[email protected]
Newsgroups dev.linux.lists.imx,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <178742882288.1812309.16792261693312598878.git-patchwork-notify@kernel.org>
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

On Fri, 21 Aug 2026 11:24:49 +0800 you wrote:
> From: Wei Fang <[email protected]>
> 
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.