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)
Sun, Jul 19, 2:56 AM
Unknown Object (File)
Sun, Jul 19, 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
Unknown Object (File)
Jun 23 2026, 11:46 AM
Unknown Object (File)
May 14 2026, 9:07 AM
Subscribers

Diff Detail

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

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