Re: [PATCH] vme_user: tighten slave window bounds and validate offsets
From: Greg KH
Date: Thu May 28 2026 - 01:42:36 EST
On Wed, May 27, 2026 at 06:14:24PM -0300, Lucas Faria Mendes wrote:
> Limit slave read/write operations to the allocated buffer size to
> prevent out-of-bounds access when a slave window is
> configured larger than its buffer.
> Treat zero-sized windows and invalid file positions as errors,
> and reject VME_SET_SLAVE requests that exceed the slave buffer.
> This makes the user access driver more robust and avoids
> silent EOF on invalid offsets.
Odd line-wrapping :(
How did you find this issue? How was it tested?
thanks,
greg k-h