On Wed, May 17, 2023 at 05:03:19PM +0200, Florent Revest wrote: > Alexey pointed out that defining a prctl flag as an int is a footgun > because, under some circumstances, when used as a flag to prctl, it can > be casted to long with garbage upper bits which would result in > unexpected behaviors. > > This patch changes the constant to a UL to eliminate these > possibilities. > > Signed-off-by: Florent Revest <revest@xxxxxxxxxxxx> > Suggested-by: Alexey Izbyshev <izbyshev@xxxxxxxxx> FWIW, I'm fine with this patch and I don't think it introduces an ABI change. Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>