Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3363297pxp; Mon, 14 Mar 2022 17:51:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwatuLBI85GGdCcVeWeKISTzayAraqE/gzFVhe7f4zfUt0Je+zxFgBAmTm/9DrLx33Efc+s X-Received: by 2002:a17:902:f155:b0:151:8377:9a8e with SMTP id d21-20020a170902f15500b0015183779a8emr26037004plb.21.1647305493832; Mon, 14 Mar 2022 17:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647305493; cv=none; d=google.com; s=arc-20160816; b=m5Dr9Nh7aiY9nhzpkIRvQaUmLI8F7wNvQMQyXi037KB+DhwY2OKR1mdj3dueDyzPFM Pc4CWTrOxZmPn8K5cCgdyxlmGiYBWmZklSd+/nC435sFf2dld58hhJp5D6cNbLWvd5pu RLBg9SNE8ntopSHOMthS38Yg39GNSieVRp7+jr6Ud+I4agQVWd81d4Z5bUl7lNW4GhFf VNdtPinvzueqZPTeUYn//2SGRAz7KwABzY9qKA5B+5R5EXUqz02Kgifxe8gXU5liqB5X J2kNtkLq3goGYEFpH7bqQENMzzPB1fRH/W+z6LKjzq/w1jVKKy7I9e63KGrPrSCSRroY P8Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RxdTP/8Nztkyz45C3+MRJlCEjVZP7A4RcD/cDrMHLq4=; b=LixtZGbhpTTrlghYREuaOYmjO0+vF05zt2q5oNPXg7Dy9zVQiIfOz67CMNqcmxkN8u 4wgiS+XBvxqNkTyJKf+oZuEWPvzCh1/VS51vMazVerJWaAmWKQk8lEFNmOZwDO+dL/uo rhQ+RSNoksfrfCan9n2Ko575KjP2yQhBlAo25WHEJG0889u5/ocM1TYZeONhPYjin9yq JAeTgzFU+EZu4O85x785thLOEQTVbG2LCBwdygCzJ+dDfSemSXpKV8QR6NQiMKowvj7k N4G6qloQYmb3Ax+anBrTxS+IWmt0nzurhhg1l8USK12FFg1VPxkEtvShu7lZcIDSfOFF 5GKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jyLW8eqc; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z37-20020a630a65000000b003732cdefdabsi16038722pgk.379.2022.03.14.17.51.20; Mon, 14 Mar 2022 17:51:33 -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=@linuxfoundation.org header.s=korg header.b=jyLW8eqc; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231807AbiCNMVm (ORCPT + 99 others); Mon, 14 Mar 2022 08:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240818AbiCNMLj (ORCPT ); Mon, 14 Mar 2022 08:11:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C18E33E86; Mon, 14 Mar 2022 05:10:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2BBE961361; Mon, 14 Mar 2022 12:10:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15C76C340E9; Mon, 14 Mar 2022 12:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647259826; bh=hY2UIJK5Bcp2co/zW3Bbj4YExAPuG2DsjYW6j9zjOz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jyLW8eqcKePxd4vG+nQQ1X716yV8BBTtSessHI9LosDQBuUTNa2/sE6RRx6DXlWV+ 2fSxRWVQU3fLRKR7m6cYUriRfv+XeYOBjcuzyenxWpMoQN66SH0qPzHUvyvLpU+IkV YFvfYsXRb6mXWIjDyrS3jCCfStyzTegG3FMcPamE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jann Horn , David Howells , Linus Torvalds Subject: [PATCH 5.15 098/110] watch_queue: Free the alloc bitmap when the watch_queue is torn down Date: Mon, 14 Mar 2022 12:54:40 +0100 Message-Id: <20220314112745.761496477@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112743.029192918@linuxfoundation.org> References: <20220314112743.029192918@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: David Howells commit 7ea1a0124b6da246b5bc8c66cddaafd36acf3ecb upstream. Free the watch_queue note allocation bitmap when the watch_queue is destroyed. Fixes: c73be61cede5 ("pipe: Add general notification queue support") Reported-by: Jann Horn Signed-off-by: David Howells Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- kernel/watch_queue.c | 1 + 1 file changed, 1 insertion(+) --- a/kernel/watch_queue.c +++ b/kernel/watch_queue.c @@ -373,6 +373,7 @@ static void __put_watch_queue(struct kre for (i = 0; i < wqueue->nr_pages; i++) __free_page(wqueue->notes[i]); + bitmap_free(wqueue->notes_bitmap); wfilter = rcu_access_pointer(wqueue->filter); if (wfilter)