]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/tls: add test for sleeping even though there is data
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 24 May 2019 17:34:33 +0000 (10:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 May 2019 04:47:13 +0000 (21:47 -0700)
commit043556d0917a1a5ea58795fe1656a2bce06d2649
treece4abde20c9401e00bad96673194800c018a4cff
parent04b25a5411f966c2e586909a8496553b71876fae
selftests/tls: add test for sleeping even though there is data

Add a test which sends 15 bytes of data, and then tries
to read 10 byes twice.  Previously the second read would
sleep indifinitely, since the record was already decrypted
and there is only 5 bytes left, not full 10.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tls.c