linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Xiongwei Song <sxwjean@me.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: x86@kernel.org, linux-mm@kvack.org, Xiongwei Song <sxwjean@gmail.com>
Subject: Re: [PATCH 1/2] x86: Rename TIF_ADDR32 to TIF_32BIT
Date: Tue, 21 Sep 2021 22:13:14 +0800	[thread overview]
Message-ID: <6398A677-41C9-4AE0-91B0-885D76935591@me.com> (raw)
In-Reply-To: <YUnG8zy7U98wQ5b1@hirez.programming.kicks-ass.net>


> On Sep 21, 2021, at 7:50 PM, Peter Zijlstra <peterz@infradead.org> wrote:
> 
> On Tue, Sep 21, 2021 at 07:02:51PM +0800, sxwjean@me.com wrote:
>> From: Xiongwei Song <sxwjean@gmail.com>
>> 
>> In arm64 or powerpc or sparc, the 32 bits process in 64 bits kernel is set
>> flag TIF_32BIT. However in x86, that flag name is TIF_ADDR32. This patch
>> makes the flag name in x86 same as other archs.
> 
> x86 is fundamentally different here, the TIF flag does not say (nor can
> it) anything about the bitness of the code running. On x86_64 a 64bit
> process can run 32bit code without the kernel necessarily knowing
> anything about it.
> 
> The only thing it does it limit the address range, and as such the name
> is correct.
> 
Hi Peter,

Thanks for your comments. But I missed email addresses for patch 1 and 2. 
I will resend the patches.

Regards,
Xiongwei


  reply	other threads:[~2021-09-21 14:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21 11:02 [PATCH 0/2] Use generic code for virtual address of randomization of x86 sxwjean
2021-09-21 11:02 ` [PATCH 1/2] x86: Rename TIF_ADDR32 to TIF_32BIT sxwjean
2021-09-21 11:50   ` Peter Zijlstra
2021-09-21 14:13     ` Xiongwei Song [this message]
2021-09-21 11:02 ` [PATCH 2/2] x86/mm: Randomize va with generic arch_pick_mmap_layout() sxwjean
2021-09-21 12:02   ` Peter Zijlstra
2021-09-21 13:24 ` [PATCH 0/2] Use generic code for virtual address of randomization of x86 Kees Cook
2021-09-21 14:11   ` Xiongwei Song
2021-09-21 14:19   ` Peter Zijlstra

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=6398A677-41C9-4AE0-91B0-885D76935591@me.com \
    --to=sxwjean@me.com \
    --cc=linux-mm@kvack.org \
    --cc=peterz@infradead.org \
    --cc=sxwjean@gmail.com \
    --cc=x86@kernel.org \
    /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