Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Daniel P. Berrange
On Mon, Sep 19, 2016 at 03:50:00PM +0100, Daniel P. Berrange wrote:
> On Mon, Sep 19, 2016 at 03:36:38PM +0100, Peter Maydell wrote:
> > On 19 September 2016 at 12:44, Daniel P. Berrange  
> > wrote:
> > > The following changes since commit 
> > > 0f2fa73ba0ca19ebdaccf0d1785583d6601411b6:
> > >
> > >   Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into 
> > > staging (2016-09-19 11:23:20 +0100)
> > >
> > > are available in the git repository at:
> > >
> > >   git://github.com/berrange/qemu tags/pull-qcrypto-2016-09-19-1
> > >
> > > for you to fetch changes up to 7b1f229a860fa98258a345923dd35df1097838b2:
> > >
> > >   crypto: add trace points for TLS cert verification (2016-09-19 12:22:22 
> > > +0100)
> > >
> > > 
> > > Merge qcrypto 2016/09/19 v1
> > >
> > > 
> > > Daniel P. Berrange (8):
> > >   crypto: use uint64_t for pbkdf iteration count parameters
> > >   crypto: make PBKDF iterations configurable for LUKS format
> > >   crypto: clear out buffer after timing pbkdf algorithm
> > >   crypto: use correct derived key size when timing pbkdf
> > >   crypto: remove bogus /= 2 for pbkdf iterations
> > >   crypto: increase default pbkdf2 time for luks to 2 seconds
> > >   crypto: support more hash algorithms for pbkdf
> > >   crypto: add trace points for TLS cert verification
> > 
> > Fails to build with format string error, I'm afraid:
> > 
> > /home/petmay01/qemu/crypto/pbkdf-gcrypt.c: In function 'qcrypto_pbkdf2':
> > /home/petmay01/qemu/crypto/pbkdf-gcrypt.c:61:9: error: format '%u'
> > expects argument of type 'unsigned int', but argument 8 has type 'long
> > unsigned int' [-Werror=format=]
> >  error_setg_errno(errp, ERANGE,
> >  ^
> > 
> > (32-bit and 64-bit ARM.)
> 
> Opps, will send a v2 shortly.

Turned out to be a trivial typo  - '%ul' insead of '%lu' in the format
string, so fixed in the v2.

Regards,
Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Daniel P. Berrange
On Mon, Sep 19, 2016 at 03:36:38PM +0100, Peter Maydell wrote:
> On 19 September 2016 at 12:44, Daniel P. Berrange  wrote:
> > The following changes since commit 0f2fa73ba0ca19ebdaccf0d1785583d6601411b6:
> >
> >   Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging 
> > (2016-09-19 11:23:20 +0100)
> >
> > are available in the git repository at:
> >
> >   git://github.com/berrange/qemu tags/pull-qcrypto-2016-09-19-1
> >
> > for you to fetch changes up to 7b1f229a860fa98258a345923dd35df1097838b2:
> >
> >   crypto: add trace points for TLS cert verification (2016-09-19 12:22:22 
> > +0100)
> >
> > 
> > Merge qcrypto 2016/09/19 v1
> >
> > 
> > Daniel P. Berrange (8):
> >   crypto: use uint64_t for pbkdf iteration count parameters
> >   crypto: make PBKDF iterations configurable for LUKS format
> >   crypto: clear out buffer after timing pbkdf algorithm
> >   crypto: use correct derived key size when timing pbkdf
> >   crypto: remove bogus /= 2 for pbkdf iterations
> >   crypto: increase default pbkdf2 time for luks to 2 seconds
> >   crypto: support more hash algorithms for pbkdf
> >   crypto: add trace points for TLS cert verification
> 
> Fails to build with format string error, I'm afraid:
> 
> /home/petmay01/qemu/crypto/pbkdf-gcrypt.c: In function 'qcrypto_pbkdf2':
> /home/petmay01/qemu/crypto/pbkdf-gcrypt.c:61:9: error: format '%u'
> expects argument of type 'unsigned int', but argument 8 has type 'long
> unsigned int' [-Werror=format=]
>  error_setg_errno(errp, ERANGE,
>  ^
> 
> (32-bit and 64-bit ARM.)

Opps, will send a v2 shortly.

Regards,
Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Peter Maydell
On 19 September 2016 at 12:44, Daniel P. Berrange  wrote:
> The following changes since commit 0f2fa73ba0ca19ebdaccf0d1785583d6601411b6:
>
>   Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging 
> (2016-09-19 11:23:20 +0100)
>
> are available in the git repository at:
>
>   git://github.com/berrange/qemu tags/pull-qcrypto-2016-09-19-1
>
> for you to fetch changes up to 7b1f229a860fa98258a345923dd35df1097838b2:
>
>   crypto: add trace points for TLS cert verification (2016-09-19 12:22:22 
> +0100)
>
> 
> Merge qcrypto 2016/09/19 v1
>
> 
> Daniel P. Berrange (8):
>   crypto: use uint64_t for pbkdf iteration count parameters
>   crypto: make PBKDF iterations configurable for LUKS format
>   crypto: clear out buffer after timing pbkdf algorithm
>   crypto: use correct derived key size when timing pbkdf
>   crypto: remove bogus /= 2 for pbkdf iterations
>   crypto: increase default pbkdf2 time for luks to 2 seconds
>   crypto: support more hash algorithms for pbkdf
>   crypto: add trace points for TLS cert verification

Fails to build with format string error, I'm afraid:

/home/petmay01/qemu/crypto/pbkdf-gcrypt.c: In function 'qcrypto_pbkdf2':
/home/petmay01/qemu/crypto/pbkdf-gcrypt.c:61:9: error: format '%u'
expects argument of type 'unsigned int', but argument 8 has type 'long
unsigned int' [-Werror=format=]
 error_setg_errno(errp, ERANGE,
 ^

(32-bit and 64-bit ARM.)

thanks
-- PMM



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Peter Maydell
On 19 September 2016 at 14:10, Daniel P. Berrange  wrote:
> On Mon, Sep 19, 2016 at 02:01:59PM +0100, Peter Maydell wrote:
>> But in general I think that
>> "#if 0" should be an error because there's not really any
>> good reason for it. For instance in this case there's no
>> explanation anywhere in the file of why these particular
>> test cases are disabled or in what circumstances they might
>> ever in future be enabled. If there's a case for the code being
>> possibly enabled at compile time locally or in the future then
>> #if SOMETHING (like the #ifdef DEBUG checks) with some comment
>> explaining the situation; if there isn't then the code doesn't
>> need to be there at all.
>
> The data in the test file is a conversion of test data from
> cryptsetup. Some are disabled since we don't support the
> particular hash algorithms yet, but I've been enabling more,
> as in this patch series. IMHO the '#if 0' is appropriate as
> this is a marker for future todo items, and if I had deleted
> the code as suggested, then whoever adds the extra algorithms
> in the future will have to go and find the original test data,
> and do a data conversion of it again which is just a waste of
> their time.

That sounds like it should fall under "#if SOMETHING plus a
comment about why it's there", then.

thanks
-- PMM



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Fam Zheng
On Mon, 09/19 14:01, Peter Maydell wrote:
> On 19 September 2016 at 13:47, Daniel P. Berrange  wrote:
> > On Mon, Sep 19, 2016 at 05:33:57AM -0700, 
> > no-re...@ec2-52-6-146-230.compute-1.amazonaws.com wrote:
> >> Hi,
> >>
> >> Your series seems to have some coding style problems. See output below for
> >> more information:
> >>
> >> Type: series
> >> Subject: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19
> >> Message-id: 1474285452-6166-1-git-send-email-berra...@redhat.com
> >>
> >> === TEST SCRIPT BEGIN ===
> >> #!/bin/bash
> >>
> >> BASE=base
> >> n=1
> >> total=$(git log --oneline $BASE.. | wc -l)
> >> failed=0
> >>
> >> # Useful git options
> >> git config --local diff.renamelimit 0
> >> git config --local diff.renames True
> >>
> >> commits="$(git log --format=%H --reverse $BASE..)"
> >> for c in $commits; do
> >> echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s 
> >> $c)..."
> >> if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback 
> >> -; then
> >> failed=1
> >> echo
> >> fi
> >> n=$((n+1))
> >> done
> >>
> >> exit $failed
> >> === TEST SCRIPT END ===
> >>
> >> Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
> >> Switched to a new branch 'test'
> >> bdd8574 crypto: add trace points for TLS cert verification
> >> a5218f2 crypto: support more hash algorithms for pbkdf
> >> 4483f4e crypto: increase default pbkdf2 time for luks to 2 seconds
> >> c75443a crypto: remove bogus /= 2 for pbkdf iterations
> >> 61e0f1a crypto: use correct derived key size when timing pbkdf
> >> 616fc7b crypto: clear out buffer after timing pbkdf algorithm
> >> d4a7ad1 crypto: make PBKDF iterations configurable for LUKS format
> >> f56a5e3 crypto: use uint64_t for pbkdf iteration count parameters
> >>
> >> === OUTPUT BEGIN ===
> >> Checking PATCH 1/8: crypto: use uint64_t for pbkdf iteration count 
> >> parameters...
> >> Checking PATCH 2/8: crypto: make PBKDF iterations configurable for LUKS 
> >> format...
> >> Checking PATCH 3/8: crypto: clear out buffer after timing pbkdf 
> >> algorithm...
> >> Checking PATCH 4/8: crypto: use correct derived key size when timing 
> >> pbkdf...
> >> Checking PATCH 5/8: crypto: remove bogus /= 2 for pbkdf iterations...
> >> Checking PATCH 6/8: crypto: increase default pbkdf2 time for luks to 2 
> >> seconds...
> >> Checking PATCH 7/8: crypto: support more hash algorithms for pbkdf...
> >> ERROR: if this code is redundant consider removing it
> >> #222: FILE: tests/test-crypto-pbkdf.c:332:
> >> +#if 0
> >>
> >> total: 1 errors, 0 warnings, 194 lines checked
> >
> > Peter, FWIW, I know about this style check error and I'm intentionally
> > ignoring it as I consider it a false positive. IMHO we should probably
> > downgrade that style check to a WARNING, not an ERROR. The message itself
> > is indicating that maintainers have discretion to ignore it and thus it
> > shouldn't be an error.
> 
> Well, I don't in general look at patchew complaints on pull
> requests (we should probably make it stop sending them) on
> the basis that the maintainer should have already done that
> before accepting the patches.

Please keep in mind if a series was based on a maintainer tree or another
pending series, it would fail to apply it thus skip the testing and stay quiet;
pull requests on the contrary can be applied to master reliably. Therefore, I'm
not sure about stoping that.

Fam



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Daniel P. Berrange
On Mon, Sep 19, 2016 at 02:01:59PM +0100, Peter Maydell wrote:
> On 19 September 2016 at 13:47, Daniel P. Berrange  wrote:
> > On Mon, Sep 19, 2016 at 05:33:57AM -0700, 
> > no-re...@ec2-52-6-146-230.compute-1.amazonaws.com wrote:
> >> Hi,
> >>
> >> Your series seems to have some coding style problems. See output below for
> >> more information:
> >>
> >> Type: series
> >> Subject: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19
> >> Message-id: 1474285452-6166-1-git-send-email-berra...@redhat.com
> >>
> >> === TEST SCRIPT BEGIN ===
> >> #!/bin/bash
> >>
> >> BASE=base
> >> n=1
> >> total=$(git log --oneline $BASE.. | wc -l)
> >> failed=0
> >>
> >> # Useful git options
> >> git config --local diff.renamelimit 0
> >> git config --local diff.renames True
> >>
> >> commits="$(git log --format=%H --reverse $BASE..)"
> >> for c in $commits; do
> >> echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s 
> >> $c)..."
> >> if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback 
> >> -; then
> >> failed=1
> >> echo
> >> fi
> >> n=$((n+1))
> >> done
> >>
> >> exit $failed
> >> === TEST SCRIPT END ===
> >>
> >> Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
> >> Switched to a new branch 'test'
> >> bdd8574 crypto: add trace points for TLS cert verification
> >> a5218f2 crypto: support more hash algorithms for pbkdf
> >> 4483f4e crypto: increase default pbkdf2 time for luks to 2 seconds
> >> c75443a crypto: remove bogus /= 2 for pbkdf iterations
> >> 61e0f1a crypto: use correct derived key size when timing pbkdf
> >> 616fc7b crypto: clear out buffer after timing pbkdf algorithm
> >> d4a7ad1 crypto: make PBKDF iterations configurable for LUKS format
> >> f56a5e3 crypto: use uint64_t for pbkdf iteration count parameters
> >>
> >> === OUTPUT BEGIN ===
> >> Checking PATCH 1/8: crypto: use uint64_t for pbkdf iteration count 
> >> parameters...
> >> Checking PATCH 2/8: crypto: make PBKDF iterations configurable for LUKS 
> >> format...
> >> Checking PATCH 3/8: crypto: clear out buffer after timing pbkdf 
> >> algorithm...
> >> Checking PATCH 4/8: crypto: use correct derived key size when timing 
> >> pbkdf...
> >> Checking PATCH 5/8: crypto: remove bogus /= 2 for pbkdf iterations...
> >> Checking PATCH 6/8: crypto: increase default pbkdf2 time for luks to 2 
> >> seconds...
> >> Checking PATCH 7/8: crypto: support more hash algorithms for pbkdf...
> >> ERROR: if this code is redundant consider removing it
> >> #222: FILE: tests/test-crypto-pbkdf.c:332:
> >> +#if 0
> >>
> >> total: 1 errors, 0 warnings, 194 lines checked
> >
> > Peter, FWIW, I know about this style check error and I'm intentionally
> > ignoring it as I consider it a false positive. IMHO we should probably
> > downgrade that style check to a WARNING, not an ERROR. The message itself
> > is indicating that maintainers have discretion to ignore it and thus it
> > shouldn't be an error.
> 
> Well, I don't in general look at patchew complaints on pull
> requests (we should probably make it stop sending them) on
> the basis that the maintainer should have already done that
> before accepting the patches. But in general I think that
> "#if 0" should be an error because there's not really any
> good reason for it. For instance in this case there's no
> explanation anywhere in the file of why these particular
> test cases are disabled or in what circumstances they might
> ever in future be enabled. If there's a case for the code being
> possibly enabled at compile time locally or in the future then
> #if SOMETHING (like the #ifdef DEBUG checks) with some comment
> explaining the situation; if there isn't then the code doesn't
> need to be there at all.

The data in the test file is a conversion of test data from
cryptsetup. Some are disabled since we don't support the
particular hash algorithms yet, but I've been enabling more,
as in this patch series. IMHO the '#if 0' is appropriate as
this is a marker for future todo items, and if I had deleted
the code as suggested, then whoever adds the extra algorithms
in the future will have to go and find the original test data,
and do a data conversion of it again which is just a waste of
their time.

Regards,
Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Peter Maydell
On 19 September 2016 at 13:47, Daniel P. Berrange  wrote:
> On Mon, Sep 19, 2016 at 05:33:57AM -0700, 
> no-re...@ec2-52-6-146-230.compute-1.amazonaws.com wrote:
>> Hi,
>>
>> Your series seems to have some coding style problems. See output below for
>> more information:
>>
>> Type: series
>> Subject: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19
>> Message-id: 1474285452-6166-1-git-send-email-berra...@redhat.com
>>
>> === TEST SCRIPT BEGIN ===
>> #!/bin/bash
>>
>> BASE=base
>> n=1
>> total=$(git log --oneline $BASE.. | wc -l)
>> failed=0
>>
>> # Useful git options
>> git config --local diff.renamelimit 0
>> git config --local diff.renames True
>>
>> commits="$(git log --format=%H --reverse $BASE..)"
>> for c in $commits; do
>> echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
>> if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; 
>> then
>> failed=1
>> echo
>> fi
>> n=$((n+1))
>> done
>>
>> exit $failed
>> === TEST SCRIPT END ===
>>
>> Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
>> Switched to a new branch 'test'
>> bdd8574 crypto: add trace points for TLS cert verification
>> a5218f2 crypto: support more hash algorithms for pbkdf
>> 4483f4e crypto: increase default pbkdf2 time for luks to 2 seconds
>> c75443a crypto: remove bogus /= 2 for pbkdf iterations
>> 61e0f1a crypto: use correct derived key size when timing pbkdf
>> 616fc7b crypto: clear out buffer after timing pbkdf algorithm
>> d4a7ad1 crypto: make PBKDF iterations configurable for LUKS format
>> f56a5e3 crypto: use uint64_t for pbkdf iteration count parameters
>>
>> === OUTPUT BEGIN ===
>> Checking PATCH 1/8: crypto: use uint64_t for pbkdf iteration count 
>> parameters...
>> Checking PATCH 2/8: crypto: make PBKDF iterations configurable for LUKS 
>> format...
>> Checking PATCH 3/8: crypto: clear out buffer after timing pbkdf algorithm...
>> Checking PATCH 4/8: crypto: use correct derived key size when timing pbkdf...
>> Checking PATCH 5/8: crypto: remove bogus /= 2 for pbkdf iterations...
>> Checking PATCH 6/8: crypto: increase default pbkdf2 time for luks to 2 
>> seconds...
>> Checking PATCH 7/8: crypto: support more hash algorithms for pbkdf...
>> ERROR: if this code is redundant consider removing it
>> #222: FILE: tests/test-crypto-pbkdf.c:332:
>> +#if 0
>>
>> total: 1 errors, 0 warnings, 194 lines checked
>
> Peter, FWIW, I know about this style check error and I'm intentionally
> ignoring it as I consider it a false positive. IMHO we should probably
> downgrade that style check to a WARNING, not an ERROR. The message itself
> is indicating that maintainers have discretion to ignore it and thus it
> shouldn't be an error.

Well, I don't in general look at patchew complaints on pull
requests (we should probably make it stop sending them) on
the basis that the maintainer should have already done that
before accepting the patches. But in general I think that
"#if 0" should be an error because there's not really any
good reason for it. For instance in this case there's no
explanation anywhere in the file of why these particular
test cases are disabled or in what circumstances they might
ever in future be enabled. If there's a case for the code being
possibly enabled at compile time locally or in the future then
#if SOMETHING (like the #ifdef DEBUG checks) with some comment
explaining the situation; if there isn't then the code doesn't
need to be there at all.

(This doesn't mean I'm rejecting this pull request.)

thanks
-- PMM



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread Daniel P. Berrange
On Mon, Sep 19, 2016 at 05:33:57AM -0700, 
no-re...@ec2-52-6-146-230.compute-1.amazonaws.com wrote:
> Hi,
> 
> Your series seems to have some coding style problems. See output below for
> more information:
> 
> Type: series
> Subject: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19
> Message-id: 1474285452-6166-1-git-send-email-berra...@redhat.com
> 
> === TEST SCRIPT BEGIN ===
> #!/bin/bash
> 
> BASE=base
> n=1
> total=$(git log --oneline $BASE.. | wc -l)
> failed=0
> 
> # Useful git options
> git config --local diff.renamelimit 0
> git config --local diff.renames True
> 
> commits="$(git log --format=%H --reverse $BASE..)"
> for c in $commits; do
> echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
> if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; 
> then
> failed=1
> echo
> fi
> n=$((n+1))
> done
> 
> exit $failed
> === TEST SCRIPT END ===
> 
> Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
> Switched to a new branch 'test'
> bdd8574 crypto: add trace points for TLS cert verification
> a5218f2 crypto: support more hash algorithms for pbkdf
> 4483f4e crypto: increase default pbkdf2 time for luks to 2 seconds
> c75443a crypto: remove bogus /= 2 for pbkdf iterations
> 61e0f1a crypto: use correct derived key size when timing pbkdf
> 616fc7b crypto: clear out buffer after timing pbkdf algorithm
> d4a7ad1 crypto: make PBKDF iterations configurable for LUKS format
> f56a5e3 crypto: use uint64_t for pbkdf iteration count parameters
> 
> === OUTPUT BEGIN ===
> Checking PATCH 1/8: crypto: use uint64_t for pbkdf iteration count 
> parameters...
> Checking PATCH 2/8: crypto: make PBKDF iterations configurable for LUKS 
> format...
> Checking PATCH 3/8: crypto: clear out buffer after timing pbkdf algorithm...
> Checking PATCH 4/8: crypto: use correct derived key size when timing pbkdf...
> Checking PATCH 5/8: crypto: remove bogus /= 2 for pbkdf iterations...
> Checking PATCH 6/8: crypto: increase default pbkdf2 time for luks to 2 
> seconds...
> Checking PATCH 7/8: crypto: support more hash algorithms for pbkdf...
> ERROR: if this code is redundant consider removing it
> #222: FILE: tests/test-crypto-pbkdf.c:332:
> +#if 0
> 
> total: 1 errors, 0 warnings, 194 lines checked

Peter, FWIW, I know about this style check error and I'm intentionally
ignoring it as I consider it a false positive. IMHO we should probably
downgrade that style check to a WARNING, not an ERROR. The message itself
is indicating that maintainers have discretion to ignore it and thus it
shouldn't be an error.

Regards,
Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|



Re: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread no-reply
Hi,

Your series seems to have some coding style problems. See output below for
more information:

Type: series
Subject: [Qemu-devel] [PULL v1 0/8] Merge qcrypto 2016/09/19
Message-id: 1474285452-6166-1-git-send-email-berra...@redhat.com

=== TEST SCRIPT BEGIN ===
#!/bin/bash

BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0

# Useful git options
git config --local diff.renamelimit 0
git config --local diff.renames True

commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))
done

exit $failed
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
bdd8574 crypto: add trace points for TLS cert verification
a5218f2 crypto: support more hash algorithms for pbkdf
4483f4e crypto: increase default pbkdf2 time for luks to 2 seconds
c75443a crypto: remove bogus /= 2 for pbkdf iterations
61e0f1a crypto: use correct derived key size when timing pbkdf
616fc7b crypto: clear out buffer after timing pbkdf algorithm
d4a7ad1 crypto: make PBKDF iterations configurable for LUKS format
f56a5e3 crypto: use uint64_t for pbkdf iteration count parameters

=== OUTPUT BEGIN ===
Checking PATCH 1/8: crypto: use uint64_t for pbkdf iteration count parameters...
Checking PATCH 2/8: crypto: make PBKDF iterations configurable for LUKS 
format...
Checking PATCH 3/8: crypto: clear out buffer after timing pbkdf algorithm...
Checking PATCH 4/8: crypto: use correct derived key size when timing pbkdf...
Checking PATCH 5/8: crypto: remove bogus /= 2 for pbkdf iterations...
Checking PATCH 6/8: crypto: increase default pbkdf2 time for luks to 2 
seconds...
Checking PATCH 7/8: crypto: support more hash algorithms for pbkdf...
ERROR: if this code is redundant consider removing it
#222: FILE: tests/test-crypto-pbkdf.c:332:
+#if 0

total: 1 errors, 0 warnings, 194 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Checking PATCH 8/8: crypto: add trace points for TLS cert verification...
=== OUTPUT END ===

Test command exited with code: 1


---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-de...@freelists.org