From: Stefan Hajnoczi <stefanha@redhat.com>
To: Dylan Yudaken <dylany@meta.com>
Cc: "axboe@kernel.dk" <axboe@kernel.dk>,
"io-uring@vger.kernel.org" <io-uring@vger.kernel.org>,
"jmoyer@redhat.com" <jmoyer@redhat.com>,
"dominik@thalhammer.it" <dominik@thalhammer.it>,
"rjones@redhat.com" <rjones@redhat.com>
Subject: Re: liburing 2.3 API/ABI breakage
Date: Thu, 10 Nov 2022 08:46:52 -0500 [thread overview]
Message-ID: <Y20AzFN03U3+1rUi@fedora> (raw)
In-Reply-To: <baf1f51132d42319a6a845ba391b21731ef80d6a.camel@fb.com>
[-- Attachment #1: Type: text/plain, Size: 959 bytes --]
On Thu, Nov 10, 2022 at 09:43:48AM +0000, Dylan Yudaken wrote:
> On Wed, 2022-11-09 at 20:58 -0500, Stefan Hajnoczi wrote:
> > > 2. Going from size_t to unsigned int is ABI breakage. This is
> > > mitigated
> > > on CPU architectures that share 32-bit/64-bit registers (i.e.
> > > rax/eax
> > > on x86-64 and r0/x0/w0 on aarch64). There's no guarantee this
> > > works
> > > on all architectures, especially when the calling convention
> > > passes
> > > arguments on the stack.
> >
> > Good news, I realized that io_uring_prep_getxattr() and friends are
> > static inline functions. ABI breakage doesn't come into play because
> > they are compiled into the application.
>
> Additionally the inline code was doing the narrowing cast anyway, so
> there was no narrowing issues.
>
> I really should have put this explanation in the commit message though
> - will remember for next time.
Thanks, that will help!
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2022-11-10 13:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 21:32 liburing 2.3 API/ABI breakage Stefan Hajnoczi
2022-11-10 1:58 ` Stefan Hajnoczi
2022-11-10 9:43 ` Dylan Yudaken
2022-11-10 13:46 ` Stefan Hajnoczi [this message]
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=Y20AzFN03U3+1rUi@fedora \
--to=stefanha@redhat.com \
--cc=axboe@kernel.dk \
--cc=dominik@thalhammer.it \
--cc=dylany@meta.com \
--cc=io-uring@vger.kernel.org \
--cc=jmoyer@redhat.com \
--cc=rjones@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.