Received: by 10.192.165.148 with SMTP id m20csp2450767imm; Sun, 22 Apr 2018 07:18:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/7RrBROFS8OUzi7Swoq3lcKYYu7xaOLt/1w7cvAVhXd5OIFS4L2RUeOVTddiKZvt/f6gnt X-Received: by 2002:a17:902:8606:: with SMTP id f6-v6mr17534162plo.258.1524406738843; Sun, 22 Apr 2018 07:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524406738; cv=none; d=google.com; s=arc-20160816; b=AgQZQ3TVEu4yn/OkbxZtrN6A/+HennV2ALAZDJPg/iTkEFCpyZwg2cG2T3ynenUj33 aoT/Wqx6UTKyE5QPkbCxODk13eZnSMqLGqD0tIEwKOWkVAnYwKUx6v6JW2Ngc+8LECCJ texhGku07xY4aZqAmGpzy+hPzhqzfehyFYpXQsOW2h2w2QQqi9XXmsvoy0jzCkgfBTIA tUqj4mPjV5mw+7Vwc6fducULgZNFo6s7kMqQwo25quy1QMWMaYje8sT070dbIVulVp01 y16noJ9A2juZkviXSxtjNiv8OhamgBeCTDlP+0nQxCi9h99Nrx1G+6lWy6pphyIHfQsm 0VJA== 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=Se38H7YnRcxvijTItk7aXysvXN7T5jtihe3n4nb/Vc0=; b=n8JPiMbUxuQoWMkS9LzC2Z5LipnRbb+Q0RM1hEfNuXUrT158JqM8Es+DbMJhO4DWxb CIkTvD1pwg7Uh2kSn19x2UiR+H9aMwr9HQUCgPctQM3qzwMa13k1Ut50TpolOxo7wTSR 1mnXBdnYYVGbjOdIEU6yhS0o2OHkIlPdCYvwuy1aHbxdf/x0E0+J+lLx6X0q2t7h/8Aq iJZAzpY6BcnqpPO5Yl2t36bebIQfbSxIB1vQIqhCvC4HupirJAXtwBfy3PPz+1lNjmNr qh0lWuhysBWFkyNXRiHA8Aws6CzeWRdrFFpAXIzOnAB6iPdakgmbM5VD0w7CQ/XL9gat NXnQ== 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 g5si2922268pgc.283.2018.04.22.07.18.44; Sun, 22 Apr 2018 07:18:58 -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 S1757122AbeDVORp (ORCPT + 99 others); Sun, 22 Apr 2018 10:17:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58500 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757009AbeDVORl (ORCPT ); Sun, 22 Apr 2018 10:17:41 -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 1D4DDCD2; Sun, 22 Apr 2018 14:17:40 +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.4 57/97] um: Use POSIX ucontext_t instead of struct ucontext Date: Sun, 22 Apr 2018 15:53:35 +0200 Message-Id: <20180422135308.456674224@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135304.577223025@linuxfoundation.org> References: <20180422135304.577223025@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.4-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 @@ -140,7 +140,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 @@ -10,7 +10,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);