Page MenuHomeFreeBSD

Ignore F_SETLK_REMOTE requests for sysid 0.
AbandonedPublic

Authored by markj on Mar 25 2019, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 10 2024, 3:29 AM
Unknown Object (File)
Jan 2 2024, 9:48 AM
Unknown Object (File)
Dec 17 2023, 9:52 PM
Unknown Object (File)
Nov 29 2023, 8:41 PM
Unknown Object (File)
Oct 6 2023, 11:54 AM
Unknown Object (File)
Sep 29 2023, 3:50 AM
Unknown Object (File)
Aug 24 2023, 5:39 PM
Unknown Object (File)
Jun 16 2023, 9:38 PM
Subscribers
None

Details

Reviewers
None
Summary

sysid 0 is the local system. Without this check, it's possible to
trigger the KASSERT in lf_clearremotesys(). Note that F_SETLK_REMOTE
is only available to privileged users.

I removed the comment about a temporary API because it's been in FreeBSD
for over 10 years and is used by some tests.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23293
Build 22325: arc lint + arc unit