Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > Again new complaints surfaced that we had broken the ABI here, > although previously all the userspace tools had agreed that it > was their mistake and fixed it. Yet now there are cases (e.g. > RHEL) that want to run old userspace with newer kernels, and > thus are broken. > > Since this is a bit of a whack-a-mole thing, change the whole > extensibility scheme of rfkill to no longer just rely on the > message lengths, but instead require userspace to opt in via a > new ioctl to a given maximum event size that it is willing to > understand. > > By default, set that to RFKILL_EVENT_SIZE_V1 (8), so that the > behaviour for userspace not calling the ioctl will look as if > it's just running on an older kernel. > > Fixes: 14486c82612a ("rfkill: add a reason to the HW rfkill state") > Cc: stable@xxxxxxxxxxxxxxx # 5.11+ > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Patch applied to wireless-next.git, thanks. 54f586a91532 rfkill: make new event layout opt-in -- https://patchwork.kernel.org/project/linux-wireless/patch/20220316212749.16491491b270.Ifcb1950998330a596f29a2a162e00b7546a1d6d0@changeid/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches