[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8735hex254.ffs@tglx>
Date: Thu, 12 May 2022 16:21:27 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: "H.J. Lu" <hjl.tools@...il.com>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>,
Andy Lutomirski <luto@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
the arch/x86 maintainers <x86@...nel.org>,
Andrey Ryabinin <aryabinin@...tuozzo.com>,
Alexander Potapenko <glider@...gle.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
Andi Kleen <ak@...ux.intel.com>,
Rick Edgecombe <rick.p.edgecombe@...el.com>,
Linux-MM <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFCv2 09/10] x86/mm: Add userspace API to enable Linear
Address Masking
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
Powered by blists - more mailing lists