[lkml]   [2017]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2 8/8] crypto/testmgr: Allocate only the required output size for hash tests
Andy Lutomirski <> wrote:
> There are some hashes (e.g. sha224) that have some internal trickery
> to make sure that only the correct number of output bytes are
> generated. If something goes wrong, they could potentially overrun
> the output buffer.
> Make the test more robust by allocating only enough space for the
> correct output size so that memory debugging will catch the error if
> the output is overrun.
> Tested by intentionally breaking sha224 to output all 256
> internally-generated bits while running on KASAN.
> Cc: Ard Biesheuvel <>
> Cc: Herbert Xu <>
> Signed-off-by: Andy Lutomirski <>

This patch doesn't seem to depend on anything else in the series.
Do you want me to take it separately?

Email: Herbert Xu <>
Home Page:
PGP Key:

 \ /
  Last update: 2017-01-12 08:48    [W:0.106 / U:2.124 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site