Vulnerability record
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
In the Linux kernel, the following vulnerability has been resolved:
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
btrfs_sysfs_add_block_group_type() sets up a NOFS context with memalloc_nofs_save() because kobject_add() performs GFP_KERNEL allocations deep in its call chain, and the function may be called while holding a transaction handle or a lock required for a transaction commit, where reclaim could deadlock.
Every other return path of this function calls memalloc_nofs_restore() except the early return taken when another thread has already…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources