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 F05B6C433EF for ; Fri, 12 Nov 2021 07:55:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5EA961029 for ; Fri, 12 Nov 2021 07:55:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234144AbhKLH6b (ORCPT ); Fri, 12 Nov 2021 02:58:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32297 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233717AbhKLH6a (ORCPT ); Fri, 12 Nov 2021 02:58:30 -0500 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-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-32-4y0MLnGKOiWxetEawMLkDw-1; Fri, 12 Nov 2021 02:55:38 -0500 X-MC-Unique: 4y0MLnGKOiWxetEawMLkDw-1 Received: by mail-ed1-f69.google.com with SMTP id w12-20020a056402268c00b003e2ab5a3370so7607437edd.0 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=w4EWWye2x7zkM49tYcr035feAE7SDdpWO1/nAcSXStAwnYviBCYiY6dQZNfQaX4jSc AkHHH2PTYQYbseyGfd2Ouc+PSxSP2e6ApjGDG0cVStxqQvv3r3pkh9yxuHcuKHF13qNY l3UzJoRqOuDGgq4WtY3tNbBeE8In6Bqo2GYXQzY6ZUaaHDl9qvxa/ykOhSIhl74Nin00 c4qR5CiB5gz+EfuZEWsYGqOOsQSXdft24h4NYAilHIYqkfZcucbvGvDPt0N18WWfmWdU Nll6BobuIxNoJH+K4andNzIOhnsulE0UX1i1Jw+mqMO8u3PSYr3uHNdEEaOTlxjhy5L2 urbg== X-Gm-Message-State: AOAM5328awEJhheVlbPfyvi4a99tswkUFsiZxxeDJJ/LaYvM8N9uBUj/ zx9bTb0vAn6Uc7GVzyQL0QffjjiMAQWT0E7vZhPXRzU+zc+T9pwiVIven+vZyp+KRDiSuHpfsLk RfA0f4uCJjFCEhurEk0M73w== X-Received: by 2002:a17:907:6e10:: with SMTP id sd16mr17768020ejc.158.1636703737507; 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 Content-Language: en-US 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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-csky@vger.kernel.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'. >