From nobody Wed Feb 15 21:48:12 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PHBXD4W0zz3rNdD for ; Wed, 15 Feb 2023 21:48:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PHBXD3SB1z3QNT for ; Wed, 15 Feb 2023 21:48:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676497692; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KespomqwGE1/euqVwElZx7P+/FoHD1DAGujRyIXhFz4=; b=ohpgdQ/gLxeCWnLRvYB5RmBQHjs/43KQnANUTe4+gJmXFCk9AqRRaM829mb+5mjnp0qp7Z Aca94uz3L8C/naovw3cRFoyhRoDefT886jikEDYKWOBrmIggV7RJNT7MuTsnZlRT4e/Xk5 2Y7DwxkuBPl0aDfGk+1bg3NMSGHv3l8D38QcY5RNVMJ5hGoRtGdr+OTh+zpaGAR/cWpewB iDzOVkXm864UplQb6sB6gsjIn0ZIFs8XcZXzjYq3uNQxjIMw7Q5u/V8du+vV64bmBnoPBi EKDDoP0lSR1oyeLPyrfSkvQtVuIfl11+5akZTYChwn1uimabpJ8niBvJTa0X2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676497692; a=rsa-sha256; cv=none; b=yvKwjokYIs6Yx86e+s9TKSrD+ilKlWyDo+OVfKWh8jj9FQnEa3TgsV2/SWfVz481fxPvbN 3kqopOcAtB8cPFLYKNZTm87u710ID5qdpcBcRBTC6oUcb4/vivfuAnDLXmMlwSW1Rvgof7 xmOIskIJT0Z7NCDVsFSEqsQElUVLDMvAPR0hYYw2g48PaStVbsqtQKk54syxc0n+2gU1tg 6ffUeefPPJELVF9gGwR2Fyq8dwagkzTNXgCKA0IgpF36NS7DAf8r2pza2EQP/4a3uqJJdn VuP5H8Va1zyG9pArnzqJCn3r3JGDBL5/UmTvVFpP0zhOxIfKI0T34MOpXwTfUw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PHBXD2Qs5zg0N for ; Wed, 15 Feb 2023 21:48:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31FLmCIR047540 for ; Wed, 15 Feb 2023 21:48:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31FLmC5P047539 for bugs@FreeBSD.org; Wed, 15 Feb 2023 21:48:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 200802] MAXCPU bump to 256 breaks ABI for cpuset_getaffinity/setaffinity Date: Wed, 15 Feb 2023 21:48:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dchagin@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200802 --- Comment #8 from Dmitry Chagin --- (In reply to Ed Maste from comment #7) yeah, and this: commit 01f74ccd5a0d1a444703e931339709c7de5296b5 Author: Dmitry Chagin AuthorDate: 2023-01-29 12:35:18 +0000 Commit: Dmitry Chagin CommitDate: 2023-01-29 12:35:18 +0000 libthr: Fix pthread_attr_[g|s]etaffinity_np to match it's manual and the kernel. Since f35093f8 semantics of a thread affinity functions is changed to b= e a compatible with Linux: In case of getaffinity(), the minimum cpuset_t size that the kernel per= mits is the maximum CPU id, present in the system, / NBBY bytes, the maximum si= ze is not limited. In case of setaffinity(), the kernel does not limit the size of the user-provided cpuset_t, internally using only the meaningful part of the set, where t= he upper bound is the maximum CPU id, present in the system, no larger than the = size of the kernel cpuset_t. To match pthread_attr_[g|s]etaffinity_np checks of the user-provided cpusets to the kernel behavior export the minimum cpuset_t size allowed by running kernel via new sysctl kern.sched.cpusetsizemin and use it in checks. Reviewed by: Differential Revision: https://reviews.freebsd.org/D38112 MFC after: 1 week --=20 You are receiving this mail because: You are the assignee for the bug.=