Re: [PATCH ovpn net] ovpn: use monotonic clock for peer keepalive timeouts

Antonio Quartulli <[email protected]>
Newsgroups gmane.network.openvpn.devel
Message-ID <178092833777.3219682.2580839165890671462.b4-ty@b4>
From: Antonio Quartulli <[email protected]>


On Mon, 08 Jun 2026 16:06:42 +0200, Marco Baffo wrote:
> Replace ktime_get_real_seconds() with the monotonic ktime_get_boottime_seconds()
> to ensure the keepalive mechanism is robust against system clock modifications.
> 
> Right now, the driver uses ktime_get_real_seconds() to track peer timeouts,
> relying on the system wall-clock.
> 
> An administrative time adjustment or an NTP sync that steps the clock forward
> can cause `now' to instantly exceed `last_recv + timeout'.
> 
> [...]

Applied, thanks!

[1/1] ovpn: use monotonic clock for peer keepalive timeouts
      commit: 573bb65040d2b815888f56e8c96f58659fdfee9c

Best regards,
-- 
Antonio Quartulli <[email protected]>
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.