Re: [LTP] [PATCH v1 1/1] ioctl_pidfd06: expect EREMOTE for PIDFD_GET_INFO across pidns

Jan Polensky
2026-02-19T15:59:35Z

On Thu, Feb 19, 2026 at 09:49:20AM +0100, Andrea Cervesato wrote:

>
> This is a tricky situation where we might use both approaches.
> TST_EXP_FAIL_ARR() would be my first go, but it's also true that the
> syscall should not fail with EREMOTE for un-patched kernels. We should
> expect that kernel fails with ESRCH. And we don't want to hide bugs.
>
> Anyway..
>
> We also don't have ways to verify if the underlying kernel has been
> patched or not, so we should assume that any kernel might receive this
> backported patch and TST_EXP_FAIL_ARR() remains the only logical
> solution for this test.
>
[snip]
>
> Also, since this is a new feature which has not been merged yet,
> we should tag the patch with [STAGING] tag in the git commit subject as
> per:
>
> https://linux-test-project.readthedocs.io/en/latest/developers/ground_rules.html#kernel-features-and-rcs
>
> --
> Andrea Cervesato
> SUSE QE Automation Engineer Linux
> andrea.cervesato@suse.com
>
Hi Petr,
thank you very much for your detailed feedback. Your notes helped improve
my understanding, and I really appreciate the time and effort you put
into the review.

Hi Andrea,
thanks a lot for your suggestions as well.

I followed your suggestions as closely as possible and will send a v2
next.

Best regards,
Jan