Messages in this thread | | | Date | Tue, 23 May 2023 15:11:52 +0100 | From | Catalin Marinas <> | Subject | Re: [PATCH v2 3/5] mm: Make PR_MDWE_REFUSE_EXEC_GAIN an unsigned long |
| |
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@chromium.org> > Suggested-by: Alexey Izbyshev <izbyshev@ispras.ru>
FWIW, I'm fine with this patch and I don't think it introduces an ABI change.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
| |