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, May 1, 6:31 PM
Unknown Object (File)
Mar 15 2024, 1:12 AM
Unknown Object (File)
Jan 20 2024, 11:34 AM
Unknown Object (File)
Dec 23 2023, 2:52 AM
Unknown Object (File)
Dec 20 2023, 4:19 AM
Unknown Object (File)
Nov 29 2023, 11:52 PM
Unknown Object (File)
Oct 9 2023, 1:15 PM
Unknown Object (File)
Oct 9 2023, 1: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