netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 RESEND 0/2] posix-clock: Fix missing timespec64 check for PTP clock
@ 2024-10-09  7:23 Jinjie Ruan
  2024-10-09  7:23 ` [PATCH v5 RESEND 1/2] posix-clock: Fix missing timespec64 check in pc_clock_settime() Jinjie Ruan
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jinjie Ruan @ 2024-10-09  7:23 UTC (permalink / raw)
  To: bryan.whitehead, davem, edumazet, kuba, pabeni, anna-maria,
	frederic, tglx, richardcochran, johnstul, UNGLinuxDriver, jstultz,
	netdev, linux-kernel
  Cc: ruanjinjie

Check timespec64 in pc_clock_settime() for PTP clock as
the man manual of clock_settime() said.

Changes in v5 resend:
- Add Acked-by.
- Also Cc John Stultz.

Changes in v5:
- Use timespec64_valid_strict() instead of timespec64_valid()
  as Thomas suggested.
- Add fix tag.
- Update the commit message.

Changes in v4:
- Check it in pc_clock_settime() for PTP clock.
- Update the commit message.

Changes in v3:
- Check it before call clock_set().
- Update the commit message.

Jinjie Ruan (2):
  posix-clock: Fix missing timespec64 check in pc_clock_settime()
  net: lan743x: Remove duplicate check

 drivers/net/ethernet/microchip/lan743x_ptp.c | 35 ++++++++------------
 kernel/time/posix-clock.c                    |  3 ++
 2 files changed, 17 insertions(+), 21 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-10-22 14:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09  7:23 [PATCH v5 RESEND 0/2] posix-clock: Fix missing timespec64 check for PTP clock Jinjie Ruan
2024-10-09  7:23 ` [PATCH v5 RESEND 1/2] posix-clock: Fix missing timespec64 check in pc_clock_settime() Jinjie Ruan
2024-10-11 19:57   ` Jakub Kicinski
2024-10-15 22:33     ` Thomas Gleixner
2024-10-15 23:22       ` Jakub Kicinski
2024-10-16 14:52         ` Thomas Gleixner
2024-10-22 11:23           ` Pavel Machek
2024-10-22 14:31             ` Anna-Maria Behnsen
2024-10-09  7:23 ` [PATCH v5 RESEND 2/2] net: lan743x: Remove duplicate check Jinjie Ruan
2024-10-15  0:40 ` [PATCH v5 RESEND 0/2] posix-clock: Fix missing timespec64 check for PTP clock patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).