Re: [RFCv2 09/10] x86/mm: Add userspace API to enable Linear Address Masking
From: Thomas Gleixner
Date: Thu May 12 2022 - 10:21:52 EST
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