Re: [PATCH] x32: Switch back to assembly syscall wrapper for prctl
Alejandro Colomar <[email protected]> Sun, 7 Dec 2025 13:34:36 +0100
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <blmb25wi2xskdsfkkgsm25uzacnn3kjny3if2uaazwfivzsdlw@siix5jfad7yj> |
Hi H.J., On Sun, Dec 07, 2025 at 11:52:08AM +0800, H.J. Lu wrote: > On Thu, Dec 4, 2025 at 10:06 PM Adhemerval Zanella Netto > <[email protected]> wrote: > > > > The x32 and or1k (which also uses similar implementation) does seems broken > > without checking the 'option' argument to see which arg we can va_arg. > > > > The problem is adding this logic on libc will add some forward-compatibility > > that we try to avoid (newer kernel prctl additions might now work correctly). > > > > I am not sure why we haven't switch x32 back to the assembly wrappers > > with 6a04404521ac4119ae36827eeb288ea84eee7cf6 fix (BZ#29770). H.J, can > > use remove the x32 C version (and also or1k as well)? > > Since the variadic prctl function takes at most 5 integer arguments which > are passed in the same integer registers on x32 as the function with 5 > integer arguments, we can safely use assembly syscall wrapper for prctl > for x32. > > Tested on x32. I leave or1k alone since I don't know if it is safe to > do the same. Thanks! Would you mind adding the following tag? Reported-by: Alejandro Colomar <[email protected]> Have a lovely day! Alex -- <https://www.alejandro-colomar.es>
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmk1dFYACgkQ64mZXMKQ wqlO+w/9HX5xnpevbACUg0n6Oo2cLwqAnRD4vXW3ARVx10gU3diUmRMBHFxnls4K LDwkf4a2XnaKqzg91ggdgzYxQqSZPbokc44x7fjJS6+LrlJaPRetPE9YZ6OSUsRt r9ReWDBzunB5xHGYeDtg6C+0fxl7+uQEF7kUlDOx7lMaKYUDO74mZIFXSgoYE2cE 2nfNqcq9x+b8w2CE9xq3pYN5Zzoq7INB/wSr961q46uhbAnBc5YEkvEfOB/wJyi8 3VkXXyxLBO/4sslGLLEitZWY03tkaMYm7lekPf1qam23G3X3OnCE/UJDREzaXxuh 3je0bGXFJGALha8QKKumCAcU41OTsPSoqehgBRYTvxJYjohwFTj49TwCB9VMhFNX 0g8GbUi56rtEvzpxAQu91l2qDuQ4sy+XJ+bGGiW2Z9w1vkiKbi2tMh5O42rbtztv O9uDXO4YKxt7rac0xYH30bVaXMaejmeZZnX+TF8rq7/8ULLeYFYUk344Z+ltEmYs 9e9AW2YsUQ3bcqxI6wiUhfyMg5wHS4fGCfBO57VvFDsqZiBD6SNTWDs9fqUeqArt WEDkQRz4o4rcmmmi3s/fGX9nlC5dSN1EutUyXiEKJutP1z5Js66xXmS3CgyP+piD gVv4SpeFsPA+H6DZo6kKgwxrVnqg7Y3SkJNv4tWg3OKeXmdu6Ac= =685+ -----END PGP SIGNATURE-----