Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp347203imn; Wed, 27 Jul 2022 07:55:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1voRuosqRjHV7sl/kn2SK0zN+Jdhb39r3s9usHviEE6vTKXTv7Ba9mBoMBfwEXzDyA65cXj X-Received: by 2002:a17:907:28c9:b0:72b:6912:5453 with SMTP id en9-20020a17090728c900b0072b69125453mr17319703ejc.419.1658933734137; Wed, 27 Jul 2022 07:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658933734; cv=none; d=google.com; s=arc-20160816; b=r9OyRa0uxok2VMmUETma4pPEtv7d34cXN1yv3Pw+dXYGWA8tcLjmCmmzlLH6bJRIqH b+KZcBwXmVDKqUVmiZr6055v/3f6rK/xeZdTvbdjVTn14Da+MjaA5irJFAp9soXozB0e CNKdDIBW1Yr2FTZexO2+I7GXSOJd1ie1JmATbhFiwrwqS6G39MP5ZP8eYlhPHhBm6slL rrWZVcv8GZqJu8pF05KHhacm31/SNLrluxn+TNnibQtaqvpFTT4RxfBKX0XI2XOb4UFL MAhLp1zphwodsrRGymHY9dpd30xFSLigbbHxHxC77EBPzkTP5JXqvOFQ4/aowu2h+WSL QOEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=Pr0XffMgM0PbydBzrF3k1K/HGVzJTnmqlVyn8cjx5NE=; b=wLi4ozm3vk+dwa/ApbWrj4+f4eqVQ1awcZlk4cN6++tDjxbMFwEYJCnNEDtPkc4LZn zRUEyy9SSz5el2oLCe/gAnORtDUGCSyXTsvgDrOHI6gcV8RIhmYZPU8tnzBMhOBldGd0 9mrBOGW98rJ0Oxrs+yAjCSbyfD8+D2IB0qGD+gWSAc0x7hCaqAEVGukhnXJjs0e9bvUi ZifLdUIWYHid63be+Bn+dwAbq/erJjGPgXvYgrCyfdj08gp5gzkT2uueUmBuOb9+l25a pFLCz/92c2DOvghUTw6jPxKCFAzdEm3LFW0+dlnAb0/+8KPFNvA/l83iJ2qfdhQypCee emiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ionklLY5; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp9-20020a1709073e0900b0072b5ca32ec4si19400958ejc.488.2022.07.27.07.55.08; Wed, 27 Jul 2022 07:55:34 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=ionklLY5; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234225AbiG0Ot0 (ORCPT + 99 others); Wed, 27 Jul 2022 10:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234228AbiG0OtX (ORCPT ); Wed, 27 Jul 2022 10:49:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95A113FA16 for ; Wed, 27 Jul 2022 07:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658933361; 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=Pr0XffMgM0PbydBzrF3k1K/HGVzJTnmqlVyn8cjx5NE=; b=ionklLY5QytHWpZhS7yScowiEdahQc9nd42oKZCYxMWlmrmiC5XiX1MO6KR79OdnJVGcHq m1D0n79T2/hhC/GzK44BcsKl9a90in8QYsgdc76t2yUEJan5BGMoQsO6uwb+frNcq1FQuY ufFV05iWfSscBdRaJ1yPmPKKSnGgXY4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-220-4S3EawaGOK6EetPWgEohYw-1; Wed, 27 Jul 2022 10:49:18 -0400 X-MC-Unique: 4S3EawaGOK6EetPWgEohYw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A2FA285A581; Wed, 27 Jul 2022 14:49:17 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7CF9AC33AE6; Wed, 27 Jul 2022 14:49:16 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20220724071958.2557-1-hdanton@sina.com> References: <20220724071958.2557-1-hdanton@sina.com> <20220724052426.2504-1-hdanton@sina.com> To: Hillf Danton Cc: dhowells@redhat.com, Siddh Raman Pant , "Fabio M. De Francesco" , "linux-kernel" , "syzbot+c70d87ac1d001f29a058" , "linux-security-modules" , "linux-kernel-mentees" Subject: Re: [PATCH v2] kernel/watch_queue: Make pipe NULL while clearing watch_queue MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3565219.1658933355.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Jul 2022 15:49:15 +0100 Message-ID: <3565221.1658933355@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 Hillf Danton wrote: > Yes, you are right. I missed 353f7988dd84 ("watchqueue: make sure to ser= ialize > 'wqueue->defunct' properly"). Sorry for my noise. > = > Given defunct serialized, still need to clear wqueue->pipe in the clear > path as proposed? In fact, with the locking, is wqueue->defunct even still needed, I wonder? David