From patchwork Wed May 31 13:08:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 100759 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp319518qge; Wed, 31 May 2017 06:18:49 -0700 (PDT) X-Received: by 10.200.52.221 with SMTP id x29mr31057799qtb.70.1496236729710; Wed, 31 May 2017 06:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496236729; cv=none; d=google.com; s=arc-20160816; b=M4X4E2BJvFdWa5AwYFzX+fLTHxBQzioME8Ts1STbUQxk36Ok9IZ1MFhPuXZY2NZqo/ l1pzbC50yROvkBrqscqUpYz9xQsrQtUK1U3vus0Zg2HyxTOZuPzpGIu+qLTbbfFB0Zl2 AhOo/iHvIktDk3AFC/QsucLKi8C64T2R7y2myMUF8cJYKgi1Hbc+TlsKWnHLyJIA+SI/ CyQeInwZR5CHDFoQ4VBh9YkTgZ9fO28wd1Bt+8yNFK8l5JnIgyWidZ8LkBllsN3UhYfm 9OUdbvw4qOUxn0DPRhNy0HllDJ/iKnp1ILfHgEUjNAJ98Rab5+GUk4U2Tqyd5gX5HphR /u/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=rOuXDWCx+5vDcu18Z1MPJTkXc/yxAU1r8hRUrKjGmRI=; b=PGVC2m5fsUEbEEQJyv+9M2hqv69WBy1jweAbGGFLyDe3EsYveEBkZ8JEIohfsobtGG y5FeifSkrNozoNWkm/v3IoAq4QaXmfmvI7iEkk8ugp/3aMbCHoM86xGUJWUeQtWrLA78 mBI804cTby/qCipLMipxdz/ki173yAOvguRSzb4gNLxPhnHLAYaTdVYWULe3ngtqLJgG lnzq8cRyFieXrkhIEcEwxGc3J14pN14SLwRJDQZ27McZtjVVF+fFMj/ZNGFOJX7l9inI UJVRzN5zlr5yYd+MrYbuqHdmryilXYKFq4TvGabZkT49PEjKN1qPziwrNfd1oR5qkWgg XVnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p52si15983913qtb.90.2017.05.31.06.18.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 31 May 2017 06:18:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG3WR-0007wX-A3 for patch@linaro.org; Wed, 31 May 2017 09:18:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dG3Mm-0007bA-53 for qemu-devel@nongnu.org; Wed, 31 May 2017 09:08:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dG3Ml-0003fD-4E for qemu-devel@nongnu.org; Wed, 31 May 2017 09:08:48 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:33188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dG3Mk-0003f1-TS for qemu-devel@nongnu.org; Wed, 31 May 2017 09:08:47 -0400 Received: by mail-lf0-x231.google.com with SMTP id m18so8647387lfj.0 for ; Wed, 31 May 2017 06:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rOuXDWCx+5vDcu18Z1MPJTkXc/yxAU1r8hRUrKjGmRI=; b=BF1Gl4YYTgL/el3aT6FFb+x/i92xAS52iqBNdxUwAfhXWO3HQHQzVtTCKuc1rof01M 6tsx2M2V/IEgd+q8YBQkKaGIjGdadua/JgPHQUWZLmHwTi80iQu3569FLct8NXwegRUI DUhX6nUav/mPpTsYkDJxZn4iZTodf8zLjUZCQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rOuXDWCx+5vDcu18Z1MPJTkXc/yxAU1r8hRUrKjGmRI=; b=XuF43CE2rd1Wn2EwI+ie7ozwhdFVEuv8xehFFWJW5Wn/E/Mkz3ZvuLR7WwP/0X9uXC /yGcMw5QIDmQrfzDfsiDIHGdiwdYZEzhu1XBMmAED3dAtxUavICKngjXpHhabq0+xmiK 3SEoGuqzfKIe+pMl31fej1HNtxptLx12cuTQArycEX/B83jabxCWi3e+d1Dd7yIQvJ/X 8vh0skesfk3rfHXo7V5iNBcgo9bQVcCWCUwPzHYPacsGbMADPwByhLYrmRvv/CBdrSwF /rYhJQ9BkT2MsZGbj9fRzDzmn64eSulnidWB4grv8GOXEpKHVItTQTySYqp8EvsY+F+i 0QcQ== X-Gm-Message-State: AODbwcAnNv4a2tfz/xYsRkP7h5X5Z9/2KAgt3eVIKUYO+t5mkPc4fwSN n6daaCHOzne1VFwOs80P2g== X-Received: by 10.25.29.7 with SMTP id d7mr7430372lfd.51.1496236125625; Wed, 31 May 2017 06:08:45 -0700 (PDT) Received: from localhost.localdomain (91-157-170-157.elisa-laajakaista.fi. [91.157.170.157]) by smtp.gmail.com with ESMTPSA id o101sm3741766lfg.3.2017.05.31.06.08.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 May 2017 06:08:44 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 31 May 2017 16:08:22 +0300 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::231 Subject: [Qemu-devel] [PULL 10/15] linux-user: fix mismatch of lock/unlock_user() invocations in rt_sigqueinfo() syscall X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?b?TWlsb8WhIFN0b2phbm92acSH?= , stefanha@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Miloš Stojanović Change the unlock_user() argument from arg1 to arg3 to match with lock_user(), since arg3 contains the pointer to the siginfo_t structure. Signed-off-by: Miloš Stojanović Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 93bc6f679e..de85bce167 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8868,7 +8868,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, goto efault; } target_to_host_siginfo(&uinfo, p); - unlock_user(p, arg1, 0); + unlock_user(p, arg3, 0); ret = get_errno(sys_rt_sigqueueinfo(arg1, arg2, &uinfo)); } break;