public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Carlos O'Donell <carlos@redhat.com>
To: Florian Weimer <fweimer@redhat.com>,
	Carlos O'Donell via Libc-alpha <libc-alpha@sourceware.org>
Cc: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Subject: Re: [PATCH v7] nptl: Fix Race conditions in pthread cancellation [BZ#12683]
Date: Fri, 8 Sep 2023 08:22:04 -0400	[thread overview]
Message-ID: <f81c9915-0813-9cc3-2f69-6f8cba4e917d@redhat.com> (raw)
In-Reply-To: <87fs3zawud.fsf@oldenburg.str.redhat.com>

On 8/31/23 14:30, Florian Weimer wrote:
> * Carlos O'Donell via Libc-alpha:
> 
>> My opinion is that we should consider a model where the syscall is a
>> range of instructions and that creates some interesting implementation
>> details which I will discuss. Without your implementation I would
>> never have thought this necessary, but your requirement to go back to
>> legacy single instruction syscalls raises a yellow flag for me here.
> 
> I think it's not fair to bring up hypothetical glibc ports that may
> never be submitted upstream.  We should evaluate the change in the
> context of the present sources and supported architectures.

Sorry, I don't follow.

I agree with you completely, we should focus on current ports, but the open question
about how to support those current ports without regression.

In Adhemerval's v7 implementation the i686 and ia64 ports loose vDSO support for
cancellable syscalls. That is a regression for existing ports?

The more technical question is: Will vDSO functions intersect the set of functions
for which we have cancellation points today?

And the answer is that they don't really.

We have vDSO routines for:

* clock_gettime
* clock_gettime64
* gettimeofday
* time
* getcpu
* clock_getres
* clock_getres_time64
* get_tbfreq (POWER-specific)

None of these are really cancellable to begin with, but if we're talking about
fundamental modelling of the cancellation in glibc, I'm asking specifically about
i686.

-- 
Cheers,
Carlos.


  reply	other threads:[~2023-09-08 12:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-24 13:51 Adhemerval Zanella
2023-05-24 15:18 ` Florian Weimer
2023-08-28 12:47 ` Carlos O'Donell
2023-08-30 18:36   ` Adhemerval Zanella Netto
2023-08-31 18:30   ` Florian Weimer
2023-09-08 12:22     ` Carlos O'Donell [this message]
2023-09-08 12:35       ` Florian Weimer

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=f81c9915-0813-9cc3-2f69-6f8cba4e917d@redhat.com \
    --to=carlos@redhat.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).