]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64: stop asserting params != NULL in the syscall path
authorMateusz Guzik <mjg@FreeBSD.org>
Mon, 7 May 2018 21:32:08 +0000 (21:32 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Mon, 7 May 2018 21:32:08 +0000 (21:32 +0000)
commita9456603f27554b4f0031e8f879f237c57490409
tree3497c42e7a6cce5e03cfef4b12a78a9242f9ab64
parentb425e3fba2951deecd6289817bd6973d0e8a6d9d
amd64: stop asserting params != NULL in the syscall path

The parameter is effectively controllable by userspace. It does not matter
what it is set to as it is being passed to copyin - worst case the operation
will just fail.

While here stop computing it unless it is going to be used.

Noted by: dillon@backplane.com
sys/amd64/amd64/trap.c