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

2024-06-14 Thread Carsten Haitzler
On 6/11/24 5:17 PM, T.J. Mercier wrote: On Tue, Jun 11, 2024 at 2:35 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 s

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

2024-06-11 Thread T.J. Mercier
On Tue, Jun 11, 2024 at 2:35 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