Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3827921ybl; Tue, 21 Jan 2020 07:46:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyo3qYkQYAaWrFL1lPP5N+a06ja1P0zOMWYKJqRA8KE6GTAYO+yaRDfGV7BFKoG3nIPY/cP X-Received: by 2002:aca:50cd:: with SMTP id e196mr3463863oib.178.1579621605881; Tue, 21 Jan 2020 07:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579621605; cv=none; d=google.com; s=arc-20160816; b=Dy/MeOlAwUiDdBR94oIhddRGeZ4gv7OkiCNN76XvqG4aDQhKmp70kf4I/Vh8eZ/w+l IwTXPCGmq9GhyEeAiMhFeAfjnxdh22Li5HiGHXGHCv1lK1fYT0sZgLTXGpF7u6xalu1i GLu29c/jBLnLpZEoc2JmxqaduunWTzgiX48HZ189qXkf0Wzv1+cLqeJkoQB9nSf+N3e/ e5mMyAlLYMo4griW4BBRGSw+YXVA6f/nL8vXsXcwKdyCUt0DjhoMTpJB/OCCjHa541QJ hNRelyDcBjfjUM7Q/BqfKj1LKPggfM+VjPFMRg8mbMm3Eh6o+kgxQacWLVrKeAGKBgkC 2iWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=m40QvzilE3eF+M3My9lK3d81i3eaU7exLqJm718/IaY=; b=OjJCuPe05WtuZE3tGpup1I6QExQiBIboQDBGNy3rIKomED0CKqn6ThZTPY90b5zbRy Pc+wP6pdLbHxlBFDT0J7Oy3tmgrKFQWy4feyXg78duRPOzthOedHRfHWsdhHgPo2GDOb I0JfHdo8HClscBqol4uQgUiWsGr5Wl7YEMxBs3KiQ7NPopzlY/7XBv2gieQsis/rBOES lhUJNq2y4/BmXokYiL1NCREADGXJe0OHe2iUlKu5pAc7yLNapW3IKboCTir9Hpj56ZSK kNsYp1DKQt7I4as5XsbMcMu1Ysa/b0VDn7tV4ECxfF9cmKufWEdRiG3Byb8CJXz9LuvW 4mcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=nhcjsZOo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r26si23015942otc.163.2020.01.21.07.46.32; Tue, 21 Jan 2020 07:46:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=nhcjsZOo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729162AbgAUPpf (ORCPT + 99 others); Tue, 21 Jan 2020 10:45:35 -0500 Received: from mail.skyhub.de ([5.9.137.197]:38970 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728852AbgAUPpe (ORCPT ); Tue, 21 Jan 2020 10:45:34 -0500 Received: from zn.tnic (p200300EC2F0B04001968D368394CA6AD.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:400:1968:d368:394c:a6ad]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id EB1D21EC0CAB; Tue, 21 Jan 2020 16:45:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1579621533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=m40QvzilE3eF+M3My9lK3d81i3eaU7exLqJm718/IaY=; b=nhcjsZOo7gv7nuHIu/UG8GW1acu3YBpIJrBFFUneSl19Mdo6fG9ccpb1x3zk6Pv5psYxA+ ywUIRIsCafF1czHRj+l6pfVUn0ZEpAbr5zU04kJNzXyULe2KDFSASLxuNSiE5KcittNW7x /3MCFV7HFTAgLt0PBhoVwtK3qFoc6pA= Date: Tue, 21 Jan 2020 16:45:28 +0100 From: Borislav Petkov To: Marco Elver , Qian Cai Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , the arch/x86 maintainers , LKML Subject: Re: [PATCH -next] x86/mm/pat: silence a data race in cpa_4k_install Message-ID: <20200121154528.GK7808@zn.tnic> References: <20200121151503.2934-1-cai@lca.pw> <20200121152853.GI7808@zn.tnic> <44A4276D-5530-4DAA-8FC7-753D03ADD2F3@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 21, 2020 at 04:36:49PM +0100, Marco Elver wrote: > Isn't the intent "x86/mm/pat: Mark intentional data race" ? The fact > that KCSAN no longer shows the warning is a side-effect. At least > that's how I see it. Perhaps because you've been dealing with KCSAN for so long. :-) The main angle here, IMO, is that this "fix" is being done solely for KCSAN. Or is there another reason to "fix" intentional data races? At least I don't see one. And the text says "This will generate a lot of noise on a debug kernel with debug_pagealloc with KCSAN enabled which could render the system unusable." So yes, I think it should say something about making KCSAN happy. Oh, and while at it I'd prefer it if it did the __no_kcsan function annotation instead of the data_race() thing. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette