mbox series

[v2,0/2] linux-user: Fix handling when AT_EXECFD is 0

Message ID 20240723100545.405476-1-uwu@dram.page (mailing list archive)
Headers show
Series linux-user: Fix handling when AT_EXECFD is 0 | expand

Message

Vivian Wang July 23, 2024, 10:05 a.m. UTC
Found when trying to build coreutils under linux-user as binfmt_misc
interpreter with "open-binary" flag.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2448

Changes since v1 [1]:
- Removed old glibc check in patch 1
- Added Reviewed-by

[1]: https://lore.kernel.org/qemu-devel/20240721090817.120888-1-uwu@dram.page/

Vivian Wang (2):
  util/getauxval: Ensure setting errno if not found
  linux-user/main: Check errno when getting AT_EXECFD

 linux-user/main.c | 3 ++-
 util/getauxval.c  | 6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

--
2.45.1

Comments

Richard Henderson July 29, 2024, 12:26 a.m. UTC | #1
On 7/23/24 20:05, Vivian Wang wrote:
> Found when trying to build coreutils under linux-user as binfmt_misc
> interpreter with "open-binary" flag.
> 
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2448
> 
> Changes since v1 [1]:
> - Removed old glibc check in patch 1
> - Added Reviewed-by
> 
> [1]: https://lore.kernel.org/qemu-devel/20240721090817.120888-1-uwu@dram.page/
> 
> Vivian Wang (2):
>    util/getauxval: Ensure setting errno if not found
>    linux-user/main: Check errno when getting AT_EXECFD
> 
>   linux-user/main.c | 3 ++-
>   util/getauxval.c  | 6 +++++-
>   2 files changed, 7 insertions(+), 2 deletions(-)
> 
> --
> 2.45.1
> 
> 

Queued, with the braces in patch 1 fixed.


r~