Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1625306yba; Fri, 17 May 2019 02:28:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6qoDz9cumNyW0DLY6dThyuoojXzYx7ElYGnul4PS1mB+vIkvU6Nx/mOgxaTqyMUUSbno6 X-Received: by 2002:a63:c24c:: with SMTP id l12mr56008911pgg.173.1558085280596; Fri, 17 May 2019 02:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558085280; cv=none; d=google.com; s=arc-20160816; b=FpMGtbtrAh7kKddt/MVKM8EDG1ielk2HIbHHL+aERqI2e5MiBsH3pHp6UpqU6TZJqq Rtm/D23BEmMEWRgNKI6CGUQaYQvgdU/aR4rXKSN1yl1ZBwTs71nCjKDndjWVBY4MZ8em 7LZpy1Mqrc5tlav84FLIYXv/xPoT+xadjO/qiNoN6MWwZP4Pbn6XDfs/k6zMGsHzaj/H j5tmUdJvHKteeuFJiwxaH+ywhYChc1+hLrq7ycYfaGJ/IGijieo9VZA3w2eMhalnCNbr 1ksGyGejMPLLE5vtmIj53QcvtND+0/nrPA6p+UFl2qAPSmpjfCJgZ+/rOJY5Be1ZWKSw 8jRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sEvENpqG7iRDJFzplTTWGKcKFWzhWauRstxh0Bhc8E4=; b=oybsmJE8F9Sng0AG1QgnJXifn7GJsRizGpS/fOHjFsPrlqyVoZNK2kec2Df6Afi5CR p/XiCHuStDFTfS//W39BL+Ah0jOmKY3/eGCvtrfsuBg1k5O3u5ruRqSvmNi7BxJIPdDg 8w4HxwNeNutUBL+llgwTj/08AAAoon1aQFZ+/DH8TQlQ1pDXe+etnrt6achtmixDNS0t VoJ2N+24TrjmYdMywzeOcSikaOsYk8s2wuX3mV6mC3azcJqfKN79SxCbet1JRaCVc1ss B2jGcDl12RgUC9iS3Z5umG9llMks6qr+2zl91Z2fPVTnqDg+PJ+HeXKhY4hG7Rx/oyKb oV7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si7323781plr.112.2019.05.17.02.27.46; Fri, 17 May 2019 02:28:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728001AbfEQI06 (ORCPT + 99 others); Fri, 17 May 2019 04:26:58 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54097 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728440AbfEQI06 (ORCPT ); Fri, 17 May 2019 04:26:58 -0400 Received: by mail-wm1-f65.google.com with SMTP id 198so6038985wme.3 for ; Fri, 17 May 2019 01:26:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sEvENpqG7iRDJFzplTTWGKcKFWzhWauRstxh0Bhc8E4=; b=fyBND6S0FBdZuHKJYJWpcSL6YHlII/x4g7UdIWq24ZQgRH4HLihdgphY54QLC7gOmV A1ylSwM1KrHQlps68M085zqRCm2fUBVOKFnE4L9gyEfCPu1JtH0YCfUT18dApL3wec8a knh5+s0TOeT00GWCW+Ap3yv19qE6snWHG62MEcQlyLpM6q4Tk5BXgilUC7SLwAN7xfpX 5IW2ioJiSRfpbvj/9iqq37Sbn1I6QH5sIdD15F+HbcP3ZIlHWjlyCu6oFccv3/q12K5d U2rhqhjmXjUqEWDdEBHHlCPsgzcKyG39g5e7PuB7UFWYyemXDJOZRxLmCyGzZ1EyBd44 fn/A== X-Gm-Message-State: APjAAAXct1wCABbzrTMGLzvqbiYxzAv/p0MqhYMi6rF1jzjp6rvT2DXw iVHzpFeJ9GNNJNgR3pVwg7dDUA== X-Received: by 2002:a1c:c015:: with SMTP id q21mr1265915wmf.75.1558081616187; Fri, 17 May 2019 01:26:56 -0700 (PDT) Received: from steredhat (host151-251-static.12-87-b.business.telecomitalia.it. [87.12.251.151]) by smtp.gmail.com with ESMTPSA id a5sm6714144wrt.10.2019.05.17.01.26.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 01:26:55 -0700 (PDT) Date: Fri, 17 May 2019 10:26:53 +0200 From: Stefano Garzarella To: Stefan Hajnoczi Cc: netdev@vger.kernel.org, "David S. Miller" , "Michael S. Tsirkin" , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Jason Wang Subject: Re: [PATCH v2 2/8] vsock/virtio: free packets during the socket release Message-ID: <20190517082653.aymkhkqkj5yminfg@steredhat> References: <20190510125843.95587-1-sgarzare@redhat.com> <20190510125843.95587-3-sgarzare@redhat.com> <20190516153218.GC29808@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190516153218.GC29808@stefanha-x1.localdomain> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 04:32:18PM +0100, Stefan Hajnoczi wrote: > On Fri, May 10, 2019 at 02:58:37PM +0200, Stefano Garzarella wrote: > > When the socket is released, we should free all packets > > queued in the per-socket list in order to avoid a memory > > leak. > > > > Signed-off-by: Stefano Garzarella > > --- > > net/vmw_vsock/virtio_transport_common.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > Ouch, this would be nice as a separate patch that can be merged right > away (with s/virtio_vsock_buf/virtio_vsock_pkt/). Okay, I'll fix this patch following the David's comment and I'll send as a separate patch using the virtio_vsock_pkt. Thanks, Stefano