From patchwork Tue Jan 27 21:07:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 43853 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD9762409D for ; Tue, 27 Jan 2015 21:10:06 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf8962756lbj.0 for ; Tue, 27 Jan 2015 13:10:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=8W/ZA4/S9v2nIQ+3s6RddxlrF9sszjuQW/GA2nvHLpo=; b=eHWfIPXjcJfIwVrLer/ZOAjOyjf56VYtQ0bj6+7tluv5CG/GOqAHAxjKSlkBRmv29U uBNJi8iWhXO90IaMjt6zHHj3OWb9qpmoAomXP1Iv/Sw81lrVtGjacZuT9ciRWaTnYkCn VrvXMO64+/gOUhM1UnvmsFC0q/4CHL7pqZ/nMGIfHdPrXfKmn3WuZI68EKn+oCU7dTbX 9MUlWIZakcoTOXuSRUJVFSq39FSr9jNtwTF9S2dHicBAnwaH0vkUBfqXh0OH6AvEnR5D u503YuDUCfEi21xD+UaGXuzI/pqo/xnVDMQseJDploS0h5DdE245mLrWHHewFLOp8/xG NFzA== X-Gm-Message-State: ALoCoQlMnnJ0b8uEoGAKTpr6rQnfxWpdM2B4EAp6YMy5SAc3egMJliXyirNAsNFeyKJ8VPBKWJJA X-Received: by 10.194.178.234 with SMTP id db10mr15083wjc.2.1422393005880; Tue, 27 Jan 2015 13:10:05 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.180 with SMTP id k20ls78936laa.18.gmail; Tue, 27 Jan 2015 13:10:05 -0800 (PST) X-Received: by 10.152.5.2 with SMTP id o2mr4187185lao.5.1422393005656; Tue, 27 Jan 2015 13:10:05 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id t10si2373187lat.87.2015.01.27.13.10.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 Jan 2015 13:10:05 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id hs14so15514532lab.9 for ; Tue, 27 Jan 2015 13:10:05 -0800 (PST) X-Received: by 10.152.3.70 with SMTP id a6mr4096410laa.71.1422393005370; Tue, 27 Jan 2015 13:10:05 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1227075lbj; Tue, 27 Jan 2015 13:10:03 -0800 (PST) X-Received: by 10.140.86.233 with SMTP id p96mr5784951qgd.49.1422393002950; Tue, 27 Jan 2015 13:10:02 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 65si3141919qgx.47.2015.01.27.13.10.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 27 Jan 2015 13:10:02 -0800 (PST) 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; Received: from localhost ([::1]:49971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDOb-0006LD-W6 for patch@linaro.org; Tue, 27 Jan 2015 16:10:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDMA-00047h-RW for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGDM5-0005mp-K5 for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:30 -0500 Received: from afflict.kos.to ([92.243.29.197]:35449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDM5-0005mZ-Ez for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:25 -0500 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 57AC8264E0; Tue, 27 Jan 2015 22:07:23 +0100 (CET) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 27 Jan 2015 23:07:20 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: peter.maydell@linaro.org, Ed Swierk Subject: [Qemu-devel] [PULL 09/11] mips64-linux-user: Fix definition of struct sigaltstack X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Ed Swierk Without this fix, qemu segfaults when emulating the sigaltstack syscall, because it incorrectly treats the ss_flags field as 64 bits rather than 32 bits. Signed-off-by: Ed Swierk Signed-off-by: Riku Voipio --- linux-user/mips64/target_signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/mips64/target_signal.h b/linux-user/mips64/target_signal.h index 6e1dc8b..5fb6a2c 100644 --- a/linux-user/mips64/target_signal.h +++ b/linux-user/mips64/target_signal.h @@ -8,7 +8,7 @@ typedef struct target_sigaltstack { abi_long ss_sp; abi_ulong ss_size; - abi_long ss_flags; + abi_int ss_flags; } target_stack_t;