Page MenuHomeFreeBSD

linux(4): Add a dedicated linux_exec_copyin_args()
ClosedPublic

Authored by dchagin on May 18 2023, 6:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 1:46 AM
Unknown Object (File)
Sun, Oct 12, 2:41 PM
Unknown Object (File)
Sun, Oct 12, 2:41 PM
Unknown Object (File)
Sun, Oct 12, 2:41 PM
Unknown Object (File)
Sun, Oct 12, 3:34 AM
Unknown Object (File)
Mon, Sep 22, 3:26 AM
Unknown Object (File)
Sep 17 2025, 7:29 AM
Unknown Object (File)
Sep 15 2025, 9:15 PM
Subscribers

Details

Summary

Because Linux allows to exec binaries with 0 argc.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Are we aware of any actual Linux binary use cases for argc=0? (I don't object to this change, just wondering.)

This revision is now accepted and ready to land.May 18 2023, 7:41 PM

Are we aware of any actual Linux binary use cases for argc=0? (I don't object to this change, just wondering.)

well, I dont know, I’m not use Linux since 1997:)
I try to fix Glibc posix_spawn(), for which some glibc tests fails due to argc=0, also see comment in the linux_exec_copyin_args() explaining this change