Commit 81bc949f authored by Sabrina Dubroca's avatar Sabrina Dubroca Committed by Paolo Abeni
Browse files

selftests: tls: add a selftest for wrapping rec_seq



Set the initial rec_seq to 0xffffffffffffffff so that it wraps
immediately. The send() call should fail with EBADMSG.

A bug in this code was fixed in commit cfaa80c9 ("net/tls: do not
free tls_rec on async operation in bpf_exec_tx_verdict()").

Signed-off-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20775fcfd0371422921ee60a42de170c0398ac10.1729244987.git.sd@queasysnail.net


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 8b448f0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment