Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp143192pxa; Tue, 4 Aug 2020 19:20:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJya0czgW4qLt3zR0nwAzM20vB3niO1C3EYCdLhsC7fxkn0MWNZtQUSIiM/6JBXnNCpdfyuB X-Received: by 2002:a17:906:ce59:: with SMTP id se25mr1081865ejb.359.1596594037933; Tue, 04 Aug 2020 19:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596594037; cv=none; d=google.com; s=arc-20160816; b=0z4BCob5Ay45MfZXTNR4PoWHRwWvXWo5w6hxOXRamFTFjC4+WZ6MYAQisiq/h7mizN CmgeWKH9iWr0md8zFPI6oCMAoOF37GHmyYFsrtgtN6+1Y28QqR5QYj/DwNGxh4pPplxH OZ1nGVRbmrCTbPLC2hVO5znKYr3r82lMRFpPLhdPYZUPoK9eUDLEYIm3h6Izz40p5Hs/ ak9VhyElIi4QM11lc7YofQU478sIYeWFEUE12M2V3Vx79xm/geXO4febCEf2ELo1lqMT hcgrWs4i3Wq5hB1VuHO8KN7IJkg+p4BtfSffuGX6pc67jEoeCo/OGJaJFUMDElwDnNxs nW3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=01MxYpKFXDZaXCcX+RooTiv/T8V3zULRixPU7jN/r44=; b=OVzOwFS9tcRYZYdZtapsaSHO/U4WGcg/Q3OW17d723O2wIcoRRmCDTgG0lgYUpm0th eaFz0wysudjupSx9YwURG6n7dcjYrz5ncN9RChdwde/4PLqsOnPZfpkh4Qf5YZ8587HC rkkIRvgGeaHNxfp4u68Y1+fvu3wo7u9njLcaGMAmKgCKFXVGqBMdwl00cqyxvKcEH2WF vfeWE1bIfssHkXFcHTjo0S7RanMkAn0msYYwX1fRusT0Hr2xDXgvH8s2xoWHkHdTrITZ bl7s1i++qcyiI3S6pxZv48zdsfrirnGpw/awLc5DoENfTrwZ9/lILF/+Y5QnGT6yJLqJ V7kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=mImzrEAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si352168ejz.445.2020.08.04.19.20.13; Tue, 04 Aug 2020 19:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=mImzrEAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726130AbgHECUJ (ORCPT + 99 others); Tue, 4 Aug 2020 22:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgHECUH (ORCPT ); Tue, 4 Aug 2020 22:20:07 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3162AC06174A for ; Tue, 4 Aug 2020 19:20:06 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id d4so3460782pjx.5 for ; Tue, 04 Aug 2020 19:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=01MxYpKFXDZaXCcX+RooTiv/T8V3zULRixPU7jN/r44=; b=mImzrEAl0d6G/+6l8JJFXutcAF+pXD6CTUNLi9RPwj9e2tKa9TUK80JAu1WHnV5yBW RuwBsp8YYqdgi2IEqeS+lCkvkEe4YlVfelQe9AOa/Czl8Cu3vYTzrmPB0fJZGQ4O33eA P1q6ixfFAlVA1xzkpocndvzWTSh2e1J+VqbGA/R84QHadggRQ1PugQqLyiNx5n92DPqp jqhgnuYwFWk+smjVTIS5/9YaU6v1p3Ub7hCuBQZL6xuxJV6oCbOjx+eFKe0c4AW8vozQ CrP4ymyoAYHrzo0s1skjUfgRL26M+Z6JuSLN9+gcCGaHZIOCYjoE3QG62oHl0blm55b3 hkhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=01MxYpKFXDZaXCcX+RooTiv/T8V3zULRixPU7jN/r44=; b=s2iqD6VNS3pBAlbjHnmFccAgC3NIt13LRtQT+LYcxJ6JPHWuP1kp2lWvrdyX4ZzMMr l0HjKR915ujaXYKBkpevkNEUjkEZEf3/dvXkpo87tqvo4Nh6BPv5jzHI7kk6b9C2g8uz kZF1B5h2UExPqpt7pRYg948B8W0fjbg+qEsSK6qsNxZN8Qidg0z11c05u7Jljx+8V7Nu CAErbfbBl5QuBsfNbn9nqx58l3swODK5oGMWp+XKrhg265WIGAVpeiInqSDKs820eXry PBGcQrX1ZkD1QwJZD67o0K6yALGdOJT+lX5+WQAfRrvTnRfOD+bnJEmupCNmk5CaWLcs rhew== X-Gm-Message-State: AOAM532zlSEhxtSQQhJn0zgADmzA2IMqT1ZGM6w58lwv0FZc45jvoFju 7ZV3GDUOKvchM+WyI2TGIr3t+A== X-Received: by 2002:a17:902:a40f:: with SMTP id p15mr1012253plq.221.1596594006023; Tue, 04 Aug 2020 19:20:06 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id d17sm582843pjr.40.2020.08.04.19.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 19:20:05 -0700 (PDT) Date: Tue, 04 Aug 2020 19:20:05 -0700 (PDT) X-Google-Original-Date: Tue, 04 Aug 2020 19:20:03 PDT (-0700) Subject: Re: [PATCH 1/2] riscv: ptrace: Use the correct API for `fcsr' access In-Reply-To: <20200805020745.GL1236603@ZenIV.linux.org.uk> CC: macro@wdc.com, linux-riscv@lists.infradead.org, Paul Walmsley , aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, stable@vger.kernel.org From: Palmer Dabbelt To: viro@zeniv.linux.org.uk Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 04 Aug 2020 19:07:45 PDT (-0700), viro@zeniv.linux.org.uk wrote: > On Tue, Aug 04, 2020 at 07:01:01PM -0700, Palmer Dabbelt wrote: > >> > We currently have @start_pos fixed at 0 across all calls, which works as >> > a result of the implementation, in particular because we have no padding >> > between the FP general registers and the FP control and status register, >> > but appears not to have been the intent of the API and is not what other >> > ports do, requiring one to study the copy handlers to understand what is >> > going on here. > > start_pos *is* fixed at 0 and it's going to go away, along with the > sodding user_regset_copyout() very shortly. ->get() is simply a bad API. > See vfs.git#work.regset for replacement. And ->put() is also going to be > taken out and shot (next cycle, most likely). I'm not sure I understand what you're saying, but given that branch replaces all of this I guess it's best to just do nothing on our end here?