git: sys/vfs/hammer2: Fail mount if root volume was not specified

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Sep 11 16:53:48 PDT 2022


commit b108516224faaaf2f0acf2bd52fb1e8a6cb3fec9
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Mon Sep 12 00:12:04 2022 -0700

    sys/vfs/hammer2: Fail mount if root volume was not specified
    
    If !rootvoldata->version, root volume was never specified which is invalid.
    This prevents panic (in hammer2_verify_volumes_1() via vol->dev->path dereference)
    on attempt to mount only non-root volumes.

Summary of changes:
 sys/vfs/hammer2/hammer2_ondisk.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list