Re: [PATCH v2] drm: Fix alignment of temporary stack ioctl buffers

2024-06-17 Thread T.J. Mercier
On Fri, Jun 14, 2024 at 4:47 AM wrote: > > From: Carsten Haitzler > > In a few places (core drm + AMD kfd driver), the ioctl handling uses a > temporary 128 byte buffer on the stack to copy to/from user. ioctl data > can have structs with types of much larger sizes than a byte and a > system may

[PATCH v2] drm: Fix alignment of temporary stack ioctl buffers

2024-06-14 Thread carsten . haitzler
From: Carsten Haitzler In a few places (core drm + AMD kfd driver), the ioctl handling uses a temporary 128 byte buffer on the stack to copy to/from user. ioctl data can have structs with types of much larger sizes than a byte and a system may require alignment of types in these. At the same time