lkml.org 
[lkml]   [2019]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v11 1/2] fork: extend clone3() to support setting a PID
From
Date
On 11/15/19 4:54 PM, Dmitry Safonov wrote:

> [..]
>> + size_t set_tid_size;
>> + __aligned_u64 set_tid_size;
>
> [..]
>> + .set_tid_size = args.set_tid_size,
>
> Is sizeof(size_t) == 32 on native 32-bit platforms?
> Maybe `args.set_tid_size` should be checked?

Nevermind, I missed that
+ if (unlikely(args.set_tid_size > MAX_PID_NS_LEVEL))
+ return -EINVAL;

is checked for `args' - it should be good enough.

Thanks,
Dmitry

\
 
 \ /
  Last update: 2019-11-15 18:03    [W:0.108 / U:4.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site