lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <efbb6394805f11de27cace9817418744d8e69506.camel@sipsolutions.net>
Date: Mon, 19 Aug 2024 14:23:12 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Maciej Żenczykowski <maze@...gle.com>, Maciej
 Żenczykowski
	 <zenczykowski@...il.com>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Richard
 Weinberger <richard@....at>, Anton Ivanov
 <anton.ivanov@...bridgegreys.com>,  linux-um@...ts.infradead.org
Subject: Re: [PATCH] um: make personality(PER_LINUX32) work on x86_64

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ