From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 2/2] af_alg08: Allow recv() to return EINVAL
Date: Tue, 12 May 2026 20:00:37 +0200 [thread overview]
Message-ID: <20260512180037.GB46809@pevik> (raw)
In-Reply-To: <20260512162735.80055-2-mdoucha@suse.cz>
> Recent kernels return EBADMSG from recv() when the crypto operation
> fails. However, older kernels return EINVAL instead. Accept both
> errno values.
...
> +++ b/testcases/kernel/crypto/af_alg08.c
> @@ -60,6 +60,10 @@ static int algfd = -1;
> static int reqfd = -1;
> static int pipefd[2] = { -1, -1 };
> static int file_fd = -1;
> +static const int exp_errnos[] = {
> + EBADMSG,
> + EINVAL
I'm also ok with not detecting kernel version because this is not a subject of
testing. I guess that's the rule for question "when to bother with kernel
version check for specific errno". Maybe we should mention it in the test macro
doc.
Anyway, merged.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-05-12 18:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 16:27 [LTP] [PATCH 1/2] Add TST_EXP_FAIL_ARR_SILENT() helper macros Martin Doucha
2026-05-12 16:27 ` [LTP] [PATCH 2/2] af_alg08: Allow recv() to return EINVAL Martin Doucha
2026-05-12 16:40 ` Cyril Hrubis
2026-05-12 18:00 ` Petr Vorel [this message]
2026-05-12 16:40 ` [LTP] [PATCH 1/2] Add TST_EXP_FAIL_ARR_SILENT() helper macros Cyril Hrubis
2026-05-12 17:58 ` Petr Vorel
2026-05-12 17:16 ` [LTP] " linuxtestproject.agent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260512180037.GB46809@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=mdoucha@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.