From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 015DB1F3FED for ; Tue, 27 Jan 2026 06:22:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769494935; cv=none; b=SC16XPxRx1VvOf7XyIoJvH0B4W1hLiEarAmEy4o1JMRuLTqo7PXcRbUqT+G7b9w9zn+p41GMX9EWrvwYX1qQF6ehWVgFuJ9Vbth4S3rkw+6AeFZkmP2rw4Lmh1xuilmG4oTCY+/rccZ0ilZzkmbK1hfglqEjm7g0bVrSfIjVSas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769494935; c=relaxed/simple; bh=tcsCLWokNSWtRq1euyx6eu2TeLNaUTh2kVGbP3t/mhE=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=G5UgKGJD/ec8uI06KARPQ304XxcA3eWXZsYA7F4ApeMkIabSZDYV0TBRrMwxa5Vn6gSkVS+U4ha8zySXHEXR0gu5xpHTMnStIgmlij+HAG1Psyg2988bUcwX5k2bkHacSlB14XChD+ag/dPoxGPUP0ewmkhUwDpei/8uVBRFo8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T3CY0JQH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T3CY0JQH" Received: by smtp.kernel.org (Postfix) with ESMTPS id A0756C19425 for ; Tue, 27 Jan 2026 06:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769494934; bh=tcsCLWokNSWtRq1euyx6eu2TeLNaUTh2kVGbP3t/mhE=; h=From:To:Subject:Date:From; b=T3CY0JQH9O2qoBCp4tveUu4rgOL1cOMNYYD6UuP6P7i8H81FOScY54wBl354Urju1 YMaNG4kkvo/qKALbkqY1H8CNG+v9qhmW7ce5W1pbMqW3QjKvspR8bxgRN8Red70VYl FGlqepHgGULEr7NTooVzT9KYSuacsUi8JpY4TkM8thfpIc9cXOI0TPPjJXZSXPgDV2 9pcPC180CE36X7ikesyuKuKs5H/jQPRnq30Tc3ZVTpz0LjxvXVpM1r1X68ebddcj8r VIYed/k5dSDOYYb6ZlzKAc8/q+yT4a5HeDh9So0Kn6yv0+0BE/nm8FJenJRn5ENUf6 lQ2zUrK1LGvCQ== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 916D0C53BBF; Tue, 27 Jan 2026 06:22:14 +0000 (UTC) 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 X-Bugzilla-Reason: None X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: AssignedTo virtualization_kvm@kernel-bugs.osdl.org X-Bugzilla-Product: Virtualization X-Bugzilla-Component: kvm X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yi1.lai@intel.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: virtualization_kvm@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cf_regression Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 https://bugzilla.kernel.org/show_bug.cgi?id=3D221014 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 argume= nt). ./guest_memfd_test Random seed: 0x6b8b4567 =3D=3D=3D=3D Test Assertion Failure =3D=3D=3D=3D include/numaif.h:13: !r pid=3D2028402 tid=3D2028402 errno=3D22 - 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. --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=