mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "Maciej Żenczykowski" <maze@google.com>,
	"Maciej Żenczykowski" <zenczykowski@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Richard Weinberger <richard@nod.at>,
	Anton Ivanov <anton.ivanov@cambridgegreys.com>,
	 linux-um@lists.infradead.org
Subject: Re: [PATCH] um: make personality(PER_LINUX32) work on x86_64
Date: Mon, 19 Aug 2024 14:23:12 +0200	[thread overview]
Message-ID: <efbb6394805f11de27cace9817418744d8e69506.camel@sipsolutions.net> (raw)
In-Reply-To: <20240813234755.3615697-1-maze@google.com>

On Tue, 2024-08-13 at 16:47 -0700, Maciej Żenczykowski wrote:
> Without this patch:
>   #!/usr/bin/python3
>   import ctypes
>   import os
>   personality = ctypes.CDLL(None).personality
>   personality.restype = ctypes.c_int
>   personality.argtypes = [ctypes.c_ulong]
>   PER_LINUX32=8
>   personality(PER_LINUX32)
>   print(os.uname().machine)
> returns:
>   x86_64
> instead of the desired:
>   i686
> 

But ... why should it work? UML has no 32-bit compat support anyway.

johannes

  reply	other threads:[~2024-08-19 12:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-13 23:47 Maciej Żenczykowski
2024-08-19 12:23 ` Johannes Berg [this message]
2024-08-19 18:46   ` Maciej Żenczykowski
2024-08-28 12:58     ` Johannes Berg

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=efbb6394805f11de27cace9817418744d8e69506.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=anton.ivanov@cambridgegreys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-um@lists.infradead.org \
    --cc=maze@google.com \
    --cc=richard@nod.at \
    --cc=zenczykowski@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

all inboxes | Powered by JetHome®