All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
@ 2019-05-05  0:05 bugzilla-daemon
  2019-05-05  0:06 ` [Bug 203515] " bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-05-05  0:05 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

            Bug ID: 203515
           Summary: [crypto] alg: skcipher: p8_aes_ctr encryption test
                    failed (wrong result) on test vector 3, cfg="uneven
                    misaligned splits, may sleep"
           Product: Platform Specific/Hardware
           Version: 2.5
    Kernel Version: 5.1.0-rc7
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: PPC-64
          Assignee: platform_ppc-64@kernel-bugs.osdl.org
          Reporter: erhard_f@mailbox.org
        Regression: Yes

Created attachment 282609
  --> https://bugzilla.kernel.org/attachment.cgi?id=282609&action=edit
dmesg (5.1.0-rc7, Talos II)

Seems like some POWER8/9 specific encrytion test fails in 5.1.0-rc7. This did
not happen in 5.0.x and before.

[...]
[    5.246612] crypto_register_alg 'cbc(aes)' = 0
[    5.254268] alg: skcipher: p8_aes_ctr encryption test failed (wrong result)
on test vector 3, cfg="uneven misaligned splits, may sleep"
[    5.255266] xhci_hcd 0003:01:00.0: xHCI Host Controller
[    5.255346] xhci_hcd 0003:01:00.0: new USB bus registered, assigned bus
number 1
[    5.255522] xhci_hcd 0003:01:00.0: hcc params 0x0270f06d hci version 0x96
quirks 0x0000000004000000
[    5.256008] crypto_register_alg 'ctr(aes)' = 0
[...]

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
@ 2019-05-05  0:06 ` bugzilla-daemon
  2019-05-05 19:15 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-05-05  0:06 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

--- Comment #1 from Erhard F. (erhard_f@mailbox.org) ---
Created attachment 282611
  --> https://bugzilla.kernel.org/attachment.cgi?id=282611&action=edit
kernel .config (5.1.0-rc7, Talos II)

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
  2019-05-05  0:06 ` [Bug 203515] " bugzilla-daemon
@ 2019-05-05 19:15 ` bugzilla-daemon
  2019-05-05 19:19 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-05-05 19:15 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

Erhard F. (erhard_f@mailbox.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Kernel Version|5.1.0-rc7                   |5.1.0-rc1

--- Comment #2 from Erhard F. (erhard_f@mailbox.org) ---
Did some testing, -rc1 is already is affected.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
  2019-05-05  0:06 ` [Bug 203515] " bugzilla-daemon
  2019-05-05 19:15 ` bugzilla-daemon
@ 2019-05-05 19:19 ` bugzilla-daemon
  2019-05-06  5:49   ` Fwd: " Christophe Leroy
  2019-05-05 19:23 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 10+ messages in thread
From: bugzilla-daemon @ 2019-05-05 19:19 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

--- Comment #3 from Erhard F. (erhard_f@mailbox.org) ---
Created attachment 282623
  --> https://bugzilla.kernel.org/attachment.cgi?id=282623&action=edit
bisect.log

git-bisect found 4e7babba30d820c4195b1d58cf51dce3c22ecf2b as the 1st bad
commit:

# git bisect good | tee -a ~/bisect01.log
4e7babba30d820c4195b1d58cf51dce3c22ecf2b is the first bad commit
commit 4e7babba30d820c4195b1d58cf51dce3c22ecf2b
Author: Eric Biggers <ebiggers@google.com>
Date:   Thu Jan 31 23:51:46 2019 -0800

    crypto: testmgr - convert skcipher testing to use testvec_configs

    Convert alg_test_skcipher() to use the new test framework, adding a list
    of testvec_configs to test by default.  When the extra self-tests are
    enabled, randomly generated testvec_configs are tested as well.

    This improves skcipher test coverage mainly because now all algorithms
    have a variety of data layouts tested, whereas before each algorithm was
    responsible for declaring its own chunked test cases which were often
    missing or provided poor test coverage.  The new code also tests both
    the MAY_SLEEP and !MAY_SLEEP cases, different IV alignments, and buffers
    that cross pages.

    This has already found a bug in the arm64 ctr-aes-neonbs algorithm.
    It would have easily found many past bugs.

    I removed the skcipher chunked test vectors that were the same as
    non-chunked ones, but left the ones that were unique.

    Signed-off-by: Eric Biggers <ebiggers@google.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

:040000 040000 c533a4dce0d9954923cd56a69e0d26eeee5324a3
c199b3af7a05160aede1522c4860abae5fbe2716 M      crypto

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
                   ` (2 preceding siblings ...)
  2019-05-05 19:19 ` bugzilla-daemon
@ 2019-05-05 19:23 ` bugzilla-daemon
  2019-05-06  5:49 ` Fwd: [Bug 203515] New: " Christophe Leroy
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-05-05 19:23 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

--- Comment #4 from Erhard F. (erhard_f@mailbox.org) ---
Created attachment 282625
  --> https://bugzilla.kernel.org/attachment.cgi?id=282625&action=edit
kernel .config of the final bisect (5.0.0-rc1+, Talos II)

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Fwd: [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
                   ` (3 preceding siblings ...)
  2019-05-05 19:23 ` bugzilla-daemon
@ 2019-05-06  5:49 ` Christophe Leroy
  2019-05-06 15:51 ` [Bug 203515] " bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Christophe Leroy @ 2019-05-06  5:49 UTC (permalink / raw)
  To: Herbert Xu, linux-crypto@vger.kernel.org




-------- Message transféré --------
Sujet : [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption 
test failed (wrong result) on test vector 3, cfg="uneven misaligned 
splits, may sleep"
Date : Sun, 05 May 2019 00:05:40 +0000
De : bugzilla-daemon@bugzilla.kernel.org
Pour : linuxppc-dev@lists.ozlabs.org

https://bugzilla.kernel.org/show_bug.cgi?id=203515

             Bug ID: 203515
            Summary: [crypto] alg: skcipher: p8_aes_ctr encryption test
                     failed (wrong result) on test vector 3, cfg="uneven
                     misaligned splits, may sleep"
            Product: Platform Specific/Hardware
            Version: 2.5
     Kernel Version: 5.1.0-rc7
           Hardware: All
                 OS: Linux
               Tree: Mainline
             Status: NEW
           Severity: normal
           Priority: P1
          Component: PPC-64
           Assignee: platform_ppc-64@kernel-bugs.osdl.org
           Reporter: erhard_f@mailbox.org
         Regression: Yes

Created attachment 282609
   --> https://bugzilla.kernel.org/attachment.cgi?id=282609&action=edit
dmesg (5.1.0-rc7, Talos II)

Seems like some POWER8/9 specific encrytion test fails in 5.1.0-rc7. 
This did
not happen in 5.0.x and before.

[...]
[    5.246612] crypto_register_alg 'cbc(aes)' = 0
[    5.254268] alg: skcipher: p8_aes_ctr encryption test failed (wrong 
result)
on test vector 3, cfg="uneven misaligned splits, may sleep"
[    5.255266] xhci_hcd 0003:01:00.0: xHCI Host Controller
[    5.255346] xhci_hcd 0003:01:00.0: new USB bus registered, assigned bus
number 1
[    5.255522] xhci_hcd 0003:01:00.0: hcc params 0x0270f06d hci version 0x96
quirks 0x0000000004000000
[    5.256008] crypto_register_alg 'ctr(aes)' = 0
[...]

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Fwd: [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05 19:19 ` bugzilla-daemon
@ 2019-05-06  5:49   ` Christophe Leroy
  0 siblings, 0 replies; 10+ messages in thread
From: Christophe Leroy @ 2019-05-06  5:49 UTC (permalink / raw)
  To: Herbert Xu, linux-crypto@vger.kernel.org




-------- Message transféré --------
Sujet : [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test 
failed (wrong result) on test vector 3, cfg="uneven misaligned splits, 
may sleep"
Date : Sun, 05 May 2019 19:19:07 +0000
De : bugzilla-daemon@bugzilla.kernel.org
Pour : linuxppc-dev@lists.ozlabs.org

https://bugzilla.kernel.org/show_bug.cgi?id=203515

--- Comment #3 from Erhard F. (erhard_f@mailbox.org) ---
Created attachment 282623
   --> https://bugzilla.kernel.org/attachment.cgi?id=282623&action=edit
bisect.log

git-bisect found 4e7babba30d820c4195b1d58cf51dce3c22ecf2b as the 1st bad
commit:

# git bisect good | tee -a ~/bisect01.log
4e7babba30d820c4195b1d58cf51dce3c22ecf2b is the first bad commit
commit 4e7babba30d820c4195b1d58cf51dce3c22ecf2b
Author: Eric Biggers <ebiggers@google.com>
Date:   Thu Jan 31 23:51:46 2019 -0800

     crypto: testmgr - convert skcipher testing to use testvec_configs

     Convert alg_test_skcipher() to use the new test framework, adding a 
list
     of testvec_configs to test by default.  When the extra self-tests are
     enabled, randomly generated testvec_configs are tested as well.

     This improves skcipher test coverage mainly because now all algorithms
     have a variety of data layouts tested, whereas before each 
algorithm was
     responsible for declaring its own chunked test cases which were often
     missing or provided poor test coverage.  The new code also tests both
     the MAY_SLEEP and !MAY_SLEEP cases, different IV alignments, and 
buffers
     that cross pages.

     This has already found a bug in the arm64 ctr-aes-neonbs algorithm.
     It would have easily found many past bugs.

     I removed the skcipher chunked test vectors that were the same as
     non-chunked ones, but left the ones that were unique.

     Signed-off-by: Eric Biggers <ebiggers@google.com>
     Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

:040000 040000 c533a4dce0d9954923cd56a69e0d26eeee5324a3
c199b3af7a05160aede1522c4860abae5fbe2716 M      crypto

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
                   ` (4 preceding siblings ...)
  2019-05-06  5:49 ` Fwd: [Bug 203515] New: " Christophe Leroy
@ 2019-05-06 15:51 ` bugzilla-daemon
  2019-05-06 19:45 ` bugzilla-daemon
  2019-06-04 20:30 ` bugzilla-daemon
  7 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-05-06 15:51 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

Eric Biggers (ebiggers3@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebiggers3@gmail.com

--- Comment #5 from Eric Biggers (ebiggers3@gmail.com) ---
This is an existing bug in the VMX implementation of AES-CTR which the improved
crypto self-tests are detecting.  Apparently someone is planning to fix it:
https://marc.info/?l=linux-crypto&m=155502414423504&w=2.  That was almost a
month ago though; I'm not sure whether anyone has actually done anything yet. 
I'll send a reminder.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
                   ` (5 preceding siblings ...)
  2019-05-06 15:51 ` [Bug 203515] " bugzilla-daemon
@ 2019-05-06 19:45 ` bugzilla-daemon
  2019-06-04 20:30 ` bugzilla-daemon
  7 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-05-06 19:45 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

--- Comment #6 from Erhard F. (erhard_f@mailbox.org) ---
(In reply to Eric Biggers from comment #5)
> [...] That was almost a month ago though; I'm not sure whether anyone has
> actually done anything yet.  I'll send a reminder.
Thanks! Apparently not, the newly released 5.1.0 is still affected.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 203515] [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep"
  2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
                   ` (6 preceding siblings ...)
  2019-05-06 19:45 ` bugzilla-daemon
@ 2019-06-04 20:30 ` bugzilla-daemon
  7 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2019-06-04 20:30 UTC (permalink / raw)
  To: linuxppc-dev

https://bugzilla.kernel.org/show_bug.cgi?id=203515

Erhard F. (erhard_f@mailbox.org) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #7 from Erhard F. (erhard_f@mailbox.org) ---
The fix trickled down from mainline to stable. 5.1.7 passes tests now:

$ dmesg | grep -i aes
[    4.902294] crypto_register_alg 'aes' = 0
[    4.928003] crypto_register_alg 'cbc(aes)' = 0
[    4.944002] crypto_register_alg 'ctr(aes)' = 0
[    5.011290] crypto_register_alg 'xts(aes)' = 0

Thanks!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-04 20:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-05  0:05 [Bug 203515] New: [crypto] alg: skcipher: p8_aes_ctr encryption test failed (wrong result) on test vector 3, cfg="uneven misaligned splits, may sleep" bugzilla-daemon
2019-05-05  0:06 ` [Bug 203515] " bugzilla-daemon
2019-05-05 19:15 ` bugzilla-daemon
2019-05-05 19:19 ` bugzilla-daemon
2019-05-06  5:49   ` Fwd: " Christophe Leroy
2019-05-05 19:23 ` bugzilla-daemon
2019-05-06  5:49 ` Fwd: [Bug 203515] New: " Christophe Leroy
2019-05-06 15:51 ` [Bug 203515] " bugzilla-daemon
2019-05-06 19:45 ` bugzilla-daemon
2019-06-04 20:30 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.