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, Feb 16, 2:29 PM
Unknown Object (File)
Mon, Feb 16, 2:29 PM
Unknown Object (File)
Sun, Feb 8, 1:23 PM
Unknown Object (File)
Sun, Feb 8, 5:29 AM
Unknown Object (File)
Sat, Feb 7, 11:04 PM
Unknown Object (File)
Fri, Jan 30, 7:43 PM
Unknown Object (File)
Jan 12 2026, 12:19 AM
Unknown Object (File)
Dec 13 2025, 7:32 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