From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C339BC433F5 for ; Thu, 12 May 2022 14:21:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355226AbiELOVu (ORCPT ); Thu, 12 May 2022 10:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355238AbiELOVf (ORCPT ); Thu, 12 May 2022 10:21:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52FFB62CD6 for ; Thu, 12 May 2022 07:21:30 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652365288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LKW8s1IC8MmGMecprVtPLX/4rsXDGAuIe6lI8Xw1LJM=; b=SSeS5NBZhKRm+kFTkFtKqwwBIglBHot0XHjIrEE4MNVTwRRSVmvFrfESZ+pKnq2jMiPA5D 9MWCs/yBBCRT3NT0QSwJKSjkDseXDscN5NarPZVMOLxKidHtkxaPYoE84ls+r6zr1x7OWm UgGReWwqWnoFTXrPMtAu1dgm0Uz7DkpTIbV5F+4LnuZZUT91kUaiPhqv/TVNj4Rryrwpyb /T54OW2WH7bFqheJsi+d3+hei2l3VmazNeGgj3uSR5PYMAYtyv8b5F3EMvgIjdjgCon116 jOVWEkfaRx5N/4qkCzutFWPJMtbHq4AWcGRKDtifDaVR7EYwcFe7wM3Iicl4+A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652365288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LKW8s1IC8MmGMecprVtPLX/4rsXDGAuIe6lI8Xw1LJM=; b=R6Vr1lA/JP0T02AwerEAu6yTbUZNQRSQXwH0lL+/cua20V2rc9ONltjw7yrriAaBRX+qhp j4TzS/RleXWP9jBg== To: "H.J. Lu" , "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , the arch/x86 maintainers , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andi Kleen , Rick Edgecombe , Linux-MM , LKML Subject: Re: [RFCv2 09/10] x86/mm: Add userspace API to enable Linear Address Masking In-Reply-To: References: <20220511022751.65540-1-kirill.shutemov@linux.intel.com> <20220511022751.65540-11-kirill.shutemov@linux.intel.com> Date: Thu, 12 May 2022 16:21:27 +0200 Message-ID: <8735hex254.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11 2022 at 07:15, H. J. Lu wrote: >> @@ -992,7 +994,9 @@ unsigned long __get_wchan(struct task_struct *p) >> static long thread_feature_prctl(struct task_struct *task, int option, >> unsigned long features) > > Since this arch_prctl will also be used for CET, which supports > 32-bit processes, > shouldn't int, instead of long, be used? This is kernel internal code and the compat syscall takes care of the int to long conversion. So yes, that could use unsigned int, but it does not matter. Thanks, tglx