All reports
Unknown

kernel: btrfs: fix symbolic link reading when bs > ps

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Description

A folio ordering issue was found in the Linux kernel's Btrfs filesystem when handling symbolic links with block sizes larger than page size. A local user can trigger this issue by creating and reading symbolic links on Btrfs filesystems configured with block size exceeding page size (experimental feature). The symlink reading code reuses data folio paths but fails to set the correct minimal folio order for symlinks, causing kernel BUG assertions when attempting to zero folio segments, resulting in crashes and denial of service.