[Bug 208305] [patch] geli(8): Negative iterations values dumped incorrectly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Mar 26 11:03:33 UTC 2016


            Bug ID: 208305
           Summary: [patch] geli(8): Negative iterations values dumped
           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 at FreeBSD.org
          Reporter: fk at fabiankeil.de
          Keywords: patch

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

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

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

    [fk at 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

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

More information about the freebsd-bugs mailing list