Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4424935rwd; Tue, 23 May 2023 07:35:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42ZY6/lxoJinl3uvyIV9uQLBPqxYF/kTljCnLc/TUQabtN57qoTIboBVkBJJIqjwmP6iCs X-Received: by 2002:a17:90b:4b01:b0:250:faff:e201 with SMTP id lx1-20020a17090b4b0100b00250faffe201mr13743813pjb.36.1684852512887; Tue, 23 May 2023 07:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684852512; cv=none; d=google.com; s=arc-20160816; b=qC0IvBROQVXvQ/D3Lg9emjCtxo1DVTWEWGCaaQkouO7yWyCTXrwtFYuACCx1GSKBw1 HLWuX8IF/uPuRZIvkiSXx+761+TwZ5wDhjPsfJ19WbIulfl6Gft5JrESbhpMv6ERtm2s oBW4WmVGGnF5ZcRAyvQ0YTz8vugtagvW2WM9rlVFUvGJ2oq9GDZX/DQNwfPxzvUHtCGh lCNb1udsJZHrbMKrdxcX9ltNKWPti3YtSqmOKC7tYfCJYrpBWkMLdndsYg6B2+d1Ku6r 29QlVZtJwBvWmz0ztLnpLIOcFr4eNY+0QCNKCFJMWhK1gZ3w7ddr7CQDTXx2RCqKBbbN OP1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=VJZfGK6lX0CKVQ/gq/nUsYMWILeS5aywESydTczNH6o=; b=U/OmG04GopZ9p8QiRpm16Dp7qKICS62m3ta2t1DgpmyGVxfWhEWOItgZculNIx8psn PQ/4asXeSOj8IHIWou1sQcjaQX3z8hAD6+gvNxFUbK0P0gZkot+imb2jZDBgQMJmxWPV deh0HuslyRWrvhr0O2RiVrN9hAb9hARSAyGbdYzhPRHATWcZxeyzceLAM6pTuBV7J5zw y1N8iXI+yMC0Psf3qfz4oMmz3NO123vLlxHKlSa5rGtDjZISlVQNb10NCTMEGF0R0Wnk g9UpMcmXVzu3+Hn7ivMEU5XkOwK2e8DlcBoZ5wQdz9KoGugTP7x2kOGewABhSCvPZbap jBZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a17090ab28a00b00247ad6e4188si334851pjr.51.2023.05.23.07.34.58; Tue, 23 May 2023 07:35:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237198AbjEWOMi (ORCPT + 99 others); Tue, 23 May 2023 10:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236851AbjEWOMU (ORCPT ); Tue, 23 May 2023 10:12:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4EE1733 for ; Tue, 23 May 2023 07:11:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF6496284B for ; Tue, 23 May 2023 14:11:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3F83C433D2; Tue, 23 May 2023 14:11:55 +0000 (UTC) Date: Tue, 23 May 2023 15:11:52 +0100 From: Catalin Marinas To: Florent Revest Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, anshuman.khandual@arm.com, joey.gouly@arm.com, mhocko@suse.com, keescook@chromium.org, david@redhat.com, peterx@redhat.com, izbyshev@ispras.ru, broonie@kernel.org, szabolcs.nagy@arm.com, kpsingh@kernel.org, gthelen@google.com, toiwoton@gmail.com Subject: Re: [PATCH v2 3/5] mm: Make PR_MDWE_REFUSE_EXEC_GAIN an unsigned long Message-ID: References: <20230517150321.2890206-1-revest@chromium.org> <20230517150321.2890206-4-revest@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517150321.2890206-4-revest@chromium.org> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Suggested-by: Alexey Izbyshev FWIW, I'm fine with this patch and I don't think it introduces an ABI change. Acked-by: Catalin Marinas