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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 12 Aug 2022 17:31:59 +0200 From: Petr Machata <petrm@...dia.com> To: "David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, <netdev@...r.kernel.org> CC: Ido Schimmel <idosch@...dia.com>, Danielle Ratson <danieller@...dia.com>, Amit Cohen <amcohen@...dia.com>, Richard Cochran <richardcochran@...il.com>, Petr Machata <petrm@...dia.com>, <mlxsw@...dia.com> Subject: [PATCH net 0/4] mlxsw: Fixes for PTP support This set fixes several issues in mlxsw PTP code. - Patch #1 fixes compilation warnings. - Patch #2 adjusts the order of operation during cleanup, thereby closing the window after PTP state was already cleaned in the ASIC for the given port, but before the port is removed, when the user could still in theory make changes to the configuration. - Patch #3 protects the PTP configuration with a custom mutex, instead of relying on RTNL, which is not held in all access paths. - Patch #4 forbids enablement of PTP only in RX or only in TX. The driver implicitly assumed this would be the case, but neglected to sanitize the configuration. Amit Cohen (4): mlxsw: spectrum_ptp: Fix compilation warnings mlxsw: spectrum: Clear PTP configuration after unregistering the netdevice mlxsw: spectrum_ptp: Protect PTP configuration with a mutex mlxsw: spectrum_ptp: Forbid PTP enablement only in RX or in TX .../net/ethernet/mellanox/mlxsw/spectrum.c | 2 +- .../ethernet/mellanox/mlxsw/spectrum_ptp.c | 30 ++++++++++++++----- .../ethernet/mellanox/mlxsw/spectrum_ptp.h | 18 ++++++----- 3 files changed, 34 insertions(+), 16 deletions(-) -- 2.35.3
Powered by blists - more mailing lists