From: hch <hch@lst.de>
To: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Cc: hch <hch@lst.de>, "djwong@kernel.org" <djwong@kernel.org>,
"linux-xfs@vger.kernel.org" <linux-xfs@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"cem@kernel.org" <cem@kernel.org>
Subject: Re: [PATCH] xfs: add static size checks for structures in xfs_fs.h
Date: Mon, 9 Feb 2026 15:47:49 +0100 [thread overview]
Message-ID: <20260209144749.GB16995@lst.de> (raw)
In-Reply-To: <41ea75676ea983281368c449647599aad9551d1b.camel@wdc.com>
On Mon, Feb 09, 2026 at 07:04:22AM +0000, Wilfred Mallawa wrote:
> As Dave mentioned, I did not consider the alignment requirements being
> different on 32b for example. So I did see some errors for the
> following structs from testbot:
>
>
> xfs_flock64
> xfs_fsop_geom_v1
> xfs_growfs_data_t
> xfs_growfs_rt_t
> xfs_inogrp
>
> So we may have to omit these altogether? I'm not sure if this patch
> would cause issues for other configs the testbot isn't catching? Any
> thoughts?
Out of the Linux supported architectures there are basically five
kinds of differences a struct ABI can have:
1) different pointer sizes
2) different size of long for long derived types
3) different alignment of u64 on i386 vs everyone else
4) different alignment of u16 on arm32-oldabi vs everyone else
5) configuration dependencies
5) is a no-go for exported types
4) doesn't happen in the current xfs uapi headers (it happens in on-disk
formats structs though..).
3) is clearly indicated by the x86-specific handlers in xfs_ioctl32.c
2) and 1) are indicated by the other handlers in xfs_ioctl32.c.
Based on that your above list is a good start, but incomplete.
The list of compat_ structures in fs/xfs/xfs_ioctl32.h should have
a complete list, and if doesn't that is a bug as we're missing
compat handlers.
next prev parent reply other threads:[~2026-02-09 14:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 3:05 [PATCH] xfs: add static size checks for structures in xfs_fs.h Wilfred Mallawa
2026-02-06 6:08 ` Christoph Hellwig
2026-02-09 7:04 ` Wilfred Mallawa
2026-02-09 14:47 ` hch [this message]
2026-02-10 5:59 ` Wilfred Mallawa
2026-02-06 9:39 ` kernel test robot
2026-02-06 11:02 ` kernel test robot
2026-02-06 18:03 ` kernel test robot
2026-02-06 22:27 ` Dave Chinner
2026-02-09 6:57 ` Wilfred Mallawa
2026-02-09 14:41 ` Christoph Hellwig
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=20260209144749.GB16995@lst.de \
--to=hch@lst.de \
--cc=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=wilfred.mallawa@wdc.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