Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1696020yba; Thu, 4 Apr 2019 16:34:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUf+KlOZp+j4GizCHRAAfgNA1eDdMbO4yrSlr6+IlPcB/XwCC8WJLGmNkE3tM6BpqfxoJu X-Received: by 2002:a63:e845:: with SMTP id a5mr8895706pgk.246.1554420869490; Thu, 04 Apr 2019 16:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554420869; cv=none; d=google.com; s=arc-20160816; b=xlartqVw1C4QcO5onIDXCFgrCNzUKs+WpOWBvJE9H4HZsCH9xEn3SxjSGqiIjfoWYR cIslZ4+rnHkekSb9W9ptRXK6I+f9K6z3IaRPLRSobZLPL79hXGsdW6LyQy30emB2fUh9 VebtDK6dVO0+lNMF8HC/TDC5Dka1mnHHCUuIw+ITlNk+MciqiTBbqU9eXLzZldo1VJYK Q12ZVwsyff05UyTiqIaKVUTYAeoUQDL+kSNB9HW/9HrMhgZBuhBDuIgA8VRCF8TLSI9D SHs1nUMtvI2V5ORVnhYSx+CaN1aBmBUjh6vQNVpzo5QnrsidyMuNzudbW3ZXdFnerIhV fKew== 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=nNTAkkSsesyNF1L4wisBciP/ffK/Ou780QIlgqZ7C+I=; b=vZGtWylGgidBH4sgNLweIodtESr4gHeBuS1/R96BVlu7/nO2J+OAjMIV9m8YxAF6J9 Qt1Cis0xpy5HvzU89GoRftAWiuSpM0ckEjaDEDI473AzaEUP2J9V/FR9RzzzNshKurGc Yr1Pj3FZRAMZbPg83UW7UgZFmlG2eenZkmK6WFG6f6QrUJfkEIyAr9lifnetvC/xDlSi o0U9auXS1RCY5dsUN99smSugAENxVgvBPuNcDbyhoXb2BvqMwrKYCyoBNlqRN7EgjiN9 uDqYgEzN1rOQdYP3vP75AUptPdJE8KHsT3o50xIuJUygTBqO8FFdASbe1/95sjFpPagk KZbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=NlCUU5PO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si17633031pga.257.2019.04.04.16.34.13; Thu, 04 Apr 2019 16:34:29 -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=@sifive.com header.s=google header.b=NlCUU5PO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730292AbfDDX3p (ORCPT + 99 others); Thu, 4 Apr 2019 19:29:45 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:40798 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729999AbfDDX3o (ORCPT ); Thu, 4 Apr 2019 19:29:44 -0400 Received: by mail-pl1-f195.google.com with SMTP id b3so1942643plr.7 for ; Thu, 04 Apr 2019 16:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=nNTAkkSsesyNF1L4wisBciP/ffK/Ou780QIlgqZ7C+I=; b=NlCUU5POvdSDVM2ZUfmhXzSe8nwyHxfj3wmUbZuFZrmik1KALP438cig7tYr2imNuj fkbo39GuuYQkJFk0maPEgW0F9Xrud2GIKuqRTq+fUn53DN+B1MusFx7iPyGmCFteSvcU 4+/hyrmaz7hAQbfMRAlLJqrzcDb31K/nbB0qnFMKY+/1F2k4nWNqJJIuLP/Wm3D1NaC0 8dplYsRrrPkU3uKURX3cbb0ygf2N55l5ZZ4xMhH2ksaIib7IrS26RM3UGVBmvWmcEgB4 CdUq6dTx93i+yVnoVQrJljIUjEwR63Fk6wmMBrrBqKkIJl2QJDtc1i6P8M3/TBADuV2g +aNg== 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=nNTAkkSsesyNF1L4wisBciP/ffK/Ou780QIlgqZ7C+I=; b=D5QgsqqxhSkDuP0pZjf0wvQelxHDA7hEhaK2n3sTkiZPWsuFX22VzC4IL/NJRU69dD W3pSiDTQZbh+5AFOj16e2O0S9qChNlNwm76VBXrrcrSi9em53o0I53fTfaUoVDpQzca4 PAAfW8a0tkRazmjRzk/xUQLD501MV6YdhEA9POX/oybKjaxYkNNdtgPC56v46ryazE+h VoEwAX0ZoylIBtXSmSIJTu5dh9ynK+RPOo5ZHNPppbg4mU3YzE0oIPaldzLOSHXuvIST MZOgHiMwbb+yQbEXbzEFSbmOgX3EKRVYIjhe46qXY+3DctoO8jF5JOWetXSuB1HQl3RL bq7w== X-Gm-Message-State: APjAAAUnzLOUWtM1qxkniN54TW/NaUCI2uNrWU1yzmydd5ie986Svw9t X+0fZwXJKSwdLN7Jni5+laTo8A== X-Received: by 2002:a17:902:47c2:: with SMTP id d2mr9263608plh.277.1554420583757; Thu, 04 Apr 2019 16:29:43 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id f6sm16304527pgq.11.2019.04.04.16.29.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2019 16:29:42 -0700 (PDT) Date: Thu, 04 Apr 2019 16:29:42 -0700 (PDT) X-Google-Original-Date: Thu, 04 Apr 2019 16:23:28 PDT (-0700) Subject: Re: [PATCH 3/6 v3] riscv: Fix syscall_get_arguments() and syscall_set_arguments() In-Reply-To: <20190404102653.705456df@gandalf.local.home> CC: ldv@altlinux.org, linux-kernel@vger.kernel.org, Linus Torvalds , mingo@kernel.org, akpm@linux-foundation.org, luto@amacapital.net, roland@hack.frob.com, oleg@redhat.com, linux-arch@vger.kernel.org, peterz@infradead.org, tglx@linutronix.de, gustavo@embeddedor.com, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux@dominikbrodowski.net, luto@kernel.org, keescook@chromium.org, ebiederm@xmission.com, wad@chromium.org, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: rostedt@goodmis.org 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 Thu, 04 Apr 2019 07:26:53 PDT (-0700), rostedt@goodmis.org wrote: > On Thu, 4 Apr 2019 17:02:10 +0300 > "Dmitry V. Levin" wrote: > >> On Mon, Apr 01, 2019 at 09:41:07AM -0400, Steven Rostedt wrote: >> > From: "Dmitry V. Levin" >> > >> > RISC-V syscall arguments are located in orig_a0,a1..a5 fields >> > of struct pt_regs. >> > >> > Due to an off-by-one bug and a bug in pointer arithmetic >> > syscall_get_arguments() was reading s3..s7 fields instead of a1..a5. >> > Likewise, syscall_set_arguments() was writing s3..s7 fields >> > instead of a1..a5. >> > >> > Link: http://lkml.kernel.org/r/20190329171221.GA32456@altlinux.org >> > >> > Fixes: e2c0cdfba7f69 ("RISC-V: User-facing API") >> > Cc: Ingo Molnar >> > Cc: Kees Cook >> > Cc: Andy Lutomirski >> > Cc: Will Drewry >> > Cc: Palmer Dabbelt >> > Cc: Albert Ou >> > Cc: linux-riscv@lists.infradead.org >> > Cc: stable@vger.kernel.org # v4.15+ >> > Signed-off-by: Dmitry V. Levin >> > Signed-off-by: Steven Rostedt (VMware) >> >> According to >> https://lore.kernel.org/lkml/mhng-8e9b547b-7fe3-43d2-9dea-b217de923605@palmer-si-x1c4/ >> the following tag could be added to this patch: >> >> Acked-by: Palmer Dabbelt > > That link isn't actually an ack. Palmer, you OK if I add it? Acked-by: Palmer Dabbelt (for the RISC-V parts) Thanks!