From: bugzilla-daemon@kernel.org
To: kvm@vger.kernel.org
Subject: [Bug 221014] New: selftest kvm:guest_memfd_test returns 22 (Invalid argument) when the number of NUMA nodes are larger than 8
Date: Tue, 27 Jan 2026 06:22:14 +0000 [thread overview]
Message-ID: <bug-221014-28872@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=221014
Bug ID: 221014
Summary: selftest kvm:guest_memfd_test returns 22 (Invalid
argument) when the number of NUMA nodes are larger
than 8
Product: Virtualization
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: kvm
Assignee: virtualization_kvm@kernel-bugs.osdl.org
Reporter: yi1.lai@intel.com
Regression: No
Kernel under test: https://github.com/torvalds/linux/releases/tag/v6.19-rc7
Test case: selftest kvm:guest_memfd_test
Bug description:
The execution of case kvm:guest_memfd_test returns errno 22 (Invalid argument).
./guest_memfd_test
Random seed: 0x6b8b4567
==== Test Assertion Failure ====
include/numaif.h:13: !r
pid=2028402 tid=2028402 errno=22 - Invalid argument
1 0x0000000000403d2b: kvm_get_mempolicy at numaif.h:13
2 (inlined by) test_mbind at guest_memfd_test.c:95
3 (inlined by) __test_guest_memfd at guest_memfd_test.c:378
4 0x0000000000402b8c: test_guest_memfd at guest_memfd_test.c:399
5 (inlined by) main at guest_memfd_test.c:489
6 0x00007efc8f42a60f: ?? ??:0
7 0x00007efc8f42a6bf: ?? ??:0
8 0x0000000000402db4: _start at ??:?
get_mempolicy failed, rc: -1 errno: 22 (Invalid argument)
The system under test has more than 8 NUMA nodes. When calling the
get_mempolicy() syscall, it uses a fixed value of maxnode (8) for the buffer
size which causes the syscall return error of invalid argument.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next reply other threads:[~2026-01-27 6:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-27 6:22 bugzilla-daemon [this message]
2026-01-27 6:22 ` [Bug 221014] selftest kvm:guest_memfd_test returns 22 (Invalid argument) when the number of NUMA nodes are larger than 8 bugzilla-daemon
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=bug-221014-28872@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--cc=kvm@vger.kernel.org \
/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