git: hammer2 - Fix stack blowout in lookup iteration

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Mar 7 21:50:52 PST 2014


commit c9bda9e78d9ed14cd9268f2914f8a39f2f09180c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Mar 7 21:49:30 2014 -0800

    hammer2 - Fix stack blowout in lookup iteration
    
    * hammer2_chain_lookup()->hammer2_chain_next()->hammer2_chain_lookup()
      stacking could blow out the kernel stack.
    
    * Inline the iteration within hammer2_chain_lookup() when the lookup runs
      out of blockrefs without finding anything at the current level, instead
      of having it call hammer2_chain_next().

Summary of changes:
 sys/vfs/hammer2/hammer2_chain.c | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c9bda9e78d9ed14cd9268f2914f8a39f2f09180c


-- 
DragonFly BSD source repository


More information about the Commits mailing list