HomeFreeBSD

MFC r331654, r331869

Description

MFC r331654, r331869

r331654:
Don't access userspace directly from the kernel in nxge(4).

Update to what the previous code seemed to be doing via the correct
interfaces. Further issues exist in xge_ioctl_registers(), but this is
debugging code in a driver that has few users and they don't appear to
be crashes or leaks.

Reviewed by: jhb (prior version)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14848

r331869:
Fix the build on arches with default unsigned char. Capture the fubyte()
return value in an int as well as the char, and test the full int value
for fubyte() failure.

Details

Provenance
brooksAuthored on
Reviewer
jhb
Differential Revision
D14848: Don't access userspace directly from the kernel in nxge(4).
Parents
rS332279: MFC r331654, r331869
Branches
Unknown
Tags
Unknown