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)
Thu, Aug 27, 3:46 AM
Unknown Object (File)
Thu, Aug 27, 1:38 AM
Unknown Object (File)
Jul 19 2026, 2:56 AM
Unknown Object (File)
Jul 19 2026, 2:52 AM
Unknown Object (File)
Jul 5 2026, 11:18 PM
Unknown Object (File)
Jul 2 2026, 2:04 AM
Unknown Object (File)
Jun 25 2026, 9:00 AM
Unknown Object (File)
Jun 24 2026, 10:44 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