HomeFreeBSD

libsa: Fix infinite loop in bzipfs & gzipfs

Description

libsa: Fix infinite loop in bzipfs & gzipfs

A bug in the loader's bzipfs & gzipfs filesystems caused compressed
kernel and modules not to work on EFI systems with a veriexec-enabled
loader. Since the size of files in these filesystems are not known
_a priori_ stat would initialize the size to -1 and the loader would
then hang in an infinite loop while trying to seek (read) to the end
of file since the loop termination condition compares the current
offset to that negative target position.

Sponsored by: Dell EMC Isilon

(cherry picked from commit 3df4c387d2e3ca4c2391fb837540b048f60a11c2)

Details

Provenance
dabAuthored on May 24 2021, 5:12 PM
Parents
rG71b88ee39fc6: tcp: fix a RACK socket buffer lock issue
Branches
Unknown
Tags
Unknown