From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3868C2D0E4 for ; Fri, 27 Nov 2020 09:56:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 01F1721D81 for ; Fri, 27 Nov 2020 09:56:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MMw4tyyE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="sfYOdVjR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01F1721D81 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MNbOWxyUVlMG930Zdv2TMasTO65AysMhAz5m9lK2sow=; b=MMw4tyyEh9SkjdH0Bn0/Y7s63 GIAAxNvbmzyXTcJL1CMuue9+R6oSVLvwtcG8RD2guNfeJG18Txmp/xp23in5oKh9pu5j1CNr/eaab FpyhhiECcy05URGdxyjrn6My2/y6b9/4R5V5+30l5qv2/DKJHb3XflQp2jxxdc54K8fWKxo2nzfFB nHbFFwphoh+xq9Vqm9STeahfBQogSDB/pSB1nQRA2MFwDus3cCX3zXdSnHhm6978lYEy8SVtxPBs4 sPJ0YkCwCypqwAZb2AOD/UuGE32X4NpccZFXptdtdpVyaxTHTuAGMJB1hgwdycWSaseoH9j6/XlcD z381vTEmw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kiaSx-0002A3-Sj; Fri, 27 Nov 2020 09:54:59 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kiaSv-00029K-LI for linux-arm-kernel@lists.infradead.org; Fri, 27 Nov 2020 09:54:58 +0000 Received: by mail-wr1-x443.google.com with SMTP id l1so4906413wrb.9 for ; Fri, 27 Nov 2020 01:54:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JjE5v+XtmXi4bhjUhwczYi8qu3IElsPJc6z70wBzRWs=; b=sfYOdVjRyzcbYRH/Ekm8wSub6oWEzdjbW2nDTAMnh+6ng+DbEs+mHTZUhXoUXiM0G/ 6hwWE5ZB2yeEMyCagbn48ngqnVd/Y5klQdMiAfN4mVSz+nY3HGFLtKuBtYX2clhCpvIG IuMvX40k0Uea4kH/0bOWOe35Y2bAVJs9VJ3/XgrZZsEVzh5EmsUsIr9iBr1J9hIIpQDR VvDvVN51IOVbbbe2X/suG6Ry3Slx41rPnME1ldpGZ+vwcCoSp4U8fYOSjwtj9jIHVz9v QCd6icNy7782CsjPEAlFmgSBNUV3YZN26AsSirMGaHi1jQF+cbbTSiArlLUnRo9sY/Z5 tARA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JjE5v+XtmXi4bhjUhwczYi8qu3IElsPJc6z70wBzRWs=; b=VS7iZOewALmfHAVyG/O3Qj1W9BJ4mFaCfi90dYKT4UljaUxlWfM68usXZ+i0MBto+Q 2YmORhvWQt4FjBuZFTwpnHYkyu7qqWCOeG9LMfJk9OBdbnN9qHu5pOrOzb0KdByEeqPS CeYRxV1jKOiPkKYK1I+FMmcfncAm8e3MulVPX08pZPuY1I9MQpx+HPzGth5Xx/xVLS0q AK3fY4xg0+Io/eQV9nyzuUcsb/yYlHCfZZ4gNIP8LHgg2+SZmPnW5QdIs5KXCiPsBAqg d7buurmwc+v/4QRKW4/mYD9V0Ft8OQvTLUvmORLc37I4U7m2QfBjL/06UNrnOFgTHeGG p+bw== X-Gm-Message-State: AOAM530r0ajwtnWX9P4NXDKmEOWXhYI3JX/cg/oGm9FB+92BwgFsbjNF Mhui8r9S8UaDveG4CPBMXO0/Mw== X-Google-Smtp-Source: ABdhPJy8MKyha3Xk7UYSRiRLy3TVGJobBhb4KefTjlDXAMCo/TeSUVelqvExxjIfnbZXHjD1GJxklw== X-Received: by 2002:adf:dd52:: with SMTP id u18mr9079635wrm.44.1606470896481; Fri, 27 Nov 2020 01:54:56 -0800 (PST) Received: from google.com ([2a00:79e0:d:210:f693:9fff:fef4:a7ef]) by smtp.gmail.com with ESMTPSA id j127sm14205428wma.31.2020.11.27.01.54.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 01:54:56 -0800 (PST) Date: Fri, 27 Nov 2020 09:54:52 +0000 From: Quentin Perret To: Will Deacon Subject: Re: [PATCH v4 11/14] sched: Reject CPU affinity changes based on arch_task_cpu_possible_mask() Message-ID: <20201127095452.GB906877@google.com> References: <20201124155039.13804-1-will@kernel.org> <20201124155039.13804-12-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201124155039.13804-12-will@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201127_045457_850211_379FBD6F X-CRM114-Status: GOOD ( 12.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Marc Zyngier , kernel-team@android.com, Vincent Guittot , Juri Lelli , Ingo Molnar , Peter Zijlstra , Catalin Marinas , Johannes Weiner , linux-kernel@vger.kernel.org, Qais Yousef , Li Zefan , Greg Kroah-Hartman , Tejun Heo , Suren Baghdasaryan , Morten Rasmussen , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tuesday 24 Nov 2020 at 15:50:36 (+0000), Will Deacon wrote: > Reject explicit requests to change the affinity mask of a task via > set_cpus_allowed_ptr() if the requested mask is not a subset of the > mask returned by arch_task_cpu_possible_mask(). This ensures that the > 'cpus_mask' for a given task cannot contain CPUs which are incapable of > executing it, except in cases where the affinity is forced. I guess mentioning here (or as a comment) the 'funny' behaviour we get with cpusets wouldn't hurt. But this is a sensible patch nonetheless so: Reviewed-by: Quentin Perret Thanks, Quentin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel