Linux Test Project
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: Ramesh Chhetri <rameshch@linux.ibm.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] syscalls/connect02: Handle IPV6_ADDRFORM removal and listen() EINVAL
Date: Wed, 14 Oct 2026 11:22:41 +0000	[thread overview]
Message-ID: <20261014112241.9233-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20261014075616.5050-1-rameshch@linux.ibm.com>

Hi Ramesh,

On Wed, 14 Oct 2026 09:56:16 +0200, Ramesh Chhetri wrote:
> syscalls/connect02: Handle IPV6_ADDRFORM removal and listen() EINVAL

> @@ -91,6 +91,14 @@ static void run(void)
> +			if (TST_ERR == ENOPROTOOPT || TST_ERR == EOPNOTSUPP) {
> +				tst_brk(TCONF | TTERRNO,
> +					"IPV6_ADDRFORM is removed/unsupported by this kernel");

High: A kernel containing b6f6118901d1 without 82c9ae440857 returns
ENOPROTOOPT here because its TCP branch leaves retv at -ENOPROTOOPT.
This turns the existing regression check's TFAIL into TCONF.
Distinguish removal, for example with getsockopt(IPV6_ADDRFORM) on fd
before closing it, and retain TFAIL when the option still exists.

> @@ -104,7 +112,15 @@ static void run(void)
> +			if (TST_ERR == EINVAL) {
> +				SAFE_CLOSE(fd);
> +				SAFE_CLOSE(confd1);
> +				continue;
> +			}

Medium: When 8cc3aef0cb19 rejects this transition, all 1000 iterations take
this branch and the function reports TPASS without reaching the second
connect()/accept() that exercises CVE-2018-9568.
Report TCONF when the transition is unavailable instead of silently
continuing to a pass.

Verdict - Needs revision

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2026-10-14 11:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14  7:56 [LTP] [PATCH v1] syscalls/connect02: Handle IPV6_ADDRFORM removal and listen() EINVAL Ramesh Chhetri
2026-10-14 11:22 ` linuxtestproject.agent [this message]

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=20261014112241.9233-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=ltp@lists.linux.it \
    --cc=rameshch@linux.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox