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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2079FC433F5 for ; Wed, 22 Dec 2021 08:06:09 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.250688.431713 (Exim 4.92) (envelope-from ) id 1mzwdB-0001LV-Fb; Wed, 22 Dec 2021 08:05:49 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 250688.431713; Wed, 22 Dec 2021 08:05:49 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mzwdB-0001LO-Bg; Wed, 22 Dec 2021 08:05:49 +0000 Received: by outflank-mailman (input) for mailman id 250688; Wed, 22 Dec 2021 08:05:48 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mzwdA-0001LH-00 for xen-devel@lists.xen.org; Wed, 22 Dec 2021 08:05:48 +0000 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [2607:f8b0:4864:20::533]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id f6944d37-62fd-11ec-bb0b-79c175774b5d; Wed, 22 Dec 2021 09:05:46 +0100 (CET) Received: by mail-pg1-x533.google.com with SMTP id m15so1437428pgu.11 for ; Wed, 22 Dec 2021 00:05:46 -0800 (PST) Received: from [30.135.82.253] ([8.218.232.85]) by smtp.gmail.com with ESMTPSA id c2sm1509154pfl.200.2021.12.22.00.05.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Dec 2021 00:05:43 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: f6944d37-62fd-11ec-bb0b-79c175774b5d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:date:subject:from:to:message-id:thread-topic :mime-version; bh=92tAYZJCH+R0jJnZ+FpbLB7ckqn85Vv7DdOdKvJSnNU=; b=PnNELN0IAm8UAxJ0y8Qq/9FJzVSSnK2lyHzCeFRsDCCibQ3+oAN3wQnRBpBoIZIm1m DAzbO23CRcPI4stwzbifdBWm3JcmbEpvIwCsmwOgXEahLGEqd/lfKRZ9TLg2cWXqvEvT IMvZ15jI6gvlDCCJD9ijikqzlceK0HndprpFjLI7pItZGfz8nyd+xUPZ+7IWwV8kmOzz 1hxHoLFbmW/7PuzG2BaFEfRt1vJ8mTg/f6Lrm9rsWagCwqD5ryCXf6Nh5EQTBcrnNBji hq5hGvvmdjC2ZwMNF0BkS7Zr0Ocsl3fOJFpuloibC71U9hp7+px2XSPYlP5FllQf2+EC rndg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:date:subject:from:to:message-id :thread-topic:mime-version; bh=92tAYZJCH+R0jJnZ+FpbLB7ckqn85Vv7DdOdKvJSnNU=; b=poymvZvviq/W8EQSHM7F4COHL1dHJCMU1oLEFqurUL2NisS78vYbY9CH32aSx4lMmm 2ohFaNr/7QbtYw1uN3kO05aiiXhooCZtirz251bdMlBE+ViWvlsQkM3susYubAxh2Pcg h09dTyfDdJHf7iW1QFgo3iRQiapavVt3LviIN78Du+MW6oJLg0JGwxWNSroD65nTRJfd IIEQpu0AX4plceh6aG4r9NINtTzFu160595sdwl9+ZkmhOYVePHnCUsuvRH/rgVOQjRW LUcTcDvzcnMuaUORgYQyo20Q2ZjLVajNF4CR3KA44wRdpjWXWh7n2+Ne7lL1b1+uAZ9r bAMg== X-Gm-Message-State: AOAM533MSp7ivWjG/Q8I/+L9CAWvs+28FWmEAiSjLDTMDbfun8Js3rDd DaSQN5ZluoR5n41+7fLQ0i9psuxLg7lt7mwM X-Google-Smtp-Source: ABdhPJwSnwULjY7vc364YWVlZSH3tOLhV8PPuOCDhiL/ZKdSHzTlClwXjsEb2LE7v1CPAruC34pzrg== X-Received: by 2002:a63:657:: with SMTP id 84mr1706685pgg.399.1640160344145; Wed, 22 Dec 2021 00:05:44 -0800 (PST) User-Agent: Microsoft-MacOutlook/16.56.21121100 Date: Wed, 22 Dec 2021 16:05:40 +0800 Subject: [BUG] Resource leaks in Xen From: Ryan Cai To: , , Message-ID: <62B51AB1-2C2B-402A-A7C8-5ADACE265DA4@gmail.com> Thread-Topic: [BUG] Resource leaks in Xen Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3723033942_215283608" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3723033942_215283608 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit Dear maintainers for Xen Project, I am writing you to report potential resource leak bugs. In the file /xen/tools/flask/utils/label-pci.c, the methods fopen and fclose may not matched when returning at Line 76, resulting in a resource leak. Looking forward to your feedback. Thank for checking. Locations, https://github.com/xen-project/xen/blame/25849c8b16f2a5b7fcd0a823e80a5f1b590291f9/tools/flask/utils/label-pci.c#L63-L76 Best, Ryan Cai --B_3723033942_215283608 Content-type: text/html; charset="UTF-8" Content-transfer-encoding: quoted-printable

Dear maintainers for <= span lang=3DEN-US style=3D'font-size:14.0pt;font-family:"Times New Roman",serif;= color:#070706;background:#FFEE94'>Xen Project,

 

 =             I am writ= ing you to report potential resource leak bugs. In the file /xen/tools/flask= /utils/label-pci.c, the methods fopen and fclose may not matched when return= ing at Line 76, resulting in a resource leak. Looking forward to y= our feedback. Thank for checking.

=

  

Locations, h= ttps://github.com/xen-project/xen/blame/25849c8b16f2a5b7fcd0a823e80a5f1b5902= 91f9/tools/flask/utils/label-pci.c#L63-L76

 

<= span lang=3DEN-US style=3D'font-size:14.0pt;font-family:"Times New Roman",serif;= color:black'> 

Best,

Ryan Cai

 

--B_3723033942_215283608--