Message ID | 20241110180533.GA200429@mit.edu (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | generic/645 failing on ext4, xfs (probably others) on all LTS kernels | expand |
On Sun, Nov 10, 2024 at 01:05:33PM -0500, Theodore Ts'o wrote: > (2) How much do we care that generic/645 is failing on LTS kernels? > Are user/applications going to notice or care? ... if userspace applications won't notice this breakage, then why do we run this test?
On Sun, Nov 10, 2024 at 01:05:33PM -0500, Theodore Ts'o wrote: > The test generic/645 is failing on (at least) 6.6, 6.1, 5.15 LTS > kernels. > > This fix is apparently commit dacfd001eaf2 ("fs/mnt_idmapping.c: > Return -EINVAL when no map is written"), but in order to take this > patch, it looks like we need to backport the 4 patch series > "mnt_idmapping: decouple from namespaces"[1] (and possibly others; I > haven't tried yet). > > [1] https://lore.kernel.org/all/20231122-vfs-mnt_idmap-v1-0-dae4abdde5bd@kernel.org/ > > This looks fairly involved so the questions I have are: > > (1) Should we request this patch series plus commit dacfd001eaf2 into > the stable kernels --- or should I just add a versioned excludes[2] > and just skip generic/645 from all kernels older than Linux 6.9 if we > think it's too involved and/or risky to backport these id mapping > changes? > > (2) How much do we care that generic/645 is failing on LTS kernels? > Are user/applications going to notice or care? No userspace used an empty idmapping and it was unclear whether the behavior would be well-specified so the patch changed that quite some time ago. Backporting this to older LTS kernels isn't difficult. We just need custom patches for the LTS kernels but they should all be very simple. Alternatively, you can just ignore the test on older kernels.
diff --git a/test-appliance/files/root/fs/global_exclude b/test-appliance/files/root/fs/global_exclude index d7acf89f..42902152 100644 --- a/test-appliance/files/root/fs/global_exclude +++ b/test-appliance/files/root/fs/global_exclude @@ -30,6 +30,14 @@ generic/484 generic/554 #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,9,0) +// This test failure is fixed by commit dacfd001eaf2 +// ("fs/mnt_idmapping.c: Return -EINVAL when no map is written"), +// but it's too involved to backport it and its dependencies to +// the LTS kernels. +generic/645 +#endif + #ifndef IS_DAX_CONFIG // Unless we are testing the dax config, we can exclude all dax tests -g dax