Re: [PATCH net v2] ptp: Properly handle compat ioctls

From: Richard Cochran
Date: Sat Jan 25 2025 - 15:22:00 EST


On Sat, Jan 25, 2025 at 10:28:38AM +0100, Thomas Weißschuh wrote:
> Pointer arguments passed to ioctls need to pass through compat_ptr() to
> work correctly on s390; as explained in Documentation/driver-api/ioctl.rst.
> Detect compat mode at runtime and call compat_ptr() for those commands
> which do take pointer arguments.
>
> Suggested-by: Arnd Bergmann <arnd@xxxxxxxx>
> Link: https://lore.kernel.org/lkml/1ba5d3a4-7931-455b-a3ce-85a968a7cb10@xxxxxxxxxxxxxxxx/
> Fixes: d94ba80ebbea ("ptp: Added a brand new class driver for ptp clocks.")
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>

Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>