Received: by 10.223.164.202 with SMTP id h10csp496213wrb; Wed, 15 Nov 2017 03:22:51 -0800 (PST) X-Google-Smtp-Source: AGs4zMb5nj0b//Npul2xWgvRaszdsGfufTnnn83318XMzWGM9S8w4oPR+mXHxtGolE/CYj7I+Wa9 X-Received: by 10.159.234.147 with SMTP id d19mr15560451plr.280.1510744971838; Wed, 15 Nov 2017 03:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510744971; cv=none; d=google.com; s=arc-20160816; b=ZN7bz8ybNRme4oA+o+EjVkjf5ufBssi1umWK5AINpEtJaR4OzzXFQQXN6EKpXnU1hg tBMG4hIxtj/dUuJIao/mcc2Nf/pkp2m7QiUYN33fokxciS6s38vUMgFRlD4JjYPuD4Os fqUSrDhEoTydPzcaFQH/c7tFe2sonheVJeWOIV5yQJ4ABLFc8vei/2y8LUoV5l90TJkM XlSpb0MULKhXMXRMLWhC4+QMj/iZxy3REJRvGfHphA+TGQWR2w0gjuzM7dzJS8bcaRHG v6fIw3J3r20M5FjTYCGe0ovK9MXBhsXQcVuZzt4ji9SbR5dnrK4L+sjrmxRe1Kshzu4P K8lA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3GO/CKVrcz204WIdYEgjKrtPuK50T+K778/OGzKXMkU=; b=wHQe5/RC3+xcZ64H6cb5pw89FWx3rPlEZXrL5MyILF/kgKbXZi+dJ/DrxubJ5p6JYV J8uv2/RGZfU1zN2a23+oLEyFqoqnirT146Jo5a6m3EwsBfL9avMFw1h66DaQGA2TFBCI 7vL6FqIKF6hl6HvPzjz+fV+tQYh3JxfgXcf4Gm2oZIxG9Bp2Um7RF/6jDCOhzUP6S9ev R1xiHAF6lipENvgyoGK5j/BfgAg7m1U+q+ba4q/teY57jTdQUxC75L8Aq+Oy4eODSVap ujmXoG6+7088XS+QNQbYhScB08NKtPPJ6yvWP204zTB90OWowl7XEyHmzU+SLYDA9UU/ NJuw== 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 t1si1125022pgq.794.2017.11.15.03.22.39; Wed, 15 Nov 2017 03:22:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757750AbdKOLOr (ORCPT + 88 others); Wed, 15 Nov 2017 06:14:47 -0500 Received: from mail.sigma-star.at ([95.130.255.111]:45996 "EHLO mail.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757734AbdKOLOn (ORCPT ); Wed, 15 Nov 2017 06:14:43 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.sigma-star.at (Postfix) with ESMTP id 5162924E0011; Wed, 15 Nov 2017 12:14:32 +0100 (CET) Received: from blindfold.localnet (richard.vpn.sigmapriv.at [10.3.0.5]) by mail.sigma-star.at (Postfix) with ESMTPSA id D0E8A24E0010; Wed, 15 Nov 2017 12:14:31 +0100 (CET) From: Richard Weinberger To: Krzysztof Mazur 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 Date: Wed, 15 Nov 2017 12:15:00 +0100 Message-ID: <1828554.ETQJSmL9mu@blindfold> In-Reply-To: <20171115110416.GA29538@shrek.podlesie.net> References: <20171115101239.4882-1-krzysiek@podlesie.net> <1518438.KRCSCszYuI@blindfold> <20171115110416.GA29538@shrek.podlesie.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, //richard From 1584105892146266454@xxx Wed Nov 15 04:45:03 +0000 2017 X-GM-THRID: 1584098927867225721 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread