]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't forget to set sa->narg for CloudABI system calls.
authored <ed@FreeBSD.org>
Fri, 8 Jul 2016 20:09:21 +0000 (20:09 +0000)
committered <ed@FreeBSD.org>
Fri, 8 Jul 2016 20:09:21 +0000 (20:09 +0000)
commit887bfdc0a4b0ca83e9fe5de34ddc93dfdb60275a
treef673e01de4bd133d7c84ab3932131a5adb304598
parentce125885c7e8710fb99a00c14cbeae7e265791a7
Don't forget to set sa->narg for CloudABI system calls.

It turns out that this value is not used within the system call code
under normal conditions, except when using tracing tools like ktrace.
If we forget to set this value, it is set to random garbage. This may
cause ktrace to hang indefinitely, making it impossible to kill.

Reported by: Michael Plass
PR: 210800
MFC before: 11.0-RELEASE
sys/amd64/cloudabi64/cloudabi64_sysvec.c
sys/arm64/cloudabi64/cloudabi64_sysvec.c