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, Dec 1, 10:05 PM
Unknown Object (File)
Mon, Dec 1, 11:22 AM
Unknown Object (File)
Mon, Nov 17, 11:32 AM
Unknown Object (File)
Fri, Nov 14, 7:03 AM
Unknown Object (File)
Tue, Nov 11, 11:08 PM
Unknown Object (File)
Nov 8 2025, 8:36 PM
Unknown Object (File)
Oct 29 2025, 10:45 AM
Unknown Object (File)
Oct 29 2025, 10:45 AM
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