Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3064736imu; Mon, 19 Nov 2018 10:05:56 -0800 (PST) X-Google-Smtp-Source: AJdET5cc+1pLsg1GtptP70KU2QJ4UTrar0RLgraprQx/e/w+PBxXJM2NNH+XHMgMURMterdn7s1B X-Received: by 2002:a62:292:: with SMTP id 140-v6mr24627145pfc.16.1542650756366; Mon, 19 Nov 2018 10:05:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542650756; cv=none; d=google.com; s=arc-20160816; b=vJBoQ+hqyVqMr23WxwgX35niPvrPdmGQIHXD29+nKMNZ91/5CzmBKKAlGEM3b93FXQ rDcYsJWkzZMIZtsXsj9EX44SmsuVUXjayNqT1+za/7YT9tZRTYXI4q9zTroZrL37QPFR XDCMtTfmNNJsoWVVOXU8klI7PH5g75WFrEimoaH1zexGt8q/nudjvuFAmUv+tiEMEoun 2ppuUZM9I7ODxxYcwgn4aOkkLAic/4wfhkskIiTgM2pm1thZSjqAxBj4wGbY8sGIBGzI nXNCwGD3EBDgAyBDuY6P3aAYSSibvYZUNv87J2L5aeweYh5Wk37xT1oyljUV6juE1qcw q87A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5k4+ZSfNVAkYcHOmnj6ATyXSE5oqf2y621Fz/XwWVmQ=; b=yElLaasF+l3OscqZlDUpJiqx5mFwg7IidgbqrHsRXdOY781S5TKeZ0H100timmy3EB LAbPtQtL8wr8YIKop+NpF2Ut2e5UWiTrrmXqx0TpOdyuu3JMHaYi8rjjDsjJHPZ1AiIy gp/1XhP+7uREl2Vq1K519Bhl54m1I1L2rD2QFLIg6SW0W9Yt8dq2ylP2oZ6zhNis53+i 0gbXXznZOoefQb/ngGMgwyLt7PYIGOF/P4QuolJw/WZ0bngdtxkRsyG5VwbOz6+fZ9Hb wddven+8jfNWeFdzMwO1kSdzk/jOdOrktJbaJfn1ZMteqR4NfSSo2HcvqwKy3iSdymrL d6og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jhJH1YMX; 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 j195si1497485pfd.165.2018.11.19.10.05.41; Mon, 19 Nov 2018 10:05:56 -0800 (PST) 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=@kernel.org header.s=default header.b=jhJH1YMX; 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 S1731244AbeKTE2v (ORCPT + 99 others); Mon, 19 Nov 2018 23:28:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:56410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730449AbeKTC5i (ORCPT ); Mon, 19 Nov 2018 21:57:38 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 B9AF32089F; Mon, 19 Nov 2018 16:33:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645211; bh=Q4GJuccLR46gV3MQTPZT1NXGpYXszajUtI4qJA6HlGQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhJH1YMXEqyiSd0AzSFFb+UG6QZ6WJnNg+DBsoR0qnw2eHlF+SCAzA50P4ySUCpM+ iXL2LwInlEpBotScIEep1nYgjW5chApFePaal5o3XdeoSBXBlhn5BN6AoJj3shEWrR CzUWy21miQgHVqVSGvH/YzAoab1XErOAFWpUt13k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ritesh Raj Sarraf , Richard Weinberger Subject: [PATCH 4.19 079/205] um: Drop own definition of PTRACE_SYSEMU/_SINGLESTEP Date: Mon, 19 Nov 2018 17:26:26 +0100 Message-Id: <20181119162630.668726790@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Richard Weinberger commit 0676b957c24bfb6e495449ba7b7e72c5b5d79233 upstream. 32bit UML used to define PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP own its own because many years ago not all libcs had these request codes in their UAPI. These days PTRACE_SYSEMU/_SINGLESTEP is well known and part of glibc and our own define becomes problematic. With change c48831d0eebf ("linux/x86: sync sys/ptrace.h with Linux 4.14 [BZ #22433]") glibc turned PTRACE_SYSEMU/_SINGLESTEP into a enum and UML failed to build. Let's drop our define and rely on the fact that every libc has PTRACE_SYSEMU/_SINGLESTEP. Cc: Cc: Ritesh Raj Sarraf Reported-and-tested-by: Ritesh Raj Sarraf Signed-off-by: Richard Weinberger Signed-off-by: Greg Kroah-Hartman --- arch/x86/um/shared/sysdep/ptrace_32.h | 10 ---------- 1 file changed, 10 deletions(-) --- a/arch/x86/um/shared/sysdep/ptrace_32.h +++ b/arch/x86/um/shared/sysdep/ptrace_32.h @@ -10,20 +10,10 @@ static inline void update_debugregs(int seq) {} -/* syscall emulation path in ptrace */ - -#ifndef PTRACE_SYSEMU -#define PTRACE_SYSEMU 31 -#endif - void set_using_sysemu(int value); int get_using_sysemu(void); extern int sysemu_supported; -#ifndef PTRACE_SYSEMU_SINGLESTEP -#define PTRACE_SYSEMU_SINGLESTEP 32 -#endif - #define UPT_SYSCALL_ARG1(r) UPT_BX(r) #define UPT_SYSCALL_ARG2(r) UPT_CX(r) #define UPT_SYSCALL_ARG3(r) UPT_DX(r)