Vulnerability record
btrfs: zoned: only change active zone counter on successful (de)activation
In the Linux kernel, the following vulnerability has been resolved:
btrfs: zoned: only change active zone counter on successful (de)activation
btrfs_zone_activate() unconditionally decrements the reserved_active_zones counter regardless if btrfs_dev_set_active_zone() fails to set the zone active, i.e. because it raced with another call that already set the bit in the bitmask, or not.
This can lead to a double decrement of the counter in case the bit has already been set.
Only decrement the counter iff btrfs_dev_set_active_zone() successfully marked the zone in the bitmap.
Mirror this…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources