Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1265972yba; Thu, 4 Apr 2019 07:28:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQ6g50rbqEvVKD0S/Ewvb4eTK23J/fEzlcjo6qFdMm/X3J7YRG5eC/ZdD5CBuriE4qwz3t X-Received: by 2002:a17:902:241:: with SMTP id 59mr6816855plc.79.1554388121959; Thu, 04 Apr 2019 07:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554388121; cv=none; d=google.com; s=arc-20160816; b=bzVfG9FTlQzXeV8G0GfpBKBMsSsDPZEcgzAMxk5h+TkpfoMRFKUziAagWsXthkIj4M z0OaBF5oOy+zTHW9QPRlyT56Jn9M3d8WKUdtInlk7/J4oqeMAgLf1M648i+ugalJpQpB h2jY4AckxhRdH1QqrsVbJvBGr4M12KtanXZoumLtScczAStD6ctm6dJMWxn2GR3ERVfk YRtjPln/wBfQigqXK+hoA1L0Sp+o38Q8p/0A4WVk5WJJfv/na96tSVvKG/gV2VBoZnMA ltXZnwfIT2N/+AGBmi78h7fFtF0xPN5YRMpfH2EAUYrSRfse8aLrWTMqqbYcraRt/3B0 IMEg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=cPCLPdm0xYrso8W1HB8N/cliwfNnqe7yJknX6Bm6H64=; b=0Xlj5ZGB/+1AuR2ddJeR7vThDklcwwAuUYQiC3nY1FaxS/k5cloCtzqTCdW+UG7n51 UA5lqedwRm9tayJsZphAnPY0zD1SLWOEhfUnou4nFPgOjIfj0d9dgOlaVsaDoaIaZnvF pk18vkClzNRa0bR2JLfu/IubTJFmjRgBFcCBKjs+tc1Nw5pt7sjgvfBXmrMK4AYZnxsj ly3K1mhucUnFXUmhInQ1LGYwrE/MtmjRqJk74nb+O8VgmrK66yRtuTsxMM3Nmdb871bv KNvUtnFNsunR9gdhvT3HY6C5qxeHyQCt7gFHRcrwshkX0KBKB2K+TtJISLqziD+2MEkc caNw== ARC-Authentication-Results: i=1; mx.google.com; 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 62si624626pla.124.2019.04.04.07.28.26; Thu, 04 Apr 2019 07:28:41 -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; 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 S1728764AbfDDO06 (ORCPT + 99 others); Thu, 4 Apr 2019 10:26:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:53060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbfDDO05 (ORCPT ); Thu, 4 Apr 2019 10:26:57 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 95E882171F; Thu, 4 Apr 2019 14:26:54 +0000 (UTC) Date: Thu, 4 Apr 2019 10:26:53 -0400 From: Steven Rostedt To: "Dmitry V. Levin" Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Andrew Morton , Andy Lutomirski , Roland McGrath , Oleg Nesterov , linux-arch@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , "Gustavo A. R. Silva" , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Dominik Brodowski , Andy Lutomirski , Kees Cook , "Eric W. Biederman" , Palmer Dabbelt , Will Drewry , Albert Ou , linux-riscv@lists.infradead.org Subject: Re: [PATCH 3/6 v3] riscv: Fix syscall_get_arguments() and syscall_set_arguments() Message-ID: <20190404102653.705456df@gandalf.local.home> In-Reply-To: <20190404140210.GC4962@altlinux.org> References: <20190401134104.676620247@goodmis.org> <20190401134420.958530155@goodmis.org> <20190404140210.GC4962@altlinux.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Steve