Received: by 10.223.164.202 with SMTP id h10csp502514wrb; Wed, 15 Nov 2017 03:30:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMa9nOkfngIMLUH2ix0PpRrQx1JxAlBetzL5UKcnAAcarxhJzJ4zMC0MMAiO0JsXG7zSmDZW X-Received: by 10.84.149.168 with SMTP id m37mr15454554pla.36.1510745402427; Wed, 15 Nov 2017 03:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510745402; cv=none; d=google.com; s=arc-20160816; b=VqypDm1KREWlGBY5P7+QyTsO87QtNTNckIqrUmHNrqGgWQURihMzcVNzrWWvqa9k5N SsLj1v4DJGkG/z45+Xl61DfFvd2tQEL0fQGKwp6ytXVIxs4+cO7EwZ3tcV6u75X5kcMd ldHdpVOLBd1FLNZUyiszh+hBzHVIDJU8/4ikDh2Uq98zlQUMFOUVAGuvLql8KFJ+TxZ0 WJSPhEvepqs4eeqrAqrdjcefJkxdXTloJT7sRtdAfmG51VlnpFZ8GGRvDY51ICYGx4L7 Xta8lnV1WS3nSdJZQyHbvaAjrJR34WlYyL9QyEqOv6nUtWxyD0jtigGPxeUHPn+q7Ljc 8vsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=37ZjFjrECMHnr+zhPGJfAGoWr3ylZUty8VgysAXVLgM=; b=xXhtq+wOPWtL+G+6+bdVKCrkZWV9hy2WjxEGzKqdUnkkAu5DyneCeuAOZahI5/Q5nY Y2uvFzyPEvHPTdWCXhFtg9XP/0RPgdTtRw79DqJJLw0klgKPhacuLVJLZlSyxtTIChXL vLQHye1qxjBMOLvU9Uoy+XnV66NrBfDOB8ewGqBEwKaOyOTZRr7Nval92OldKo13OSot 63+MTEZyuFPYuXM0PtWvTddG1qDSoGNb4489GzaPA4bqosqfyKRdnsbKuv1Trnn148xp 7CAwNtKNwymWEAJVgJuzAs4BdIJJ54ltYTrX77pVpgYV8s8317F+d9yTGnO3PQvO7b6d fwwA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=podlesie.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si17081514pgp.487.2017.11.15.03.29.49; Wed, 15 Nov 2017 03:30:02 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=podlesie.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756754AbdKOLWW (ORCPT + 88 others); Wed, 15 Nov 2017 06:22:22 -0500 Received: from shrek-s3.podlesie.net ([85.14.110.209]:60006 "EHLO shrek.podlesie.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752817AbdKOLWP (ORCPT ); Wed, 15 Nov 2017 06:22:15 -0500 Received: by shrek.podlesie.net (Postfix, from userid 603) id 3AB871FE2; Wed, 15 Nov 2017 12:22:14 +0100 (CET) Date: Wed, 15 Nov 2017 12:22:14 +0100 From: Krzysztof Mazur To: Richard Weinberger Cc: Jeff Dike , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, user-mode-linux-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] um: use POSIX ucontext_t instead of struct ucontext Message-ID: <20171115112214.GA12121@shrek.podlesie.net> References: <20171115101239.4882-1-krzysiek@podlesie.net> <1518438.KRCSCszYuI@blindfold> <20171115110416.GA29538@shrek.podlesie.net> <1828554.ETQJSmL9mu@blindfold> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1828554.ETQJSmL9mu@blindfold> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 15, 2017 at 12:15:00PM +0100, Richard Weinberger wrote: > Am Mittwoch, 15. November 2017, 12:04:16 CET schrieb Krzysztof Mazur: > > On Wed, Nov 15, 2017 at 11:19:41AM +0100, Richard Weinberger wrote: > > > Am Mittwoch, 15. November 2017, 11:12:39 CET schrieb Krzysztof Mazur: > > > > 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); > > > > > > Do all older glibcs have ucontext_t? > > > Otherwise this patch will break other stuff. > > > > Yes, ucontext_t typedef was always available. They changed: > > > > typedef struct ucontext { ... } ucontex_t; > > > > to > > > > typedef struct ucontext_t { ... } ucontex_t; > > > > https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27struct_ucontext > > .27 > > Okay, then we can mark your patch as stable and hope for the best. ;-) Thanks Krzysiek From 1584130919663052874@xxx Wed Nov 15 11:22:51 +0000 2017 X-GM-THRID: 1584126952248990726 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread