git: hammer2 - Handle error path in certain freemap sequences

Matthew Dillon dillon at crater.dragonflybsd.org
Thu May 7 22:31:44 PDT 2026


commit 2925b96d0a1e1289cbdfe4e3d36532e72b1a2bee
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed May 6 22:09:30 2026 -0700

    hammer2 - Handle error path in certain freemap sequences
    
    * Portions of the freemap handling code issue hammer2_chain_modify()
      but do not process a non-zero error return.
    
    * Generally speaking, because freemap blocks are algorithmically
      allocated and non dynamically allocated, the "allocation" can not
      fail.  But it is possible to contrive situations where the freemap
      is corrupted to the point where it does.
    
      Process the error path(s) anyway
    
    Reported-by: afranke (Andreas Franke) using AI operational analysis
    DragonFly-PR: 3407

Summary of changes:
 sys/vfs/hammer2/hammer2_freemap.c | 45 ++++++++++++++++++++++++++++++---------
 1 file changed, 35 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2925b96d0a1e1289cbdfe4e3d36532e72b1a2bee


-- 
DragonFly BSD source repository


More information about the Commits mailing list