Subject: bin/37373: cgdconfig "iterations" parsing bug on -current
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <mm_lists@pulsar-zone.net>
List: netbsd-bugs
Date: 11/12/2007 23:30:00
>Number: 37373
>Category: bin
>Synopsis: cgdconfig "iterations" parsing bug on -current
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 12 23:30:00 +0000 2007
>Originator: Matthew Mondor
>Release: 4.99.35
>Organization:
Pulsar-Zone
>Environment:
NetBSD sat.xisop 4.99.35 NetBSD 4.99.35 (GENERIC_LAPTOP_MM) #3: Mon Nov 12 02:07:25 EST 2007 root@sat.xisop:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP_MM i386
>Description:
cgdconfig appears to fail to obtain the iterations count from the cgd configuration file (at least for sha1). This might be related to a recent conversion from signed int to unsigned size_t.
--- (pts/8) root@sat.xisop # cgdconfig cgd1 /dev/vnd0d
cgdconfig: keygen pkcs5_pbkdf2/sha1 must provide `iterations'
cgdconfig: params invalid
Related to: http://marc.info/?l=netbsd-source-changes&m=119431730314073&w=2
>How-To-Repeat:
Attempt to configure a CGD device which is known to work with netbsd >= 3 && < 4.99.34.
>Fix:
I checked the diffs but couldn't locate the problem at first glance. More investigation is needed.