Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp504732lqb; Thu, 14 Mar 2024 19:15:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDTjBcvlOQJVf+rhxTpOUJfUV9p8Qx3sj7MWeNSm+mlUL/KVqyy4jXqYrhCNyIxqUxt/R2ahB6GGXXjQradyXJDkftyp6HCDjieccEEQ== X-Google-Smtp-Source: AGHT+IFvJJMFT16CzTDY2Yev8rfUrdAo6wV17jivHJCfM0ROtArs9/gxwue1sYTDMjEnVK4jvHUa X-Received: by 2002:a05:620a:124e:b0:789:c840:8295 with SMTP id a14-20020a05620a124e00b00789c8408295mr3610625qkl.18.1710468924476; Thu, 14 Mar 2024 19:15:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710468924; cv=pass; d=google.com; s=arc-20160816; b=q9Ea1HiZR1mA57BFSCsR59qTMk2P3R3x+QaPNxyxvqd7wKMKnyBWir7FFfgud+Qk9+ aoGfFDHzKgK6Y3a1EUnbqAWYDqoM9JkZrlEnjuxNdnZmccSPthuKiM9JCaEBWlg0F7My N5Z7kYoflqZhYUQbtkXGcc7Kuh7uH80dHhp8z1HS4Bf1f1WFydg82xnDHkgMWS1/lZ8U fjKf4nxihN0mqWnBLj2L7xnG7QAa9XX3BQE9B/7gFkNkLxVp1Pgs3eUYOt1lQ4rTjHeV ToQXwKewxXX2GsuogKJw6Wq8zbKmnZCteFtAwlFTuS/xBKdwlJ0JfCAeoiNqblsSu5om Mi9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=auto-submitted:precedence:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:message-id:to:reply-to :from:date:dkim-filter; bh=LPFPyjoxCn09mqTxGZ4Dtn39Maac/FaLQHwYzdkCGlI=; fh=sFxVhAPb6zWnY+gQo+LzUQUlNzjfEPspgsRwEDF3uA4=; b=eDekG1DE2qhB6ZIToEAoUNrhgah4D/cBsphetqWkD5ubiv4SsVa7SgT1f96EpVf9to pRK44nARSs/sI4SMRXa+L2AQ1egyNN0G1W/TMp+SIvyetos67pJ6I8GgoqlyCtsQJJFC 8yP3Cetq6p5D2TfDBeaSiBI4jCe5FC0lISW6jRwR4TfmA/JzBM6PYr8YKgs/Z6zJo+OG LY/Yl+OpANjnMdM8VtET+zw5MjivRZKWz4xU1ITsLk6tnlnyoJh4pYlzCaKVZGupUDNU r+5Q6rd3DFUc0ZTXCj57nM1dvdaJpwkBmWRECdyb3r1CAwsLencyeBNxABun6/BfMXEN xCGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-103982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l5-20020a05620a28c500b007887597cd9dsi3125767qkp.481.2024.03.14.19.15.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 19:15:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-103982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 360A51C21F67 for ; Fri, 15 Mar 2024 02:15:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB4FE7476; Fri, 15 Mar 2024 02:15:16 +0000 (UTC) Received: from outbound24.service-now.com (outbound24.service-now.com [149.96.6.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC7921A38CD; Fri, 15 Mar 2024 02:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.96.6.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710468916; cv=none; b=MFdmUt5qYXxX+x2SdiRZzG6r7m9ZTrVRNRByY1ZTZlEo0YiW619/VNcTlxLYVEVahHOKHOr4MuVqhQzu+tiRPy1t/h+expWw5ZTjz/yHQWuvDjHPbx2n3woTvy37igQqv73B1wM9GhAhdihEwHf99yEfmAxZ5xge24zmAtdM2H8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710468916; c=relaxed/simple; bh=uREuCvA2ZwkvR0x+FuEV8a7hjdww08RBXCd0/Pgn4HA=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type; b=GmlgR4R7R0+3Ho6Q5fIet4NMQmPxKXGHtK8pUgOOZ+noAe5ziaIn7evQlt7SBWBdOtgYt8PMFiXx+5C9DedLtdRRWGfbBQa74D7CtbjaQhcZca+CzQzunb0LsSbPYYryw5bM24iWnuwsV8z3q9qn39w/xToi4KeRFogIN6ptTgc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; arc=none smtp.client-ip=149.96.6.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Received: from app142018.ycg3.service-now.com (unknown [10.248.3.236]) by outbound24.service-now.com (Postfix) with ESMTP id 240FC401621B; Thu, 14 Mar 2024 19:15:13 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 outbound24.service-now.com 240FC401621B Date: Thu, 14 Mar 2024 19:15:13 -0700 (PDT) From: Red Hat Product Security Reply-To: Red Hat Product Security To: richardcochran@gmail.com, syzkaller@googlegroups.com, liujingfeng@qianxin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <5524723.20003.1710468913133@app142018.ycg3.service-now.com> Subject: Re: memory leak in posix_clock_open Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_20001_18246630.1710468913133" X-ServiceNow-Source: Notification-ec04d32213ede300196f7e276144b04e X-ServiceNow-SysEmail-Version: 2 Precedence: bulk Auto-Submitted: auto-generated X-ServiceNow-Generated: true ------=_Part_20001_18246630.1710468913133 Content-Type: multipart/alternative; boundary="----=_Part_20002_27205147.1710468913133" ------=_Part_20002_27205147.1710468913133 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Hello! INC2889741 (memory leak in posix_clock_open) has been updated. Opened for: liujingfeng@qianxin.com Followers: richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller@googlegroups.com A Guest updated your request with the following comments: Reply from: qiang.zhang1211@gmail.com [mailto:qiang.zhang1211@gmail.com] > > On Mon, Mar 11 2024 at 17:46, Z qiang wrote: > > > > diff --git a/kernel/time/posix-clock.c b/kernel/time/posix-clock.c > > index 9de66bbbb3d1..71d9d8c394fa 100644 > > --- a/kernel/time/posix-clock.c > > +++ b/kernel/time/posix-clock.c > > @@ -137,6 +137,8 @@ static int posix_clock_open(struct inode *inode, > > struct file *fp) > > > > if (!err) { > > get_device(clk->dev); > > + } else { > > + kfree(pccontext); > > } > > out: > > up_read(&clk->rwsem); > > Looks about right. Can you please send a proper patch? I will send a patch. Thanks, Zqiang How can I track and update my request? To respond, reply to this email. You may also create a new email and include the request number (INC2889741) in the subject. Thank you, Product Security Ref:MSG86727590 ------=_Part_20002_27205147.1710468913133 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hello!

INC2889741 (memory= leak in posix_clock_open) has been updated.

Opened for: liujingfeng@qianxin.com
Followers:&n= bsp;richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.ker= nel.org, syzkaller@googlegroups.com

A Guest updated your re= quest with the following comments:

&= nbsp;
>
> On Mon, Mar 11 2024 at 17:46, Z qiang w= rote:
> >
> > diff --git a/kernel/time/posi= x-clock.c b/kernel/time/posix-clock.c
> > index 9de66bbbb3d= 1..71d9d8c394fa 100644
> > --- a/kernel/time/posix-clock.c<= /div>
> > +++ b/kernel/time/posix-clock.c
> > @@ = -137,6 +137,8 @@ static int posix_clock_open(struct inode *inode,
> > struct file *fp)
> >
> > = if (!err) {
> > get_device(clk->dev);
> > + } else {
> > + kfr= ee(pccontext);
> > }
> > out:
> > up_read(&clk->rwsem);
>
> Looks about right. Can you please send a proper patch?
&n= bsp;
I will send a patch.
 
Thanks,
Zqiang

How can I tra= ck and update my request?

To respond, reply to this email. You may also create a new email a= nd include the request number (INC2889741) in the subject.

Thank you,
Product Secu= rity

 
Ref:MSG86727590 ------=_Part_20002_27205147.1710468913133-- ------=_Part_20001_18246630.1710468913133--