From: Oleg Nesterov <oleg@redhat.com>
To: Mateusz Guzik <mjguzik@gmail.com>
Cc: brauner@kernel.org, akpm@linux-foundation.org,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [PATCH v2] exit: perform randomness and pid work without tasklist_lock
Date: Tue, 28 Jan 2025 20:22:25 +0100 [thread overview]
Message-ID: <20250128192224.GD24845@redhat.com> (raw)
In-Reply-To: <CAGudoHGqKgD+1VT2ELd-KZfAZn11K3=rGnhP8FwJJc56+-1G6A@mail.gmail.com>
On 01/28, Mateusz Guzik wrote:
>
> On Tue, Jan 28, 2025 at 7:30 PM Oleg Nesterov <oleg@redhat.com> wrote:
> >
> no problem, will send a v3 provided there are no issues reported
> concerning the pid stuff
Great, thanks.
BTW, I didn't look at the pid stuff yet, I _feel_ that this can be simplified
too, but I am already sleeping, most probably I am wrong.
> > As for add_device_randomness(). I must have missed something, but I still can't
> > understand why we can't simply shift add_device_randomness(p->sum_exec_runtime)
> > to release_release_task() and avoid release_task_post->randomness.
> >
> > You said:
> >
> > I wanted to keep the load where it was
> >
> > but why??? Again, I must have missed something, but to me this simply adds the
> > unnecessary complications. Either way, ->sum_exec_runtime is not stable even if
> > task-to-release != current, so what is the point?
> >
>
> Perhaps I should preface this is not a hill I'm going to die on. :->
>
> This is the spot which is known to work and release_task does not
> access the area otherwise. So for all I know someone will change it
> later to be freeable, zeroed for "hardening"
sum_exec_runtime can't be freed/zeroed/etc in any case.
Again, please note that task-to-release can still be running, especially
if it is current.
> always add the same value.
I don't think that "add the same value" does matter at all in this case,
but please correct me.
> So by default I don't want to change aspect.
>
> However, if you insist on the read to just moving, I'll be more than
> happy to do that in v3.
Thanks, see above ;)
Oleg.
next prev parent reply other threads:[~2025-01-28 19:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 16:07 Mateusz Guzik
2025-01-28 18:29 ` Oleg Nesterov
2025-01-28 18:38 ` Mateusz Guzik
2025-01-28 19:22 ` Oleg Nesterov [this message]
2025-01-30 11:01 ` Mateusz Guzik
2025-01-31 20:55 ` Eric W. Biederman
2025-01-31 22:31 ` Mateusz Guzik
2025-01-31 23:09 ` Eric W. Biederman
2025-02-01 14:03 ` Mateusz Guzik
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=20250128192224.GD24845@redhat.com \
--to=oleg@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=brauner@kernel.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mjguzik@gmail.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