mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Jialin Wang <wjl.linux@gmail.com>
Cc: Penglei Jiang <superman.xpt@gmail.com>,
	linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] proc: proc_maps_open allow proc_mem_open to return NULL
Date: Thu, 7 Aug 2025 15:46:06 -0700	[thread overview]
Message-ID: <20250807154606.131d96b133c19baca0c5f2e6@linux-foundation.org> (raw)
In-Reply-To: <20250807165455.73656-1-wjl.linux@gmail.com>

On Fri,  8 Aug 2025 00:54:55 +0800 Jialin Wang <wjl.linux@gmail.com> wrote:

> The commit 65c66047259f ("proc: fix the issue of proc_mem_open returning NULL")
> breaks `perf record -g -p PID` when profiling a kernel thread.
> 
> The strace of `perf record -g -p $(pgrep kswapd0)` shows:
> 
>   openat(AT_FDCWD, "/proc/65/task/65/maps", O_RDONLY) = -1 ESRCH (No such process)
> 
> This patch partially reverts the commit to fix it.

Thanks.  But "breaks" is a rather thin description of the problem!

Can you please describe the observed misbehavior fully?

> Fixes: 65c66047259f ("proc: fix the issue of proc_mem_open returning NULL")

Because we should backport this fix into 6.16.x -stable kernels.  The
-stable maintainers may wonder why we're requesting this.  Also, any
person who is having problems with their 6.16-based kernel will want
such a description so they can decide whether this fix might address
their problem.

Thanks.


  reply	other threads:[~2025-08-07 22:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-07 16:54 Jialin Wang
2025-08-07 22:46 ` Andrew Morton [this message]
2025-08-08 12:53   ` [PATCH v2] " Jialin Wang

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=20250807154606.131d96b133c19baca0c5f2e6@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=superman.xpt@gmail.com \
    --cc=wjl.linux@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®