mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: stsp <stsp2@yandex.ru>
To: Kuniyuki Iwashima <kuniyu@amazon.com>
Cc: almasrymina@google.com, asml.silence@gmail.com, axboe@kernel.dk,
	brauner@kernel.org, davem@davemloft.net, edumazet@google.com,
	gouhao@uniontech.com, horms@kernel.org, kees@kernel.org,
	krisman@suse.de, kuba@kernel.org, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, mhal@rbox.co,
	netdev@vger.kernel.org, oleg@redhat.com, pabeni@redhat.com,
	quic_abchauha@quicinc.com, shuah@kernel.org,
	tandersen@netflix.com, viro@zeniv.linux.org.uk,
	willemb@google.com
Subject: Re: [PATCH] net/unix: pass pidfd flags via SCM_PIDFD cmsg
Date: Thu, 14 Nov 2024 12:21:48 +0300	[thread overview]
Message-ID: <9de3e5e4-d179-4db0-a589-5ccf21e2fe4a@yandex.ru> (raw)
In-Reply-To: <20241114025007.99331-1-kuniyu@amazon.com>

14.11.2024 05:50, Kuniyuki Iwashima пишет:
> From: Stas Sergeev <stsp2@yandex.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.

      reply	other threads:[~2024-11-14  9:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-13 21:02 Stas Sergeev
2024-11-14  2:50 ` Kuniyuki Iwashima
2024-11-14  9:21   ` stsp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9de3e5e4-d179-4db0-a589-5ccf21e2fe4a@yandex.ru \
    --to=stsp2@yandex.ru \
    --cc=almasrymina@google.com \
    --cc=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=brauner@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gouhao@uniontech.com \
    --cc=horms@kernel.org \
    --cc=kees@kernel.org \
    --cc=krisman@suse.de \
    --cc=kuba@kernel.org \
    --cc=kuniyu@amazon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=mhal@rbox.co \
    --cc=netdev@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=pabeni@redhat.com \
    --cc=quic_abchauha@quicinc.com \
    --cc=shuah@kernel.org \
    --cc=tandersen@netflix.com \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®