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)
Wed, Oct 30, 3:55 PM
Unknown Object (File)
Sat, Oct 19, 1:13 PM
Unknown Object (File)
Sat, Oct 19, 1:13 PM
Unknown Object (File)
Sat, Oct 19, 1:13 PM
Unknown Object (File)
Sat, Oct 19, 12:53 PM
Unknown Object (File)
Fri, Oct 18, 9:18 AM
Unknown Object (File)
Oct 4 2024, 11:28 AM
Unknown Object (File)
Oct 2 2024, 1:05 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 Passed
Unit
No Test Coverage
Build Status
Buildable 51538
Build 48429: arc lint + arc unit

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