kernel - Fix UFS bug on filesystem full conditions
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 30 Mar 2018 05:12:35 +0000 (22:12 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 30 Mar 2018 05:12:35 +0000 (22:12 -0700)
commitee4e54d22da898599e2fcd6b95cfc34cd531d1ac
tree61e3d452fc3de8275898c3ffa4206e7885e090e3
parent6fd380c22bc66887486a4f959f6198e7f7bb3d9c
kernel - Fix UFS bug on filesystem full conditions

* UFS was not properly translating the lbn to a block offset
  when trying to back-out an indirect block allocation during
  a write() which fails due to lack of space.

* Fixes a panic which could occur in the above situation.

Reported-by: Aaron LI
sys/vfs/ufs/ffs_balloc.c