Page MenuHomeFreeBSD

libprocstat: make sv_name not static
ClosedPublic

Authored by brooks on Oct 13 2023, 6:45 PM.
Tags
None
Referenced Files
F176267475: D42199.id.diff
Sat, Oct 17, 1:00 PM
Unknown Object (File)
Wed, Oct 14, 7:29 PM
Unknown Object (File)
Wed, Oct 14, 6:16 PM
Unknown Object (File)
Wed, Oct 14, 5:30 PM
Unknown Object (File)
Wed, Oct 14, 5:11 PM
Unknown Object (File)
Sun, Sep 20, 7:42 PM
Unknown Object (File)
Sun, Sep 20, 7:14 PM
Unknown Object (File)
Sun, Sep 20, 5:06 PM
Subscribers

Details

Summary

Making this variable static makes is_elf32_sysctl() and callers thread
unsafe.

Use a less absurd length for sv_name. The longest name in the system is
"FreeBSD ELF64 V2" which tips the scales at 16+1 bytes. We'll almost
certainly have other problems if we exceed 32 characters.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 53975
Build 50865: arc lint + arc unit