Received: by 10.192.165.148 with SMTP id m20csp2446082imm; Sun, 22 Apr 2018 07:14:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx48k54NhhkinpcOAN/L8HFqsFQlYFTyOVz9uiPNVYxR/QKl1yGlK5aoDnsrQE9v7JroXd7qN X-Received: by 10.167.134.25 with SMTP id p25mr16636989pfn.93.1524406466149; Sun, 22 Apr 2018 07:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524406466; cv=none; d=google.com; s=arc-20160816; b=Ql4BbKAm8wsykkViWXi6dcmYyZ6pqLXperaF4Ik8KQrhtarAozY00vB31SFy6p5Zg7 zTx0/wF5EDRfr77mHCeTW0Es2cXQHFxYzAAPRgXe/+T5N6dM2fGOfpO/TIMBKvWR7m41 Adag5mPvoxN8zgfSsVOAiKL09/pT5QtLl0uVF4agT9A3Vfvs98VBwGzPAZzwLV2WWAnS qZchUrQ2KQkve/Iq9o0cNOM2IYhYDnk28Xnpg63GyjbRZDlVRMvFy+za7N0LlOZpx7QA HmCziI/qi6GP0rLJ9kO+GvumJi4jcpXf4VVAfCGBb0bgHnWAhvFVaV1uh6zL+whRFgtC MW9A== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=RICGOdPvWtxwr4P4VTkJWlTG69q48Ey/qKFiWYZCngw=; b=TOrguIZXu8Z1j/ZSox/Cxa1sYZTZjBpjcwzfVknt0vtCNm+gdVZ5CP8zu5bwWLNkJt dA9mSOW0OWY11FlXh+3ojhq3JeUEVPgjBsQouPPcZlsmmVKSEsER/WRKHsV8i/Na1eLs NZ2tPt4kQwW8p1+fpVDn8evg7MdEFqvzCUMFVmzdrLAbO6l7YndmJT9I4eS6ebJ5ALMa 1w1euYag0h/SSYSmBeUlnSmxAV7x/IUiq6dr7O2U9BhHtNdaPd3uFwgjMkMrrwVKhJ7F Fpe5BKNZL9JaXznMQbyQacvEra1d83mmgqgiMX7E2WLgnkBJ5w87Uw/K6N6aP7gvEcVJ zbRA== 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 b124si8115363pgc.121.2018.04.22.07.14.12; Sun, 22 Apr 2018 07:14:26 -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 S1756780AbeDVONC (ORCPT + 99 others); Sun, 22 Apr 2018 10:13:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756740AbeDVOM4 (ORCPT ); Sun, 22 Apr 2018 10:12:56 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2DDC7CCE; Sun, 22 Apr 2018 14:12:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Mazur , Richard Weinberger Subject: [PATCH 4.9 48/95] um: Use POSIX ucontext_t instead of struct ucontext Date: Sun, 22 Apr 2018 15:53:17 +0200 Message-Id: <20180422135212.380177212@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135210.432103639@linuxfoundation.org> References: <20180422135210.432103639@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Mazur commit 4d1a535b8ec5e74b42dfd9dc809142653b2597f6 upstream. glibc 2.26 removed the 'struct ucontext' to "improve" POSIX compliance and break programs, including User Mode Linux. Fix User Mode Linux by using POSIX ucontext_t. This fixes: arch/um/os-Linux/signal.c: In function 'hard_handler': arch/um/os-Linux/signal.c:163:22: error: dereferencing pointer to incomplete type 'struct ucontext' mcontext_t *mc = &uc->uc_mcontext; arch/x86/um/stub_segv.c: In function 'stub_segv_handler': arch/x86/um/stub_segv.c:16:13: error: dereferencing pointer to incomplete type 'struct ucontext' &uc->uc_mcontext); Cc: stable@vger.kernel.org Signed-off-by: Krzysztof Mazur Signed-off-by: Richard Weinberger Signed-off-by: Greg Kroah-Hartman --- arch/um/os-Linux/signal.c | 2 +- arch/x86/um/stub_segv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/arch/um/os-Linux/signal.c +++ b/arch/um/os-Linux/signal.c @@ -160,7 +160,7 @@ static void (*handlers[_NSIG])(int sig, static void hard_handler(int sig, siginfo_t *si, void *p) { - struct ucontext *uc = p; + ucontext_t *uc = p; mcontext_t *mc = &uc->uc_mcontext; unsigned long pending = 1UL << sig; --- a/arch/x86/um/stub_segv.c +++ b/arch/x86/um/stub_segv.c @@ -11,7 +11,7 @@ void __attribute__ ((__section__ (".__syscall_stub"))) stub_segv_handler(int sig, siginfo_t *info, void *p) { - struct ucontext *uc = p; + ucontext_t *uc = p; GET_FAULTINFO_FROM_MC(*((struct faultinfo *) STUB_DATA), &uc->uc_mcontext);