Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp139043pxa; Tue, 4 Aug 2020 19:10:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxWwQIXv0hIYp8V7QhPprxvKKkiPDiZ6Ob0nS0rMUufyb+kbcpPlAGrSH1BM0bVAiltjEm X-Received: by 2002:a17:906:c04d:: with SMTP id bm13mr965755ejb.321.1596593458507; Tue, 04 Aug 2020 19:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596593458; cv=none; d=google.com; s=arc-20160816; b=alB44H/E8qe0qZjqzARkl/BoQXusIsGkZeMKCPAxdFM3CA77dSveqluKnrdSTNOquO Q9TZkB8Sg8zQa5SWmGiPwlbeAM6lIWAoRa0/K4SxZgeW3yd/OIEfR1PGhimeXajWLFnj fejBA4cGuDF9RGV9wwl03mEaCdjsDM2R1fqnkbedRN2LfaWxtu6u4uhA6qFEG7tIN3Dd l54hDpgPQPRXJaFOPjBJ6veCjkWfu1tz0inS7Cx4kOAv3maZx9Tgvo9v1h/yiYUIPjoB N0E4A/sXZvqDvpbQ3R9Tt19eCIckCc3uxl8IHLodKqr+fSk1oCiyNeLca6PnBxkAA0OJ GukQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rglpn+GxIY7UOc+4Qf0omWRKlmxvoF0hq9EvUfudMJ8=; b=A52logUDSn0TgPdYl6czjHqFNyRihOe/epGPh8iakwSNVEMBTUOFl4bK0/sAGhyib0 qgL6azMLp6UEBjOIhObsgP6MbCLfxbHi6zEVWiqKILXNiXvtwxxhuGH7njMWWdgWnX5l bH53L6MiuQykEzf/iIeC2SR+FfSEaEKKxp8rpaELRMZSRunUE2PpbF8mjVeSURf8JoSp vyPS8+wNxUEKwVxILmUWpRKSk4v+JBWvvACYuqnvMvI9b+Dz7/d1sS0pXz9pdS1zpvtQ yVaSjBpJE+av6w5xJNXtIjon31+KgxrmjISLmythvRsA1BKjYmOhXbG1QSGrCucezTpt KC3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 i21si395557eje.143.2020.08.04.19.10.36; Tue, 04 Aug 2020 19:10:58 -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; 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 S1726585AbgHECIC (ORCPT + 99 others); Tue, 4 Aug 2020 22:08:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgHECIB (ORCPT ); Tue, 4 Aug 2020 22:08:01 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4238FC06174A; Tue, 4 Aug 2020 19:08:01 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k38qH-009WtO-2V; Wed, 05 Aug 2020 02:07:45 +0000 Date: Wed, 5 Aug 2020 03:07:45 +0100 From: Al Viro To: Palmer Dabbelt Cc: macro@wdc.com, linux-riscv@lists.infradead.org, Paul Walmsley , aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] riscv: ptrace: Use the correct API for `fcsr' access Message-ID: <20200805020745.GL1236603@ZenIV.linux.org.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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).