public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: + kthread-unify-kernel_thread-and-user_mode_thread.patch added to mm-nonmm-unstable branch
       [not found] ` <87352x22jc.fsf@email.froward.int.ebiederm.org>
@ 2023-06-12  7:21   ` Thomas Gleixner
  0 siblings, 0 replies; only message in thread
From: Thomas Gleixner @ 2023-06-12  7:21 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton; +Cc: mm-commits, mcgrof, keescook, chenhuacai

On Sun, Jun 11 2023 at 14:59, Eric W. Biederman wrote:
> Andrew Morton <akpm@linux-foundation.org> writes:
>
>> The patch titled
>>      Subject: kthread: Unify kernel_thread() and user_mode_thread()
>> has been added to the -mm mm-nonmm-unstable branch.  Its filename is
>>      kthread-unify-kernel_thread-and-user_mode_thread.patch
>
> Andrew.
>
> My fuzzy memory thinks Linus asked for the current split.

Correct. It was in a discussion about a nasty security hole due to a
race in the original code which did _not_ have the distinction.

> Plus this change just obfuscates the code making the most important
> detail the argument to a boolean parameter.  Meaning you have to have
> an interface that has only 3 callers memorized to even begin to make
> sense of it.

Right. Losing the clear distinction of the function names is a horrible
idea.

If at all this should at least keep user_mode_thread() and
kernel_thread() as inline wrappers around a common function.

Just blindly unifying code is a patently bad idea.

Thanks,

        tglx

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-12  7:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20230605231056.16BD1C433D2@smtp.kernel.org>
     [not found] ` <87352x22jc.fsf@email.froward.int.ebiederm.org>
2023-06-12  7:21   ` + kthread-unify-kernel_thread-and-user_mode_thread.patch added to mm-nonmm-unstable branch Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox