Wojciech Lukowicz <wlukowicz01@xxxxxxxxx> writes: > This shows an issue with how the kernel calculates buffer ring sizes > during their registration. > > Allocate two pages, register a buf ring fully occupying the first one, > while protecting the second one to make sure it's not used. The > registration should succeed. > > mmapping a single page would be a more practical example, but wouldn't > guarantee the issue gets triggered in case the following page happens > to be accessible. > > Signed-off-by: Wojciech Lukowicz <wlukowicz01@xxxxxxxxx> > --- > This is a failing test, needs the patch I sent earlier. Reviewed-by: Gabriel Krisman Bertazi <krisman@xxxxxxx> -- Gabriel Krisman Bertazi