Page MenuHomeFreeBSD

Check for errors from copyout() and suword*() in sv_copyout_args/strings.
ClosedPublic

Authored by jhb on Nov 16 2019, 12:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 27 2023, 6:09 PM
Unknown Object (File)
Dec 20 2023, 4:27 AM
Unknown Object (File)
Dec 8 2023, 4:41 PM
Unknown Object (File)
Nov 22 2023, 4:02 PM
Unknown Object (File)
Nov 22 2023, 2:14 PM
Unknown Object (File)
Nov 22 2023, 1:42 PM
Unknown Object (File)
Nov 22 2023, 1:02 PM
Unknown Object (File)
Nov 13 2023, 10:42 AM
Subscribers

Details

Summary

Tested on: amd64 (amd64, i386, linux64), i386 (i386, linux)

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27623
Build 25833: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 16 2019, 1:02 AM
kib added inline comments.
sys/amd64/linux/linux_sysvec.c
323

if (error != 0) for all places

sys/kern/kern_exec.c
363

stack_base almost cries to become uintptr_t, and you are touching almost all places which need explicit type for it. Then at least some casts could be removed, like sv_setregs calls.

But I do not insist.

  • Use 'if (error != 0)'
This revision now requires review to proceed.Nov 18 2019, 7:15 PM
jhb marked an inline comment as done.Nov 18 2019, 7:15 PM
jhb added inline comments.
sys/kern/kern_exec.c
363

Or a char *, but uintptr_t is probably fine. I actually planned to make this change as a followup as part of some other cleanup I am doing. I will do that as a followup change.

This revision was not accepted when it landed; it landed in state Needs Review.Nov 18 2019, 8:08 PM
This revision was automatically updated to reflect the committed changes.