* Re: [PATCH net v2] ptp: Properly handle compat ioctls
2025-01-25 9:28 [PATCH net v2] ptp: Properly handle compat ioctls Thomas Weißschuh
@ 2025-01-25 10:14 ` Cyrill Gorcunov
2025-01-25 17:04 ` Arnd Bergmann
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Cyrill Gorcunov @ 2025-01-25 10:14 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Richard Cochran, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Anna-Maria Behnsen,
Frederic Weisbecker, Thomas Gleixner, John Stultz, Arnd Bergmann,
John Stultz, netdev, linux-kernel
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@arndb.de>
> Link: https://lore.kernel.org/lkml/1ba5d3a4-7931-455b-a3ce-85a968a7cb10@app.fastmail.com/
> Fixes: d94ba80ebbea ("ptp: Added a brand new class driver for ptp clocks.")
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Looks OK for me, thanks Thomas!
Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH net v2] ptp: Properly handle compat ioctls
2025-01-25 9:28 [PATCH net v2] ptp: Properly handle compat ioctls Thomas Weißschuh
2025-01-25 10:14 ` Cyrill Gorcunov
@ 2025-01-25 17:04 ` Arnd Bergmann
2025-01-25 20:21 ` Richard Cochran
2025-01-28 11:10 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2025-01-25 17:04 UTC (permalink / raw)
To: Thomas Weißschuh, Richard Cochran, Andrew Lunn,
David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Anna-Maria Gleixner, Frederic Weisbecker, Thomas Gleixner,
John Stultz, John Stultz
Cc: Netdev, linux-kernel, Cyrill Gorcunov
On Sat, Jan 25, 2025, at 10:28, 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@arndb.de>
> Link:
> https://lore.kernel.org/lkml/1ba5d3a4-7931-455b-a3ce-85a968a7cb10@app.fastmail.com/
> Fixes: d94ba80ebbea ("ptp: Added a brand new class driver for ptp
> clocks.")
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH net v2] ptp: Properly handle compat ioctls
2025-01-25 9:28 [PATCH net v2] ptp: Properly handle compat ioctls Thomas Weißschuh
2025-01-25 10:14 ` Cyrill Gorcunov
2025-01-25 17:04 ` Arnd Bergmann
@ 2025-01-25 20:21 ` Richard Cochran
2025-01-28 11:10 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 5+ messages in thread
From: Richard Cochran @ 2025-01-25 20:21 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Anna-Maria Behnsen, Frederic Weisbecker,
Thomas Gleixner, John Stultz, Arnd Bergmann, John Stultz, netdev,
linux-kernel, Cyrill Gorcunov
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@arndb.de>
> Link: https://lore.kernel.org/lkml/1ba5d3a4-7931-455b-a3ce-85a968a7cb10@app.fastmail.com/
> Fixes: d94ba80ebbea ("ptp: Added a brand new class driver for ptp clocks.")
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Richard Cochran <richardcochran@gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH net v2] ptp: Properly handle compat ioctls
2025-01-25 9:28 [PATCH net v2] ptp: Properly handle compat ioctls Thomas Weißschuh
` (2 preceding siblings ...)
2025-01-25 20:21 ` Richard Cochran
@ 2025-01-28 11:10 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-01-28 11:10 UTC (permalink / raw)
To: =?utf-8?q?Thomas_Wei=C3=9Fschuh_=3Clinux=40weissschuh=2Enet=3E?=
Cc: richardcochran, andrew+netdev, davem, edumazet, kuba, pabeni,
anna-maria, frederic, tglx, jstultz, arnd, john.stultz, netdev,
linux-kernel, gorcunov
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Sat, 25 Jan 2025 10:28:38 +0100 you 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@arndb.de>
> Link: https://lore.kernel.org/lkml/1ba5d3a4-7931-455b-a3ce-85a968a7cb10@app.fastmail.com/
> Fixes: d94ba80ebbea ("ptp: Added a brand new class driver for ptp clocks.")
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
>
> [...]
Here is the summary with links:
- [net,v2] ptp: Properly handle compat ioctls
https://git.kernel.org/netdev/net/c/19ae40f572a9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread