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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 302D2C433F5 for ; Fri, 12 Nov 2021 07:57:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 CCB14604AC for ; Fri, 12 Nov 2021 07:57:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CCB14604AC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RFZ2KSaszWQ6pBdtBTCzZD/4MOAGv0tKsWdyxO17hEM=; b=mKppK/GxIAwB2g dfwUCAia5celPm975xl85WcS4FDejnsMWgkIhd1kJZQ2apBSsK8+8+Pte+OXtZkbMH461DlDS7WQ1 aSB6mIxovwQUGb9v+wR++zZO9X/CQs4az+SdtchUt6flwAM/kN3jBl8XN1cTJwiXUYa0CnMbbchoq g0scwJAZCUSOg8wn71QWGZF+3vG4GP1SnoUHhlqENlriPujGNSyNJtt8Dz7jhJFIVJLhGOeQG0CY4 tLwPxxCBUqxDQX10khsTAF5PMajEh3b9kSB0qGtOmhhsfHv6gQlaOuklnlSjI5rBbpAIgRhKQe345 r+UlfVopcmyTVCrTjjlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlRPT-009dIu-W0; Fri, 12 Nov 2021 07:55:44 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlRPQ-009dI8-R3 for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 07:55:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636703739; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lF7lzRoeZrlEIt3gHEFyVsRoWpbej1ntDFwYNAiQdJI=; b=OoH/RlDgLrBZ4NE0Egiv2jYH8u01kIkq7gOxapj3QCEpGv+UEvV8YL1k8ZDawXVwBCBY9L S/PngiPfgXjne44ijbUWRyM9MJdCI2gzYe1HdEMfP3KVnjv+4tEjyXNuQeDess5Ff4y0/O eBFVMOdsntqB/H6Yt6IMd0RSpBwt2rg= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-5-YmCRySsLOdyxN_K5z_vkaw-1; Fri, 12 Nov 2021 02:55:38 -0500 X-MC-Unique: YmCRySsLOdyxN_K5z_vkaw-1 Received: by mail-ed1-f71.google.com with SMTP id r25-20020a05640216d900b003dca3501ab4so7539811edx.15 for ; Thu, 11 Nov 2021 23:55:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=lF7lzRoeZrlEIt3gHEFyVsRoWpbej1ntDFwYNAiQdJI=; b=4Ux1PHszZySiJ4v9H3b52/cgbtUFUuB3trZoV4TaHHQMtBPwYMMQ6Zu2Dsq1KPlylg VvFAl5mOCbIs20I0co9Ugc7wFlCXHLhKWQ4zDIcbR/0vw6bN8ABrUTi4hkrB/ItgGLly AHGCwswiB/sPrdsdWmhIzLyMZVqkbJu2wKGXKCl0z7RfuVtNaEr7B4a/m5yxJRtbzsTt vdmQNzLondXbqWAQWxk3Wnz3vr1WC+BSxDWzT77FDpFLvVn627V5GQ+0lDz1fd6IaCWJ zh8IUP+NlkZfv8bKRdflEv+25y+Bssc228XF6/BsVIGVt/IxeSYop18Bz0xlORYq7g4R Embg== X-Gm-Message-State: AOAM530dpgTNusotjuAz1M/p4VfUijTlL2FlooB4QrX9olQF1enmCKyB kwg7X4mYg06989l14Qp3InrkR3UiCVkSGMgx+nS2ptlAp7BMeI3YCt1aHK+3TCg2GssdQGCz5Wl U5Ltz6ml6BXEAcLBwDeRpDya9XDKhOMxnOA8= X-Received: by 2002:a17:907:6e10:: with SMTP id sd16mr17768042ejc.158.1636703737531; Thu, 11 Nov 2021 23:55:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVTSyaI9bwf+cK3HRTYkkEGrfXsl4Cvt+Fkmz/7JDyaorMKEA4Mec75P9Nt6V8a8edl3Ld8g== X-Received: by 2002:a17:907:6e10:: with SMTP id sd16mr17767982ejc.158.1636703737318; Thu, 11 Nov 2021 23:55:37 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id n1sm2700678edf.45.2021.11.11.23.55.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Nov 2021 23:55:36 -0800 (PST) Message-ID: <016d5b91-6910-2aca-0db1-a65079449454@redhat.com> Date: Fri, 12 Nov 2021 08:55:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v4 01/17] perf: Protect perf_guest_cbs with RCU To: Peter Zijlstra Cc: Sean Christopherson , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , Mark Rutland , Russell King , Marc Zyngier , Catalin Marinas , Guo Ren , Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, Boris Ostrovsky , Juergen Gross , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Morse , Alexandru Elisei , Suzuki K Poulose , "H. Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Stefano Stabellini , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Artem Kashkanov , Like Xu , Like Xu , Zhu Lingshan References: <20211111020738.2512932-1-seanjc@google.com> <20211111020738.2512932-2-seanjc@google.com> From: Paolo Bonzini In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211111_235541_011821_7F5956D9 X-CRM114-Status: GOOD ( 14.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/11/21 11:47, Peter Zijlstra wrote: >> This technically could be RCU_INIT_POINTER but it's not worth a respin. >> There are dozens of other occurrences, and if somebody wanted they >> could use Coccinelle to fix all of them. > I've been pushing the other way, trying to get rid of RCU_INIT_POINTER() > since rcu_assign_pointer(, NULL) actualy DTRT per __builtin_constant_p() > etc. Oh, that's pretty cool to know, thanks! Paolo > There's a very few sites where we use RCU_INIT_POINTER() with a !NULL > argument, and those are 'special'. > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel