Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp775533pxb; Fri, 22 Apr 2022 10:54:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkEEdUAHZDqmElGlwNafcQDK9aJQZu9l5AXUMq5YNCmUQCmHLqQ9XxEZ5LDrDCWrBDmpYN X-Received: by 2002:a63:214e:0:b0:399:1123:a388 with SMTP id s14-20020a63214e000000b003991123a388mr4871991pgm.66.1650650054531; Fri, 22 Apr 2022 10:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650650054; cv=none; d=google.com; s=arc-20160816; b=JkiCc9DmNoK7MwUU+xp2SoT2WunAk1sKJocRftlPggcX7rkys2FWL0rnwmoPwjKh0O RMzU/ex8zSa/pTQM6Fqss8sFICWBJnqY9eWttWAKaomEDdtrIUKDPChHbxkMVyvn8FwV ++ML8ra1OBh9xm8oPUP7ANY8Z0oqN2ZPuK3op2bH8gCM4y8556RD3cSkHXB07oX1+roA t+j5xDZNXXwszE6+LdZFOUP3IGblk0yAnTAJcPCC1jT/MISmNsmtVW+7/0lA5c4A3pzW 6F1G0YZNv4N0SDPqVcmfPVG/Mxa3Mlv2WeQEWDX5m7uaIbxrZMzz1/sfDBe/AiqJ4uyp 0EBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uM/Oj50tIAWZerlUnlpqULk7CRyqVBSO7k8REywdKgY=; b=I0xAKFgXa3NvA8zUxq0fPG26nVEd5FIbq/uyFKz1Coy1UB80RgjRYuuNSFf/UUgMmJ 9gJaFhj3E5/iFikGo4lVvyGdX2m4oj1IDTuCKpXHHJSgjT7Stk1BMh0yMgqRrHLhRloN SlAOGJ/a07ZC+bUnxA3dpHn9Zo/i0P0Ro5bF4ICshSL/taEleub3kqNWxFGyYXsz0wNj qQiAps7KLB8dkFfVod07/m864vZMsEZ1TKsAAASQSYHrsRx0LmIZ3TXykP2Xf6ncevyK 6lSfY5gGD7P9flMsOL9+Jf5wO76LxY6mTe3mS9Qvf1nNo7Qcdzhpi+jaYu08R7SyivRN kSwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nGMIJmBx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e7-20020a170903240700b0015b113c6bcbsi4540482plo.547.2022.04.22.10.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nGMIJmBx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F7F21044E2; Fri, 22 Apr 2022 10:37:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448144AbiDVNrL (ORCPT + 99 others); Fri, 22 Apr 2022 09:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388465AbiDVNrF (ORCPT ); Fri, 22 Apr 2022 09:47:05 -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 8A88958E74 for ; Fri, 22 Apr 2022 06:44:12 -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 25CCD620D4 for ; Fri, 22 Apr 2022 13:44:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39E27C385A4; Fri, 22 Apr 2022 13:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650635051; bh=h7Ecm6MBAXN+s9MsujnvJUtmyfXyAIH8LNTgBqNYka4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nGMIJmBxeBZYmhUuOcxv9FL3/A5lAEqMseKDyEMox0CvEpb1i53+tIFpUtFeX2AJs N9zBTswiTuY9wl35PTkKRfTywkP34vv8WtRb1tqVdtJy2gMjQEZWqVXxot2Nnf9Qiz rUdZKCSR4PRLlqqyOaqzKeFaQgWFGwjQ9FFHn7K8= Date: Fri, 22 Apr 2022 15:44:09 +0200 From: Greg KH To: =?utf-8?B?6IGC5rGf56OK?= Cc: jirislaby@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: vt: consolemap: Add missing kfree() in con_do_clear_unimap() Message-ID: References: <20220303020630.460257-1-niejianglei2021@163.com> <4a7fe3ca.68b6.17f6eacb952.Coremail.niejianglei2021@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4a7fe3ca.68b6.17f6eacb952.Coremail.niejianglei2021@163.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_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 A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Wed, Mar 09, 2022 at 08:34:47PM +0800, 聂江磊 wrote: > I found this bug by using clang static analyse checkers. I found that function con_release_unimap() is only called in this file(drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c). There are totally 5 times that con_release_unimap() is called > > (line 430, 466, 522, 599, 673) while con_release_unimap() is not followed by kfree() only in line 522. So I think it is a bug > > and make this patch. Given that we do not have any reports of this leaking memory, I do not think your analysis is correct, so I am loath to apply this, sorry. greg k-h