From: Sven Schnelle <svens@linux.ibm.com>
To: Mateusz Guzik <mjguzik@gmail.com>
Cc: Mark Brown <broonie@kernel.org>,
Christian Brauner <brauner@kernel.org>,
Jann Horn <jannh@google.com>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: Test failure from "file: convert to SLAB_TYPESAFE_BY_RCU"
Date: Fri, 06 Oct 2023 14:54:04 +0200 [thread overview]
Message-ID: <yt9d4jj3zzbn.fsf@linux.ibm.com> (raw)
In-Reply-To: <ZR//+QDRI3sBpqY4@f> (Mateusz Guzik's message of "Fri, 6 Oct 2023 14:39:21 +0200")
Mateusz Guzik <mjguzik@gmail.com> writes:
> On Fri, Oct 06, 2023 at 11:19:58AM +0200, Sven Schnelle wrote:
>> I'm seeing the same with the strace test-suite on s390. The problem is
>> that /proc/*/fd now contains the file descriptors of the calling
>> process, and not the target process.
>>
>
> This is why:
>
> +static inline struct file *files_lookup_fdget_rcu(struct files_struct *files, unsigned int fd)
> +{
> + RCU_LOCKDEP_WARN(!rcu_read_lock_held(),
> + "suspicious rcu_dereference_check() usage");
> + return lookup_fdget_rcu(fd);
> +}
>
> files argument is now thrown away, instead it always uses current.
Yes, passing files to lookup_fdget_rcu() fixes the issue.
next prev parent reply other threads:[~2023-10-06 13:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-06 0:04 Test failure from "file: convert to SLAB_TYPESAFE_BY_RCU" Mark Brown
2023-10-06 8:38 ` Christian Brauner
2023-10-06 19:47 ` Christian Brauner
2023-10-06 9:19 ` Sven Schnelle
2023-10-06 12:39 ` Mateusz Guzik
2023-10-06 12:54 ` Sven Schnelle [this message]
2023-10-06 13:21 ` Mateusz Guzik
2023-10-06 19:49 ` Christian Brauner
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=yt9d4jj3zzbn.fsf@linux.ibm.com \
--to=svens@linux.ibm.com \
--cc=brauner@kernel.org \
--cc=broonie@kernel.org \
--cc=jannh@google.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjguzik@gmail.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 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.