[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9de3e5e4-d179-4db0-a589-5ccf21e2fe4a@yandex.ru>
Date: Thu, 14 Nov 2024 12:21:48 +0300
From: stsp <stsp2@...dex.ru>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: almasrymina@...gle.com, asml.silence@...il.com, axboe@...nel.dk,
brauner@...nel.org, davem@...emloft.net, edumazet@...gle.com,
gouhao@...ontech.com, horms@...nel.org, kees@...nel.org, krisman@...e.de,
kuba@...nel.org, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org, mhal@...x.co, netdev@...r.kernel.org,
oleg@...hat.com, pabeni@...hat.com, quic_abchauha@...cinc.com,
shuah@...nel.org, tandersen@...flix.com, viro@...iv.linux.org.uk,
willemb@...gle.com
Subject: Re: [PATCH] net/unix: pass pidfd flags via SCM_PIDFD cmsg
14.11.2024 05:50, Kuniyuki Iwashima пишет:
> From: Stas Sergeev <stsp2@...dex.ru>
> Date: Thu, 14 Nov 2024 00:02:05 +0300
>> @@ -154,7 +157,12 @@ static __inline__ void scm_pidfd_recv(struct msghdr *msg, struct scm_cookie *scm
>> if (!scm->pid)
>> return;
>>
>> - pidfd = pidfd_prepare(scm->pid, 0, &pidfd_file);
>> + err = pidfd_validate_flags(scm->pidfd_flags);
> No neede to double check here, it's already checked in __scm_send().
Done and sent v2, thanks.
Powered by blists - more mailing lists