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, May 14, 9:07 AM
Unknown Object (File)
Wed, May 13, 1:04 AM
Unknown Object (File)
Apr 23 2026, 3:33 AM
Unknown Object (File)
Apr 14 2026, 1:06 PM
Unknown Object (File)
Apr 14 2026, 7:05 AM
Unknown Object (File)
Apr 11 2026, 11:54 PM
Unknown Object (File)
Apr 9 2026, 11:26 PM
Unknown Object (File)
Apr 5 2026, 4:20 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

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
2679

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