lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241219204208.3160-1-quic_philber@quicinc.com>
Date: Thu, 19 Dec 2024 21:42:02 +0100
From: Peter Hilber <quic_philber@...cinc.com>
To: <linux-kernel@...r.kernel.org>, <virtualization@...ts.linux.dev>,
        <virtio-dev@...ts.linux.dev>, <netdev@...r.kernel.org>
CC: Trilok Soni <quic_tsoni@...cinc.com>,
        Srivatsa Vaddagiri
	<quic_svaddagi@...cinc.com>,
        Peter Hilber <quic_philber@...cinc.com>,
        "David
 S. Miller" <davem@...emloft.net>,
        Eugenio PĂ©rez
	<eperezma@...hat.com>,
        "Michael S. Tsirkin" <mst@...hat.com>,
        Andrew Lunn
	<andrew+netdev@...n.ch>,
        Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
	<kuba@...nel.org>,
        Jason Wang <jasowang@...hat.com>, Paolo Abeni
	<pabeni@...hat.com>,
        Richard Cochran <richardcochran@...il.com>,
        Shuah Khan
	<shuah@...nel.org>, Xuan Zhuo <xuanzhuo@...ux.alibaba.com>,
        <linux-kselftest@...r.kernel.org>, <linux-api@...r.kernel.org>,
        "David
 Woodhouse" <dwmw2@...radead.org>,
        "Ridoux, Julien" <ridouxj@...zon.com>,
        "John Stultz" <jstultz@...gle.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        "Stephen Boyd" <sboyd@...nel.org>,
        Anna-Maria Behnsen
	<anna-maria@...utronix.de>
Subject: [RFC PATCH 0/2] ptp: add PTP_SYS_OFFSET_STAT ioctl, support it in virtio_rtc

This RFC patch series proposes a new ioctl PTP_SYS_OFFSET_STAT and adds
support for it in the proposed virtio_rtc driver [1]. The new
PTP_SYS_OFFSET_STAT ioctl provides a cross-timestamp like
PTP_SYS_OFFSET_PRECISE2, plus any the following status information (for
now):

- for UTC timescale clocks: leap second related status,

- clock accuracy.

The second commit adds support for the ioctl in the proposed virtio_rtc
driver, and hence depends on the patch series "Add virtio_rtc module" [1].

[1] https://lore.kernel.org/lkml/20241219201118.2233-1-quic_philber@quicinc.com/T/#t

Signed-off-by: Peter Hilber <quic_philber@...cinc.com>


Peter Hilber (2):
  ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status
  virtio_rtc: Support PTP_SYS_OFFSET_STAT ioctl

 drivers/ptp/ptp_chardev.c             |  39 ++++++++
 drivers/ptp/ptp_clock.c               |   9 ++
 drivers/virtio/Kconfig                |   4 +-
 drivers/virtio/virtio_rtc_driver.c    | 122 +++++++++++++++++++++++-
 drivers/virtio/virtio_rtc_internal.h  |   3 +-
 drivers/virtio/virtio_rtc_ptp.c       |  25 +++--
 include/linux/ptp_clock_kernel.h      |  31 ++++++
 include/uapi/linux/ptp_clock.h        | 130 +++++++++++++++++++++++++-
 tools/testing/selftests/ptp/Makefile  |   2 +-
 tools/testing/selftests/ptp/testptp.c | 126 ++++++++++++++++++++++++-
 10 files changed, 471 insertions(+), 20 deletions(-)


base-commit: 8a8009abbfa04e58f1b01b20534cac9e8fe61a46
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ