Fix parameters of prctl
PATCH 1/1 Fix parameters of prctl
Because kenrel prctl implementation checks whether arg4 and arg5 are 0 for PR_MCE_KILL, qmeu-kvm should invoke prctl syscall as that.
Reported-by Max Asbock <[email protected]>
Signed-off-by Huang Ying <[email protected]>
--- qemu-kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-kvm.c +1 -1
@@ -1984,7 +1984,7 @@ int kvm_init_ap(void) action.sa_flags =SA_SIGINFO ; action.sa_sigaction = (void (*)(int ,siginfo_t *,void *))sigbus_handler;sigaction (SIGBUS , &action,NULL ); -prctl (PR_MCE_KILL ,1 ,1 ); +prctl (PR_MCE_KILL ,1 ,1 ,0 ,0 );return 0 ; }
Avi Kivity
AppliedQuoted 4 lines · Huang Ying
Because kenrel prctl implementation checks whether arg4 and arg5 are 0 for
PR_MCE_KILL, qmeu-kvm should invoke prctl syscall as that.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function