Re: [PATCH net-next v3 0/2] ptp: reject frequency adjustments that overflow scaled_ppm_to_ppb()
[email protected] Thu, 06 Aug 2026 01:20:22 +0000
| Newsgroups | org.kernel.vger.linux-kselftest,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <178597922226.593652.14156851954295543924.git-patchwork-notify@kernel.org> |
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>: On Sat, 1 Aug 2026 22:29:21 +0000 you wrote: > ptp_clock_adjtime() validates an ADJ_FREQUENCY request by converting > tx->freq to ppb and comparing it against ops->max_adj. On 64-bit systems > that conversion can overflow s64 and wrap the result back into range, so > a crafted tx->freq bypasses the check and reaches ->adjfine() unclamped. > > No real user space asks for such a frequency, so this is hardening rather > than a fix anyone is waiting on, and it is targeted at net-next with no > Fixes tag per Jakub's feedback on v2. > > [...] Here is the summary with links: - [net-next,v3,1/2] ptp: reject frequency adjustments that overflow scaled_ppm_to_ppb() https://git.kernel.org/netdev/net-next/c/504ef04e8674 - [net-next,v3,2/2] selftests: ptp: add a regression test for the frequency adjustment overflow (no matching commit) You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html