From: Richard Weinberger <richard@nod.at>
To: Krzysztof Mazur <krzysiek@podlesie.net>
Cc: Jeff Dike <jdike@addtoit.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
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 [thread overview]
Message-ID: <1828554.ETQJSmL9mu@blindfold> (raw)
In-Reply-To: <20171115110416.GA29538@shrek.podlesie.net>
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
next prev parent reply other threads:[~2017-11-15 11:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 10:12 [PATCH] um: use POSIX ucontext_t instead of struct ucontext Krzysztof Mazur
2017-11-15 10:19 ` Richard Weinberger
2017-11-15 11:04 ` Krzysztof Mazur
2017-11-15 11:15 ` Richard Weinberger [this message]
2017-11-15 11:22 ` Krzysztof Mazur
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1828554.ETQJSmL9mu@blindfold \
--to=richard@nod.at \
--cc=hpa@zytor.com \
--cc=jdike@addtoit.com \
--cc=krzysiek@podlesie.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox