Page MenuHomeFreeBSD

freebsd32: Report errors when copying out oldlenp in __sysctl
ClosedPublic

Authored by markj on Dec 19 2023, 3:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 8, 12:10 AM
Unknown Object (File)
Sat, Dec 6, 10:31 PM
Unknown Object (File)
Wed, Nov 19, 5:42 AM
Unknown Object (File)
Nov 11 2025, 6:05 AM
Unknown Object (File)
Oct 28 2025, 2:16 AM
Unknown Object (File)
Oct 22 2025, 12:23 PM
Unknown Object (File)
Oct 22 2025, 12:23 PM
Unknown Object (File)
Oct 22 2025, 12:22 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 55007
Build 51896: arc lint + arc unit

Event Timeline

markj requested review of this revision.Dec 19 2023, 3:14 AM
sys/compat/freebsd32/freebsd32_misc.c
2677

Shouldn't this be converted from -1 to EFAULT?

markj marked an inline comment as done.

Fix error handling

sys/compat/freebsd32/freebsd32_misc.c
2677

Indeed, thank you. sysctlbyname had the same bug. In fact, I found several examples with a quick search.

This revision is now accepted and ready to land.Dec 19 2023, 4:22 PM