]> Gentwo Git Trees - linux/.git/commit
selftests: net: tls: add tests for cmsg vs MSG_MORE
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 14 Oct 2025 09:17:01 +0000 (11:17 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Oct 2025 00:41:45 +0000 (17:41 -0700)
commitf95fce1e953b8a7af3fbad84aaffe92804196e2d
tree3abce67757009e011f38ed1f99aa186dd80e3950
parent7f846c65ca11e63d2409868ff039081f80e42ae4
selftests: net: tls: add tests for cmsg vs MSG_MORE

We don't have a test to check that MSG_MORE won't let us merge records
of different types across sendmsg calls.

Add new tests that check:
 - MSG_MORE is only allowed for DATA records
 - a pending DATA record gets closed and pushed before a non-DATA
   record is processed

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/b34feeadefe8a997f068d5ed5617afd0072df3c0.1760432043.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tls.c