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
F173115885: D43101.id131838.diff
Wed, Sep 23, 5:40 PM
Unknown Object (File)
Tue, Sep 22, 1:19 PM
Unknown Object (File)
Tue, Sep 22, 3:32 AM
Unknown Object (File)
Sat, Sep 12, 1:39 PM
Unknown Object (File)
Fri, Sep 11, 4:51 PM
Unknown Object (File)
Wed, Sep 9, 12:30 AM
Unknown Object (File)
Sat, Sep 5, 12:34 PM
Unknown Object (File)
Sat, Sep 5, 9:08 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