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
F131945937: D43101.id131581.diff
Sun, Oct 12, 10:06 AM
Unknown Object (File)
Tue, Sep 23, 6:23 PM
Unknown Object (File)
Thu, Sep 18, 8:58 AM
Unknown Object (File)
Wed, Sep 17, 12:54 AM
Unknown Object (File)
Tue, Sep 16, 9:19 PM
Unknown Object (File)
Sun, Sep 14, 5:59 PM
Unknown Object (File)
Sat, Sep 13, 9:48 PM
Unknown Object (File)
Aug 27 2025, 12:56 AM
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