From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C2B7C2D0A8 for ; Mon, 28 Sep 2020 17:33:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AE4321548 for ; Mon, 28 Sep 2020 17:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601314399; bh=BbQZ8tSywDvWbFN1YnGF4w/TGPoQxXgrd1ElwxGdbhw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=L00QvvtJ0OCvHq9Es0K4thNMF4XTQR4ozRaYuxaUePpToM2yCSA5TPqcDAl76JNoP WeOmttbCZ25qKTqOwHvAzdASM8c6Euzb4v3nq8lNUIIqPaczyYM8+FRXjlNWgYitcd UhWfZcM51XSIl6C9Pivmy5n93H3i1Sfo9TWxkYec= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbgI1RdS (ORCPT ); Mon, 28 Sep 2020 13:33:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:45972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbgI1RdS (ORCPT ); Mon, 28 Sep 2020 13:33:18 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 79752208D5; Mon, 28 Sep 2020 17:33:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601314398; bh=BbQZ8tSywDvWbFN1YnGF4w/TGPoQxXgrd1ElwxGdbhw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ui+5Zb8BG0wPdwgKuFLqBb2T6Ra/vU/91TsjiQyGm7mjfxUaLlq81YISb4lrkqGhd nidheQn98Uhe+DmTnV2ty+Mp0iZmQuVKtnLIFRxSWJgGA0paHFa8kdAArBGVJe/pUT UiOFnQZf7twe3VHVqc8dLU1zKUi7dHPVqUS/WMd4= Date: Mon, 28 Sep 2020 19:33:25 +0200 From: Greg KH To: Stefano Garzarella Cc: stable@vger.kernel.org, io-uring@vger.kernel.org, axboe@kernel.dk Subject: Re: [PATCH 5.8] io_uring: ensure open/openat2 name is cleaned on cancelation Message-ID: <20200928173325.GB2042505@kroah.com> References: <20200928153507.27420-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200928153507.27420-1-sgarzare@redhat.com> Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Mon, Sep 28, 2020 at 05:35:07PM +0200, Stefano Garzarella wrote: > From: Jens Axboe > > [ Upstream commit f3cd4850504ff612d0ea77a0aaf29b66c98fcefe ] > > If we cancel these requests, we'll leak the memory associated with the > filename. Add them to the table of ops that need cleaning, if > REQ_F_NEED_CLEANUP is set. > > Cc: stable@vger.kernel.org > Fixes: e62753e4e292 ("io_uring: call statx directly") > Reviewed-by: Stefano Garzarella > Signed-off-by: Jens Axboe > Signed-off-by: Stefano Garzarella > --- > fs/io_uring.c | 2 ++ > 1 file changed, 2 insertions(+) Thanks, now queued up. greg k-h