public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Carlos O'Donell <carlos@redhat.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: Florian Weimer <fweimer@redhat.com>,
	"Senkevich, Andrew" <andrew.senkevich@intel.com>,
	Andreas Schwab <schwab@suse.de>,
	GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH] Revert Intel CET changes to __jmp_buf_tag (Bug 22743)
Date: Thu, 25 Jan 2018 16:37:00 -0000	[thread overview]
Message-ID: <79fdc0dd-4f85-45fb-0ff7-715c9bed3f74@redhat.com> (raw)
In-Reply-To: <CAMe9rOpxvMqLeOEMOJHsVN5pQFbg6TuWQwzpkqFN7Eab4qGzwg@mail.gmail.com>

On 01/24/2018 09:33 PM, H.J. Lu wrote:
> On Wed, Jan 24, 2018 at 8:53 PM, Carlos O'Donell <carlos@redhat.com> wrote:
>> On 01/24/2018 05:48 PM, Dmitry V. Levin wrote:
>>> I'm afraid by Monday it will be too late for 2.27 as we will get very
>>> little testing before the release.
>>  Before reverting:
>>
>> [carlos@athas tst-cleanup1]$ /home/carlos/build/glibc/elf/ld.so --library-path /home/carlos/build/glibc:/home/carlos/build/glibc/elf:/home/carlos/build/glibc/dlfcn:/home/carlos/build/glibc/nptl ./tst-cleanup1
>> ch (3)
>> ch (2)
>> ch (1)
>> Didn't expect signal from child: got `Segmentation fault'
>>
>> After reverting:
>>
>> [carlos@athas tst-cleanup1]$ /home/carlos/build/glibc-reverted/elf/ld.so --library-path /home/carlos/build/glibc-reverted:/home/carlos/build/glibc-reverted/elf:/home/carlos/build/glibc-reverted/dlfcn:/home/carlos/build/glibc-reverted/nptl ./tst-cleanup1
>> ch (3)
>> ch (2)
>> ch (1)
>>
>> ~~~ Commit message ~~~
>> In commit cba595c350e52194e10c0006732e1991e3d0803b and commit
>> f81ddabffd76ac9dd600b02adbf3e1dac4bb10ec, ABI compatibility with
>> applications was broken by increasing the size of the on-stack
>> allocated __pthread_unwind_buf_t beyond the oringal size.
>> Applications only have the origianl space available for
>> __pthread_unwind_register, and __pthread_unwind_next to use,
>> any increase in the size of __pthread_unwind_buf_t causes these
>> functions to write beyond the original structure into other
>> on-stack variables leading to segmentation faults in common
>> applications like vlc. The only workaround is to version those
>> functions which operate on the old sized objects, but this must
>> happen in glibc 2.28.
>>
>> Thank you to Andrew Senkevich, H.J. Lu, and Aurelien Jarno, for
>> submitting reports and tracking the issue down.
>>
>> The commit reverts the above mentioned commits and testing on
>> x86_64 shows that the ABI compatibility is restored. A tst-cleanup1
>> regression test linked with an older glibc now passes when run
>> with the newly built glibc. Previously a tst-cleanup1 linked with
>> an older glibc would segfault when run with an affected glibc build.
>>
>> Tested on x86_64 with no regressions.
>>
>> Signed-off-by: Carlos O'Donell <carlos@redhat.com>
>> ~~~
>>
>> Patch attached.
>>
>> OK to commit?
>>
>> This fixes the last blocker for glibc 2.27.
> 
> Please don't revert my patch.  Please try this patch:
> 
> https://sourceware.org/git/?p=glibc.git;a=commit;h=4b7fc470a6740808b41502d7431f91805e272d26
> 
> instead.  I will clean it up and submit it tomorrow.

This is unacceptable. It adds a new symbol version and we froze the
ABI at the start of the month. You cannot work these fixes into 2.27
with a new symbol version, it must wait for 2.28.

-- 
Cheers,
Carlos.

  parent reply	other threads:[~2018-01-25 16:37 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07 17:41 [PATCH 1/2] Linux/x86: Update cancel_jmp_buf to match __jmp_buf_tag [BZ #22563] H.J. Lu
2017-12-07 17:58 ` Joseph Myers
2017-12-07 18:37 ` Florian Weimer
2017-12-07 18:59   ` H.J. Lu
2017-12-07 19:09     ` Florian Weimer
2017-12-07 19:12       ` H.J. Lu
2017-12-07 19:14         ` Florian Weimer
2017-12-07 19:19           ` H.J. Lu
2017-12-07 19:25             ` Florian Weimer
2017-12-07 19:35               ` H.J. Lu
2017-12-08  2:25                 ` H.J. Lu
2017-12-14 13:06                   ` H.J. Lu
2017-12-15 17:43                     ` H.J. Lu
2017-12-18 10:25                   ` Florian Weimer
2017-12-18 11:42                     ` H.J. Lu
2017-12-18 11:49                       ` Florian Weimer
2017-12-18 12:25                         ` H.J. Lu
2017-12-18 12:52                           ` Florian Weimer
2017-12-18 13:19                             ` H.J. Lu
2017-12-18 14:13                               ` H.J. Lu
2017-12-18 14:45                                 ` Andreas Schwab
2017-12-18 14:48                                   ` H.J. Lu
2017-12-18 16:29                                     ` H.J. Lu
2018-01-09 10:47                                     ` Florian Weimer
2018-01-09 12:17                                       ` H.J. Lu
2018-01-09 16:20                                         ` Senkevich, Andrew
2018-01-21 16:16                                       ` Aurelien Jarno
2018-01-21 16:27                                         ` H.J. Lu
2018-01-21 16:50                                           ` Carlos O'Donell
2018-01-22 14:44                                           ` Senkevich, Andrew
2018-01-23 19:35                                             ` Carlos O'Donell
2018-01-23 21:13                                               ` Senkevich, Andrew
2018-01-24 18:08                                                 ` H.J. Lu
2018-01-24 18:23                                                   ` Florian Weimer
2018-01-25  0:32                                                     ` Carlos O'Donell
2018-01-25  0:56                                                       ` Joseph Myers
2018-01-25  1:09                                                       ` H.J. Lu
2018-01-25  1:44                                                         ` Carlos O'Donell
2018-01-25  1:48                                                         ` Dmitry V. Levin
2018-01-25  4:53                                                           ` [PATCH] Revert Intel CET changes to __jmp_buf_tag (Bug 22743) Carlos O'Donell
2018-01-25  5:33                                                             ` H.J. Lu
2018-01-25  9:47                                                               ` Florian Weimer
2018-01-25 12:38                                                                 ` H.J. Lu
2018-01-25 12:50                                                                   ` Florian Weimer
2018-01-25 13:00                                                                     ` H.J. Lu
2018-01-25 14:56                                                                       ` Zack Weinberg
2018-01-25 15:33                                                                         ` H.J. Lu
2018-01-25 16:22                                                                           ` Zack Weinberg
2018-01-25 16:28                                                                             ` H.J. Lu
2018-01-25 16:36                                                                               ` Carlos O'Donell
2018-01-25 16:40                                                                                 ` H.J. Lu
2018-01-25 16:46                                                                                   ` Carlos O'Donell
2018-01-25 17:01                                                                                     ` H.J. Lu
2018-01-26  7:46                                                                                       ` Carlos O'Donell
2018-01-28 18:40                                                                                         ` H.J. Lu
2018-01-25 16:47                                                                             ` Florian Weimer
2018-01-25 16:55                                                                               ` H.J. Lu
2018-01-25 18:26                                                                         ` Joseph Myers
2018-01-25 19:21                                                                     ` H.J. Lu
2018-01-25 16:37                                                               ` Carlos O'Donell [this message]
2018-01-25 16:38                                                                 ` Florian Weimer
2017-12-18 17:37                                 ` [PATCH 1/2] Linux/x86: Update cancel_jmp_buf to match __jmp_buf_tag [BZ #22563] Joseph Myers
2017-12-18 21:19                                   ` H.J. Lu

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=79fdc0dd-4f85-45fb-0ff7-715c9bed3f74@redhat.com \
    --to=carlos@redhat.com \
    --cc=andrew.senkevich@intel.com \
    --cc=fweimer@redhat.com \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=schwab@suse.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).