Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2016 11:03:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 208305] [patch] geli(8): Negative iterations values dumped incorrectly
Message-ID:  <bug-208305-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208305

            Bug ID: 208305
           Summary: [patch] geli(8): Negative iterations values dumped
                    incorrectly
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: fk@fabiankeil.de
          Keywords: patch

Created attachment 168648
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168648&action=
=3Dedit
geli(8): Dump negative iterations values properly

The attached patch lets "geli dump" display negative iterations values
properly.

An iterations value of -1 signals that no passphrase is being used.
Previously it was dumped incorrectly due to being cast to unsigned
first:

    [fk@elektrobier ~]$ geli dump /dev/ada3p3
    Metadata on /dev/ada3p3:
         magic: GEOM::ELI
       version: 7
         flags: 0x2
         ealgo: AES-XTS
        keylen: 256
      provsize: 8589934592
    sectorsize: 4096
          keys: 0x01
    iterations: 4294967295
          Salt: [...]
    Master Key: [...]
      MD5 hash: 44e17ea9c25f27dff32179bc4f82f659

Obtained from: ElectroBSD

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208305-8>