From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 2E0BE4035D7 for ; Tue, 24 Mar 2026 15:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774365547; cv=none; b=XtlbiRupTNcxU142KsGwQn9zZGhLKPXSd173z1obKYHp8E5Pr6I/8gw8yL28pjBJPsNr4EKmFnyx3T3fizIoCMdjazNN7xGntHTCrwnPXNtGBL6Kg53xWngJ5MNxqJW7iQA8HYTnRP8eIfkNCwPUKBOGEaMCJ3LMR9ONObnRafs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774365547; c=relaxed/simple; bh=6HhVUYhmyMTvcAMswOM3dLmuCaP1Ju8W9ZRentoH7XA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hkcew0TMvc7tYVNyF2m4BAwNksh8GxOJ1qjjMy9MFvLRjfmzrlOS0vQ2Llpy7XIwwekAooV6bJyG2nNsEVt7rIc065qQ/Sg9zZZMHbNia3JdUvDnnSe3K6xAGeyUzmpRYlMHc3x2KXTedPHsPabTOJ36S+bmAg8wkH9plKbRj80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=PVLdIMoC; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PVLdIMoC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774365542; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=CSqalb9riJujooqwq7rgCHpq/1IqNcmhKMRp2FBzELY=; b=PVLdIMoCL2T1n6KZ6SHVXkXbZcCLTNiC5riEQYUgMXH/79tu7pS+TWBRDMBoWzejVlGmBU 7dPfqHolwOulDYNjmPXSpywMYD3LeqpziZesfu029voazGE7rN14fIKL6mW4QgxkURtLfU msqqyMPJVm49AedDUTtuFLoLiAdg680= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-381-vuqiLqJEN7aqlqKNrZsWVw-1; Tue, 24 Mar 2026 11:19:01 -0400 X-MC-Unique: vuqiLqJEN7aqlqKNrZsWVw-1 X-Mimecast-MFC-AGG-ID: vuqiLqJEN7aqlqKNrZsWVw_1774365538 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B4E511955EAC; Tue, 24 Mar 2026 15:18:57 +0000 (UTC) Received: from llong-thinkpadp16vgen1.westford.csb (unknown [10.22.65.192]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 2F104180075C; Tue, 24 Mar 2026 15:18:51 +0000 (UTC) From: Waiman Long To: Simon Horman , Julian Anastasov , "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Pablo Neira Ayuso , Florian Westphal , Phil Sutter , Frederic Weisbecker , Chen Ridong , Phil Auld Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, sheviks , Waiman Long Subject: [PATCH 0/2] ipvs: Fix incorrect use of HK_TYPE_KTHREAD housekeeping cpumask Date: Tue, 24 Mar 2026 11:18:25 -0400 Message-ID: <20260324151827.2006656-1-longman@redhat.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Since commit 041ee6f3727a ("kthread: Rely on HK_TYPE_DOMAIN for preferred affinity management"), the HK_TYPE_KTHREAD housekeeping cpumask may no longer be correct in showing the actual CPU affinity of kthreads that have no predefined CPU affinity. As the ipvs networking code is still using HK_TYPE_KTHREAD, we need to make HK_TYPE_KTHREAD reflect the reality. This patch series makes HK_TYPE_KTHREAD an alias of HK_TYPE_DOMAIN and uses RCU to protect access to the HK_TYPE_KTHREAD housekeeping cpumask. Waiman Long (2): sched/isolation: Make HK_TYPE_KTHREAD an alias of HK_TYPE_DOMAIN ipvs: Guard access of HK_TYPE_KTHREAD cpumask with RCU include/linux/sched/isolation.h | 6 +++++- include/net/ip_vs.h | 20 ++++++++++++++++---- net/netfilter/ipvs/ip_vs_ctl.c | 13 ++++++++----- 3 files changed, 29 insertions(+), 10 deletions(-) -- 2.53.0