Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4318770rwj; Tue, 20 Dec 2022 08:37:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7K4ukTlzHtN8LgBE2n9vYKSjjP9P2hAoo8Usq/n9KdUcsEzGpjruyQ2aFLj49fIi6Xvjrq X-Received: by 2002:a17:906:2288:b0:7c1:1001:600a with SMTP id p8-20020a170906228800b007c11001600amr53062155eja.77.1671554241012; Tue, 20 Dec 2022 08:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671554240; cv=none; d=google.com; s=arc-20160816; b=hrfC7qCZRthbAZkDmZsajlpG2lpHXQHw66sxzGojtqrOCqoDefymOTtiF3XMWk+v3h a6xa4LmX6gvf22uT/njYE65mrxyiIylyc0VGHQJhDp0eFLMP+HVu+4jZCQ/AyWteQGPu B1WlfbxMCl+UuY5MXsOuaM/Hxlsi26vPfX51Z8myLJ/g4CMgdjmmh2hxk4/ncVGamBVE y5QZfwzXmD6a9N/XVFve6+Clwd2gBtSz0w+iQ+kF/D09ZyiHwHq1lURjlL5iGQR9CViD UMOqy9XrEkukie7a408YOC+RgyZXVXtMsVI3HkCQzqJovF6/7fzOy9T9o41RE++OJ90c LQHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=N69AnN/HCGfz6y/pBDE+Dl/UeoUyFu+chnsy6BgVL3w=; b=M4sOivcQQhWGi79CUBt5efu3UEZlTJs2vyfjnwADIDTmjHZ2aE+9wjXPeRRO2gaU/B m8ecXmnD85wtPC1HOId7jpMh8otY8xRiotXJuuqYUwyFR80Wf8WZ81MuTJsJdZNTd2Sc AW9ulL3a60Dc1FMnRnh+b1Nfcg84dLQIAhcxbTk69vt3ow1oXIyDGnYCUufxHfNN0FoM MxrH1MZ9YiqqngFdQaDxH1RDpd3szZ1eYm04RnIA4mTH1TSE+VJ4wX2Qv0bcKYI4MS3b wrDmdn+e2LnWJekd2UOkcIlOtcebgSYE9zwcojsHcrAR7q669SekKNoxzVS/v8LuSvAt +kvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=AeRgstx1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp16-20020a170906c15000b007c16001b06csi2429641ejc.181.2022.12.20.08.37.02; Tue, 20 Dec 2022 08:37:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=AeRgstx1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230130AbiLTQLC (ORCPT + 69 others); Tue, 20 Dec 2022 11:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233945AbiLTQI4 (ORCPT ); Tue, 20 Dec 2022 11:08:56 -0500 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7EB91DDC1 for ; Tue, 20 Dec 2022 08:07:28 -0800 (PST) Received: by mail-qv1-xf2e.google.com with SMTP id q10so8472582qvt.10 for ; Tue, 20 Dec 2022 08:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=N69AnN/HCGfz6y/pBDE+Dl/UeoUyFu+chnsy6BgVL3w=; b=AeRgstx1cCT95ZSqqjbb0GKPXOYVhZE6R9V7VefA0fuOv1IQyjSThAUuHdmwVnnlwI J+pHWLQ9/btK/Bbr26xFePa4nNDVhGq1HgL9+ysZsavOpVvcwUAAyzyu4tQCL4RhQcfJ tnVIdnTnfnoJDi1BiXApTBA+gc7afeH4jfmOy9uzcXLRI2cnltWkAYFKDLrymTD2cq7J F1pDiKQeiRZZ6QXxucTvaql35Jt8YRMXbB/PftvS4tX5KZOg6FGCzbcDR3/Hn42lSqwg HqqKhe8YXkk7/2SCbe6UMLVu+MtM8aNoqPN/LdDEWVFG/huTmFGddFVwhFL2ztYZ5/dx NNaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=N69AnN/HCGfz6y/pBDE+Dl/UeoUyFu+chnsy6BgVL3w=; b=G8DPdAGeuGLdwSYOWMXGN5W+DkNIJ+MTRoU0MfCsGymvTHkqz0di7ryYHHkRbyuWSk Y+okxTQTXNxK8LhZ9FQq8VZgyAnqTXFbrjOWPWY6FpWdr5rH1QnpnQG+8DaSkWGqM+NS d0aJsNucJZy/0BHJea0azANEKeiBa69XQGS8EbEjmAi1fhQNQgHJVZeh0kW+Ty8C/n5i PZA5tsu1+nJ68T8IoHREetffb5GfwgVeJGYTskMVFrq3+ZQe2x4MwcsVLshk7NfA3bGO elBQOsk/CSd1lbQjlSjPEYpHPVP462fJ2Nj+A6H5Np/Y17MpQDi/tkhZkshjPhPMV5xP z2Hw== X-Gm-Message-State: AFqh2kpk7ladDxfyI7K9lcMTI33Z3OMlLuGjwVOR5MdZsFdtk1uQ7+NG Tu1BqEhrnW7y5iJmHtvvvJmzP/rqv+VXwW7Q3cs3LA== X-Received: by 2002:a05:6214:5c83:b0:4f4:65c1:d799 with SMTP id lj3-20020a0562145c8300b004f465c1d799mr1004017qvb.81.1671552447953; Tue, 20 Dec 2022 08:07:27 -0800 (PST) MIME-Version: 1.0 References: <20221216133125.3159406-1-peternewman@google.com> In-Reply-To: <20221216133125.3159406-1-peternewman@google.com> From: Peter Newman Date: Tue, 20 Dec 2022 17:07:17 +0100 Message-ID: Subject: Re: [PATCH v6] x86/resctrl: Fix task CLOSID/RMID update race To: reinette.chatre@intel.com, fenghua.yu@intel.com Cc: bp@alien8.de, derkling@google.com, eranian@google.com, hpa@zytor.com, james.morse@arm.com, jannh@google.com, kpsingh@google.com, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, x86@kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 16, 2022 at 2:31 PM Peter Newman wrote: > In a memory bandwidth-metered compute host, malicious jobs could exploit > this race to remain in a previous CLOSID or RMID in order to dodge a > class-of-service downgrade imposed by an admin or to steal bandwidth. After discussing with Reinette some more[1], I think the payoff of exploiting this is too little for this to concern me, so I'll remove the paragraph above. [1] https://lore.kernel.org/lkml/CALPaoCi8hcFzNN9O9fS9Etri_KMdU32UU1tJsfeO1OxR-i1j7g@mail.gmail.com/ Consequently I don't think this fix is critical enough to be needed on stable, so I'll drop the CC: stable from the update.