diff options
| author | Jialin Wang <[email protected]> | 2025-08-07 16:54:55 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-08-12 06:01:00 +0000 |
| commit | c0e1b774f68bdbea1618e356e30672c7f1e32509 (patch) | |
| tree | c4a4f808c80ec1ee70c19f3a21f4ef725d7bdc22 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | mm/mremap: avoid expensive folio lookup on mremap folio pte batch (diff) | |
| download | kernel-c0e1b774f68bdbea1618e356e30672c7f1e32509.tar.gz kernel-c0e1b774f68bdbea1618e356e30672c7f1e32509.zip | |
proc: proc_maps_open allow proc_mem_open to return NULL
The commit 65c66047259f ("proc: fix the issue of proc_mem_open returning
NULL") caused proc_maps_open() to return -ESRCH when proc_mem_open()
returns NULL. This breaks legitimate /proc/<pid>/maps access for kernel
threads since kernel threads have NULL mm_struct.
The regression causes perf to fail and exit when profiling a kernel
thread:
# perf record -v -g -p $(pgrep kswapd0)
...
couldn't open /proc/65/task/65/maps
This patch partially reverts the commit to fix it.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 65c66047259f ("proc: fix the issue of proc_mem_open returning NULL")
Signed-off-by: Jialin Wang <[email protected]>
Cc: Penglei Jiang <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
