From 95fbd77ad028f2635e41f21ac47ea2b6cc7ed94b Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 30 Nov 2025 14:16:57 -0500 Subject: [PATCH] Update bcachefs sources to 6ba867b0c788 bcachefs: Drop __counted_by from struct bch_ioctl_fsck_offline --- .bcachefs_revision | 2 +- libbcachefs/bcachefs_ioctl.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.bcachefs_revision b/.bcachefs_revision index 9192d288..8f438cd1 100644 --- a/.bcachefs_revision +++ b/.bcachefs_revision @@ -1 +1 @@ -ce8f0c316862869e9e2c57270b8d5f15f26be5ca +6ba867b0c788d0f32e8dc142172d60ead6273f1b diff --git a/libbcachefs/bcachefs_ioctl.h b/libbcachefs/bcachefs_ioctl.h index 6758b303..dd926db4 100644 --- a/libbcachefs/bcachefs_ioctl.h +++ b/libbcachefs/bcachefs_ioctl.h @@ -447,7 +447,12 @@ struct bch_ioctl_fsck_offline { __u64 flags; __u64 opts; /* string */ __u64 nr_devs; - __u64 devs[] __counted_by(nr_devs); + /* + * Do not re-add __counted_by() here: there's a compiler bug that causes + * a bounds check to happen, even when it's a userspace pointer + * (properly marked as __user) + */ + __u64 devs[]; }; /*