Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4907583imm; Mon, 14 May 2018 15:39:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpJhjHgqo6YqsXo3LV8ONyBH12HJ4FbdrkhuR/VhraRLpng1pQCEftvTiYo4eA/MiJy9ikL X-Received: by 2002:a63:798d:: with SMTP id u135-v6mr2329357pgc.112.1526337573334; Mon, 14 May 2018 15:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526337573; cv=none; d=google.com; s=arc-20160816; b=1Es/1BeLSRnqXiJdzj1YjFhdDQIZHluXTDT+wLnOuRw79lL1iVkSl/Rub3fUkno9mt PaoVO4/n8kfj4qck42LWmc78ac0vJETq/UHT8x/oWCJHDR6kFK/AId+MgiA/J1aH8EDg CVfRvoGAekCpJrTJco8ZY73SH5nKLMw3Fy08iSqP6tZ9pE8QpaD9xs6P+czcdDX817H+ OrucoQRMXwFvKeSdCEqQGtGlkvZ9JrUrPYS4ZoXLUEx5x5fMlI6qvuOdDPy4ykLyIKep FfV7SAh8kB0823qzK6tFoTiM4P3wfEE0TFE8S7sOva5M7+IiY1GWQQomVGJBKdNjgPs+ qOZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=BXCDBGjieH1jkU+xvpCvuSvzEvKkbBFOA/VOVHyHg1o=; b=CO7X6f0reu2s9GaJuCyPEpSR7lKGudufNPyJhQQbkse9eQiDNpPr6uph/PWP/lDKyL T5sftIzYuDtFh5bofOniXTwJCElg0to7nV7p2A3W7dF6II2BIhPu4xZ6oMKDlA5d1Uyx 8+s9KtVXI2EhNlwmr0LxAQjMzIdN0E4pmn0myHFnyHz5wF+rDpLBLhJeMm9QctdaGWT0 5QeFsHMNHr6tvlEKcY8YhJsR879dW751jj6O+AanIjllEh+MixQ2FGPafVMpbkb0j/H4 5Pt5tBeQ9gyRnUH3zdDTAldsbv/hRUe1YFXz4OV6spaayMir6RKiei3vOtb37x8Rsx10 hW5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0ZaiXcWD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21-v6si8366539pgc.694.2018.05.14.15.39.18; Mon, 14 May 2018 15:39:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0ZaiXcWD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456AbeENWhW (ORCPT + 99 others); Mon, 14 May 2018 18:37:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:41020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbeENWhU (ORCPT ); Mon, 14 May 2018 18:37:20 -0400 Received: from jamesdev (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3E9BB21723; Mon, 14 May 2018 22:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526337440; bh=CI6DZF33lBYIVAFSXy9A44er/xLU/P2oRM7sMW8iz0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0ZaiXcWD3F8OUUDpRMDPAF58CJhhPOyKvGy75jZixpeBXCnnd3kpwit7AnFhf/qIP yo8yDfgRZFLb6KrRD+AdEmbVnsHxkAi5/BGW4jr8eXZ4p2KrrBiPSzG/e7uMfU07Ox +AbR6FR9dAy1i6UM9fLEev1nHJ+lbEFMZ3Ek4c7c= Date: Mon, 14 May 2018 23:37:16 +0100 From: James Hogan To: "Maciej W. Rozycki" Cc: Ralf Baechle , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] MIPS: Fix ptrace(2) PTRACE_PEEKUSR and PTRACE_POKEUSR accesses to o32 FGRs Message-ID: <20180514223715.GE29541@jamesdev> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BQPnanjtCNWHyqYD" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BQPnanjtCNWHyqYD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 14, 2018 at 04:49:43PM +0100, Maciej W. Rozycki wrote: > Check the TIF_32BIT_FPREGS task setting of the tracee rather than the=20 > tracer in determining the layout of floating-point general registers in= =20 > the floating-point context, correcting access to odd-numbered registers= =20 > for o32 tracees where the setting disagrees between the two processes. >=20 > Cc: stable@vger.kernel.org # 3.14+ > Fixes: 597ce1723e0f ("MIPS: Support for 64-bit FP with O32 binaries") > Signed-off-by: Maciej W. Rozycki > --- > Hi, >=20 > These are not the usual requests used by GDB to access the floating-poin= t=20 > context, which is likely why it went unnoticed so long. They are only=20 > used as a fallback in the case where PTRACE_GETFPREGS and PTRACE_SETFPREG= S=20 > requests are not supported, i.e. with ancient kernels. >=20 > However to verify an unrelated GDB bug fix I have tweaked GDB to always= =20 > use PTRACE_PEEKUSR and PTRACE_POKEUSR, and then discovered this issue in= =20 > native GDB regression testing, as it showed regressions from corrupt FGR= =20 > contents across numerous tests compared to the usual results. This fix= =20 > removed those regressions then. >=20 > Not being typically used does not mean we ought to keep the interface=20 > broken. Therefore please apply. Looks good. Applied to fixes branch for 4.17. Thanks James --BQPnanjtCNWHyqYD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQS7lRNBWUYtqfDOVL41zuSGKxAj8gUCWvoPmgAKCRA1zuSGKxAj 8vHgAQCWxOnS4xlCHH+ctDoJS88qeXWE6ojQ4iM0LlzCyfNKrAEAo6VvdB1DEWg1 tBq1rCXSUbUnkg+qpV7h9T1CG5N1Cgc= =df5g -----END PGP SIGNATURE----- --BQPnanjtCNWHyqYD--