Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp508565rdh; Thu, 26 Oct 2023 08:08:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoI06Phxt+/uelGhKIX2h8EaFwNt4zp2INoEO9ceHXN9IGYodWH9jNRgtoTbJc1rKuqpIs X-Received: by 2002:a0d:d344:0:b0:5ac:d1c1:bd8d with SMTP id v65-20020a0dd344000000b005acd1c1bd8dmr10993090ywd.39.1698332924213; Thu, 26 Oct 2023 08:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698332924; cv=none; d=google.com; s=arc-20160816; b=OVGhe8fUaRsQFqrSIfSFsBOkEIt1bQUu18fC4VSpV5mYmFCgvQ7t9kAkrz0+4Fy1r7 Y5dCdgPIq4eXSzCGtJHGWFckUlOK0//yJ5SRcysDl5hydTC/gd5MIGxYPiy6D5B1axJ+ GdD6rv4sV0YmfG0z/7M6S1uWgV2/vOqedm/d6S5B1UA3vX4isUp26swIHlCgsgbgxMNG b2f4wDMtXfBMulp4IsAA1MvysJIrbOzJcUj6Hss84h7wmPD3msTF32cUYCs9MsjxzYeg ZKbi7rscHJpIMee75JzeahsvgWHfUQj1kskKXyB3HNbI4QEsubq7uZWzEPUyKOfTjA4I kY6Q== 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:references :in-reply-to:mime-version:dkim-signature; bh=VVZOgV4TaU7C0kwXpqOjxAK7iXfSpgYkTcenW5IXZCQ=; fh=acNhPDCFBQhDA+ruGqAs63jRZcQkL7oKiVSvIxp4I4I=; b=ThOyPQoh4+fFn7Q1zLkGJNognN+0/7wlc1PzFXOVwbXdvMvWweOM/nYD5BYSnTWhMK O57XQAdBLptt4X3jZD7e4clIZbSO4lWQ/Xtg/2q9xPpRz1DnXz9jcaXXD/UHH/JKaAzB sqxCA1pvVz9E9UCmnEtMrn6UC0uv+kglFfLbzp0czk+MZcJoUakito9Cr1VaYrTSQGQa rFIO0KuvxYw/aiJ7Va/3tk2d3VltK7LRv64VfFrgr3XgjFKrwnCXKoOSLIM3xd4KSs+B aOwE6aaduAptsr/f91GhpE92UYsB5xgPFvUdqUG92u7kRXNRvaYC0LgA5Kw+ysXD6JC0 qcsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ystq3Hh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z20-20020a81c214000000b00589e0b45eebsi14202031ywc.568.2023.10.26.08.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 08:08:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ystq3Hh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 165958381EC9; Thu, 26 Oct 2023 08:08:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231347AbjJZPII (ORCPT + 99 others); Thu, 26 Oct 2023 11:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235160AbjJZPIB (ORCPT ); Thu, 26 Oct 2023 11:08:01 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D4C310F7 for ; Thu, 26 Oct 2023 08:07:54 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-57e40f0189aso565377eaf.1 for ; Thu, 26 Oct 2023 08:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698332873; x=1698937673; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VVZOgV4TaU7C0kwXpqOjxAK7iXfSpgYkTcenW5IXZCQ=; b=Ystq3Hh5JeLfSjjbRpDvjFVwwC/prIdM2A0lA0q4ziu7Q9VFgSYprW0WvxXBKTpsJj yOK0fsiLOeHwes+HCGiPXcCxg9KaAdXnR0QfUyZJLdTZ5hxUHvVrgF5oNIbvkY9B9fWZ qm7KyfySEmkfTg4HixGPIVVHNHwX2RXdDF53jyahz8/y7wn+9Y8MWxsiIPn3ySB1jYgz yjI+4UZLOSz7BZbtf7Au3acPQgI39M/7quwjhrfVooErOSGeQinUK1E/as+YhcktCOMU Um1DijYOgbh/lT3J21lD7eZXQDWo+EfPU42g+sCEiBqbmoYioNGT10I4olzJZW2p3Ilp JeFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698332873; x=1698937673; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VVZOgV4TaU7C0kwXpqOjxAK7iXfSpgYkTcenW5IXZCQ=; b=iK8hmjdrorHx+QY9fZTN6dEB8xSF/ps6atJ7QVApxSrZgLW4AwJWb+WISlBq+Y5IRr 1w0e45H+YAaHN2ROT6JJphECdrVKpcL+ee9H4mR5v4eWxV4J6cm7r4t5gX8EdB8t0q+o tAYOnmqjhR8EPQh7DvVGOxR0OVRdMi/+le9EPMjNCjp3d5jT17tXQuFd+Qd2SoMqrauI AInYl8XLFEM1IDOZGVy1Nlg4WdT+G+yUtSzJYdIM8fR3Ut25NBii0HAusoB7iVEKIA1v 0IwitGibZDDbygihy5HT6PeHmmCOAR0ilE9TjSV887zHiZv06+pdO63T35IKxJabKnnQ jrYQ== X-Gm-Message-State: AOJu0YxGENmtKBXzOXxFoM8RXvgg2APaYq5rS9zfvnrN80eMCO6TqLmy YKd2fAuxOhodiY9iwasZIbaGryQIJ0dBuQixEKw= X-Received: by 2002:a4a:d032:0:b0:57b:7e41:9f11 with SMTP id w18-20020a4ad032000000b0057b7e419f11mr18552571oor.2.1698332873236; Thu, 26 Oct 2023 08:07:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:6fcb:0:b0:4f0:1250:dd51 with HTTP; Thu, 26 Oct 2023 08:07:52 -0700 (PDT) In-Reply-To: References: <20231025165002.64ab92e6d55d204b66e055f4@linux-foundation.org> <20231026121621.358388-1-singhabhinav9051571833@gmail.com> <20231026091222-mutt-send-email-mst@kernel.org> From: Mateusz Guzik Date: Thu, 26 Oct 2023 17:07:52 +0200 Message-ID: Subject: Re: [PATCH v2] Fixing directly deferencing a __rcu pointer warning To: Mathieu Desnoyers Cc: "Michael S. Tsirkin" , Abhinav Singh , akpm@linux-foundation.org, brauner@kernel.org, surenb@google.com, michael.christie@oracle.com, npiggin@gmail.com, shakeelb@google.com, peterz@infradead.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 26 Oct 2023 08:08:19 -0700 (PDT) On 10/26/23, Mathieu Desnoyers wrote: > Drive-by comment: perhaps use rcu_dereference_protected() ? > Definitely. But as I mentioned even after applying the patch there are uses which should have been reported (and consequently sorted out). If one is to bother with any of this at least the entire file should be covered. -- Mateusz Guzik