public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "Adhemerval Zanella Netto" <adhemerval.zanella@linaro.org>,
	"Florian Weimer" <fweimer@redhat.com>
Cc: "YunQiang Su" <yunqiang.su@cipunited.com>,
	"Xi Ruoyao" <libc-alpha@sourceware.org>,
	aurelien@aurel32.net, "Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Maciej W. Rozycki" <macro@orcam.me.uk>,
	"YunQiang Su" <syq@debian.org>
Subject: Re: [PATCH v3] Define in_int32_t_range to check if the 64 bit time_t syscall should be used
Date: Tue, 08 Nov 2022 15:07:26 +0100	[thread overview]
Message-ID: <5c46fff4-ed17-4043-946f-efed9a07755c@app.fastmail.com> (raw)
In-Reply-To: <1c812047-6cf0-107d-faa3-70532d5ca0de@linaro.org>

On Tue, Nov 8, 2022, at 14:49, Adhemerval Zanella Netto wrote:
> On 08/11/22 10:27, Arnd Bergmann wrote:
>
> Yes, the 32 bit fallback assumes that you either use the default minimum
> kernel or configure with --enable-kernel with a value lower than 5.1.
> And the optimization such as ecf2661281c was added on the basis that for
> such configuration the 32 time_t is always present.  
>
> For __ASSUME_TIME64_SYSCALLS (default fro 64 bit time_t ABI and for 32
> bit time_t with --enable-kernel=5.1) the 32 bit syscall should not be
> issued.

Ok, good. What is the amount of testing that this combination
(--enable-kernel=5.1, CONFIG_COMPAT_32_BIT_TIME=n) has seen? Is
this something that is already part of some regression test setup,
or rather something that is supposed to work but isn't in
widespread use?

> There are still the issue for a default configured glibc when running
> on kernels with CONFIG_COMPAT_32BIT_TIME=y, this would require to remove
> the fallback optimizations for !__ASSUME_TIME64_SYSCALLS.

You mean CONFIG_COMPAT_32BIT_TIME=n with !__ASSUME_TIME64_SYSCALLS,
right? As I said, I'm not too worried about this corner case, as
long as there is some kind of use feedback that tells users to
change either glibc or kernel configuration.

My impression is that the optimizing for running on old kernels
is not overly helpful, and that changing the fallback logic
would be better, but this does not feel like a correctness
issue when general-purpose distros always enable
CONFIG_COMPAT_32BIT_TIME, and embedded users that want it
disabled always build a matching glibc as well.

      Arnd

  reply	other threads:[~2022-11-08 14:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04  1:39 [PATCH] Use in_int32_t_range to check need 64bit syscall YunQiang Su
2022-11-08  4:49 ` [PATCH v3] Define in_int32_t_range to check if the 64 bit time_t syscall should be used YunQiang Su
2022-11-08 10:39   ` Arnd Bergmann
2022-11-08 11:17     ` Florian Weimer
2022-11-08 11:33       ` Arnd Bergmann
2022-11-08 11:39         ` Florian Weimer
2022-11-08 11:55           ` Adhemerval Zanella Netto
2022-11-08 12:28           ` Arnd Bergmann
2022-11-08 12:51             ` Adhemerval Zanella Netto
2022-11-08 13:27               ` Arnd Bergmann
2022-11-08 13:49                 ` Adhemerval Zanella Netto
2022-11-08 14:07                   ` Arnd Bergmann [this message]
2022-11-08 14:27                     ` Adhemerval Zanella Netto
2022-11-08 19:47                       ` Adhemerval Zanella Netto
2022-11-08 23:29                         ` Rich Felker
2022-11-17 17:35   ` Adhemerval Zanella Netto

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=5c46fff4-ed17-4043-946f-efed9a07755c@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=adhemerval.zanella@linaro.org \
    --cc=aurelien@aurel32.net \
    --cc=fweimer@redhat.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=macro@orcam.me.uk \
    --cc=syq@debian.org \
    --cc=yunqiang.su@cipunited.com \
    /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).