kernel - Fix sys_vmspace_ctl()
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 24 Nov 2020 19:57:20 +0000 (11:57 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 24 Nov 2020 19:57:20 +0000 (11:57 -0800)
commit25206fdbb46aa92432513d3bb2a69cf5697a7c98
treeab9e91ab4cd6d667765c8fbcb750f142274f4750
parentaab1a0485cdec1b29a4208ff6b7c67fafa690464
kernel - Fix sys_vmspace_ctl()

* This system call overwrites the trap-frame.  The new syscall code
  just has the argument pointer (uap) pointing into the trap-frame,
  so in this particular case we have to copy the arguments out before
  overwriting it.

Reported-by: pikrzyszt, tuxillo
sys/vm/vm_vmspace.c