Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3082099ybl; Mon, 19 Aug 2019 11:54:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCE/ggMdWpHEmWVo42HoDpY4w4x6sWueIov7H6AIMQaa39/CGYLUDn2oMYZSu23bNcROru X-Received: by 2002:aa7:968d:: with SMTP id f13mr26280297pfk.223.1566240844532; Mon, 19 Aug 2019 11:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566240844; cv=none; d=google.com; s=arc-20160816; b=f8O6BjZoOlbLdnyToL75z0E0n6hLbfIbbB2ZoQKsHiDweaEJZwEk5eRF59l1vli7ee kyGjotv3Og7Ad5UwH4emXWL1prTjsqi7PDYRkruh7jAALO4cGutT06yBcRN/QXU6Wv5N 5qCXuaTfuii7SQcQ8UxuG46TbvwEAUJDq9uxMtxHIAgIzzoRi2WlV6vpm0y9XiucQBY7 ipePiwLPpYneyFy6CrneDn5ZYMojppGj5NFCguXsIIpG8VYfNhGgajmoDeZSJC35/Dqu 2bkAuQuUa6s1ansUWiCe0iR3AX4PllfixB5sb5AFVbpTibiCrih7DsqgjBPCsBI6uO5W aHlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=5vp7+A9mstIok5G6YhGWa7w9MKzUlX//FMjilAY66zY=; b=G6JA7jl8nTlwYrZIY1Kq/UXXAmYYQ1FwIYJry4YhakyoN9IgmX81/qp8YqNxjZiNWZ c4QmNpzSPZh+rsOHfSdbyvDqznvked0SU3dYTF0H9K4avS74XpA7uzmiprqTZrynPi5D GcOMTZiELUf9WBAUjD8gPlhnS9rVsqBhZ5N5fCJmRZor11jmnzTQG10zBHhAet/cGSF5 79Kq902WZLReLbB5MsWiPeLQyjzWnF9wZtQ8UScHbkocHxny8o1e+jsRDluyEr2ZHXaA Ce4RGqDYOW7EahcHFmJOdA2A2Wx5xhM3uCHVePQRPVc690qa6i09ZDAozSKbv1AVHUsE Uz1A== 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 c127si10916462pfc.191.2019.08.19.11.53.38; Mon, 19 Aug 2019 11:54:04 -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 S1728202AbfHSSnO (ORCPT + 99 others); Mon, 19 Aug 2019 14:43:14 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:48422 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727769AbfHSSnO (ORCPT ); Mon, 19 Aug 2019 14:43:14 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hzmcR-0001p5-Vz; Mon, 19 Aug 2019 20:43:04 +0200 Date: Mon, 19 Aug 2019 20:43:03 +0200 (CEST) From: Thomas Gleixner To: Sebastian Mayr cc: Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] uprobes/x86: fix detection of 32-bit user mode In-Reply-To: <2d8f1744136431b5eb0bda24ea767374d6fde4e5.camel@sam.st> Message-ID: References: <20190728152617.7308-1-me@sam.st> <2d8f1744136431b5eb0bda24ea767374d6fde4e5.camel@sam.st> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Aug 2019, Sebastian Mayr wrote: > > @@ -1056,7 +1056,7 @@ bool arch_uprobe_skip_sstep(struct arch_uprobe > > *auprobe, struct pt_regs *regs) > > unsigned long > > arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, > > struct pt_regs *regs) > > { > > - int rasize = sizeof_long(), nleft; > > + int rasize = sizeof_long(regs), nleft; > > unsigned long orig_ret_vaddr = 0; /* clear high bits for 32-bit > > apps */ > > > > if (copy_from_user(&orig_ret_vaddr, (void __user *)regs->sp, > > rasize)) > > Any feedback on this patch would be greatly appreciated. Sorry, fell through the cracks. Thanks for the reminder!