Go to file
Akinobu Mita a2cd4dcbb7 resource: fix false warning in __request_region()
commit 91a229bb7b upstream.

A warning is raised when __request_region() detects a conflict with a
resource whose resource.desc is IORES_DESC_DEVICE_PRIVATE_MEMORY.

But this warning is only valid for iomem_resources.
The hmem device resource uses resource.desc as the numa node id, which can
cause spurious warnings.

This warning appeared on a machine with multiple cxl memory expanders.
One of the NUMA node id is 6, which is the same as the value of
IORES_DESC_DEVICE_PRIVATE_MEMORY.

In this environment it was just a spurious warning, but when I saw the
warning I suspected a real problem so it's better to fix it.

This change fixes this by restricting the warning to only iomem_resource.
This also adds a missing new line to the warning message.

Link: https://lkml.kernel.org/r/20250719112604.25500-1-akinobu.mita@gmail.com
Fixes: 7dab174e2e ("dax/hmem: Move hmem device registration to dax_hmem.ko")
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-01 09:47:31 +01:00
arch arm64/entry: Mask DAIF in cpu_switch_to(), call_on_irq_stack() 2025-08-01 09:47:30 +01:00
block block: fix kobject leak in blk_unregister_queue 2025-07-24 08:53:17 +02:00
certs
crypto crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP() 2025-07-17 18:35:22 +02:00
Documentation bpf: Adjust free target to avoid global starvation of LRU map 2025-07-17 18:35:21 +02:00
drivers ice: Fix a null pointer dereference in ice_copy_and_init_pkg() 2025-08-01 09:47:30 +01:00
fs nilfs2: reject invalid file types when reading inodes 2025-08-01 09:47:30 +01:00
include sprintf.h requires stdarg.h 2025-08-01 09:47:30 +01:00
init
io_uring io_uring/poll: fix POLLERR handling 2025-07-24 08:53:12 +02:00
ipc ipc: fix to protect IPCS lookups using RCU 2025-06-27 11:08:49 +01:00
kernel resource: fix false warning in __request_region() 2025-08-01 09:47:31 +01:00
lib maple_tree: fix mt_destroy_walk() on root leaf node 2025-07-17 18:35:14 +02:00
LICENSES
mm kasan: use vmalloc_dump_obj() for vmalloc error reports 2025-08-01 09:47:30 +01:00
net net/sched: sch_qfq: Avoid triggering might_sleep in atomic context in qfq_delete_class 2025-08-01 09:47:29 +01:00
rust rust: module: place cleanup_module() in .exit.text section 2025-07-06 11:00:06 +02:00
samples
scripts scripts/gdb: fix interrupts.py after maple tree conversion 2025-07-17 18:35:15 +02:00
security selinux: fix selinux_xfrm_alloc_user() to set correct ctx_len 2025-06-27 11:08:59 +01:00
sound ALSA: hda/realtek - Add mute LED support for HP Pavilion 15-eg0xxx 2025-08-01 09:47:30 +01:00
tools Revert "selftests/bpf: dummy_st_ops should reject 0 for non-nullable params" 2025-07-24 08:53:22 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 6.6.100 2025-07-24 08:53:22 +02:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.