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]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel