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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48E53C61DA4 for ; Tue, 14 Feb 2023 19:14:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjBNTOC (ORCPT ); Tue, 14 Feb 2023 14:14:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjBNTN7 (ORCPT ); Tue, 14 Feb 2023 14:13:59 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 237E825E30 for ; Tue, 14 Feb 2023 11:13:59 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id 136so6309204ybf.9 for ; Tue, 14 Feb 2023 11:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pXcppXk4sqKzMfvrWIcFdUhO+LBg/Sx5HjhK9InjLrM=; b=sBkTngIVAaqz5LH/0bWPS1DnkXZldvsO+retgT7Ci5Lu8G9n+PTbmVAvcUKVBDw/0s yr4M5LhS2p2umzeK2YE6SV7FZxw+TJomxo1C4DJH4wrUtr/ZzAmCYmb3yiRG2fmgofR9 tPscLBX1kz1bsG6af6H5UgRXWhb1m3OLym5NycwHqh6yAZDiqJooWbKEd7RCIou8Ax/j 4VzDpPIjRFRh6ParORPWhbPgZE3N5JWcdeGEkBlFFQWYEcmu776E1AjtjFEELYosaVDw d/roJISxnfdtGmea00pPM2nW5penJlU69skXybwsP/5ZLsFNQ0mc/Bh1yFluW3wog9/M O1+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pXcppXk4sqKzMfvrWIcFdUhO+LBg/Sx5HjhK9InjLrM=; b=Tebh1DtME/VP2UToqlUR5xZHpOOh3N3WSA7XbQxkidupkTJNnLTR1LiP7XQE1clntL Wazhi5mDUATzgFb8eFEw7QmBinxayeKGMrzOOXv1Qe8Hsn9KOowkQIF7SEVhuJeDzAWd OBpSEtprspOhciEGIfIHg8OSAHU6C/N6MujOxUimXyB9EgJUUtDX4LrjmgrEOOmQDCh6 93f0ztPEhTvRRX1M3vUT+8wIE03S3yRvEIGyiBSDRGEF6ysxDoY6aLsIUW09aid5iZcb HHszzwwu5o4KUb6H4Nsxm229RoB08bNvfVvVpUrTJN+OorkhL062faGD+hR0BBemDVZT hrtw== X-Gm-Message-State: AO0yUKW+e960NuJ4bmStE5xd6Z+6C+0xaZwMf+mwFvFfCumP0TehbG9b bnt7tB7cvmTMIWAfrwoLrV3y/CeoSg6dCFqXOssiig== X-Google-Smtp-Source: AK7set/tHwV6zaeaEHX7+c7voFKH8GjEjjky3i2eoCFFjx8yJ27ervyaGd6XZj+X5EmG0hBWTzNbXzKZK+X/oIAX0Zg= X-Received: by 2002:a25:e303:0:b0:925:6e:c676 with SMTP id z3-20020a25e303000000b00925006ec676mr430727ybd.179.1676402038198; Tue, 14 Feb 2023 11:13:58 -0800 (PST) MIME-Version: 1.0 References: <20230214181335.3946674-1-kamatam@amazon.com> In-Reply-To: From: Suren Baghdasaryan Date: Tue, 14 Feb 2023 11:13:45 -0800 Message-ID: Subject: Re: [PATCH v3] sched/psi: fix use-after-free in ep_remove_wait_queue() To: Eric Biggers Cc: Munehisa Kamata , hannes@cmpxchg.org, hdanton@sina.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mengcc@amazon.com, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2023 at 10:55 AM Eric Biggers wrote: > > On Tue, Feb 14, 2023 at 10:13:35AM -0800, Munehisa Kamata wrote: > > Using wake_up_pollfree() here might be less than ideal, but it also is not > > fully contradicting the comment at commit 42288cb44c4b ("wait: add > > wake_up_pollfree()") since the waitqueue's lifetime is not tied to file's > > one and can be considered as another special case. > > If that comment is outdated now, then please update the comment too. We can do > better than "not fully contradicting". Agree. I don't see it contradicting that comment. > > - Eric