Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp130675rwb; Thu, 27 Jul 2023 10:18:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlF/Akjt1DclyrC5mAnX3ij8zxRZNBtGBk2WXk6sv/Ivw3V0cnYZKn8Dtu/kCXOw8gXHou3D X-Received: by 2002:a05:6a20:5482:b0:125:3445:8af0 with SMTP id i2-20020a056a20548200b0012534458af0mr4166023pzk.7.1690478296962; Thu, 27 Jul 2023 10:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690478296; cv=none; d=google.com; s=arc-20160816; b=BuIc+khWxYH4Pp8Ps9lMGumURyJA7az3WtxonwtyFAzKhUm7LWzCJnQskktwMJToaE VoP8tBtbR892/TEkxplxwVKgIChnfbboWpU5qFf5c/SxYzOpBmLt7wdLfg2xR5roBVQ+ OIMo5KdUF4Ku3dgoMpQEZgRC+j/XgRufwqbKqRglWfszcClbGkA5klRBgxG9GkwaGPCB IGcpjDtIFlYvdcnm86W3vJNfwptir9Tvh0mmIp/DJoDS2irzJs7G4ItwG/4l+aaK0NCX I+Nx/oR8TZWuAAICerF3fnUCKfGGHvZjhsohntiL3et6Cdbhstk0muBcsj/Wj1yQr0GT meYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=kdGTSaZttWzXE70nDOUK2tohVaGSllQiBwLy7anvxFA=; fh=THe7WeyPL9TmnW9+uMJa5WK0lNnZiyW8IObKvofU9xU=; b=A0mOIFow3WnGv9ruIQYo49dEztGN7ccrf7AQw7IlmD7AWswEJhylyBWDvOeF/9iZ3Y /iUXWoAHVEhi+7eiuIIHc+SU6/R4dZwKay9ijNppDmj7e32ELAVuL0ocaiKVIOPOE9QV rFlSavNphyIv8vfjIpw3QoTdbHFsjlKq0mCP+6JuI8QFYCbQ7Pk8gdNj564LOq5JG+to tLoZgGTpfHKIaIieGie2iwm/uH33dJGTj9J7Ascxtr5KOCNaMGdZfJ6vJNQxfxQacsXs kZJwp513pMN4c1v5QZsSrHlLtBsqm/8wltvHFAXtgRUlkLlRLY2RuHBxZ03xawX2ZeCP kgoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gwbaqSDN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w62-20020a638241000000b0055c66f42eeasi1449941pgd.392.2023.07.27.10.18.04; Thu, 27 Jul 2023 10:18:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=gwbaqSDN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbjG0QgX (ORCPT + 99 others); Thu, 27 Jul 2023 12:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjG0QgW (ORCPT ); Thu, 27 Jul 2023 12:36:22 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DED4F272C for ; Thu, 27 Jul 2023 09:36:17 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id B1F741C0008; Thu, 27 Jul 2023 16:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1690475776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kdGTSaZttWzXE70nDOUK2tohVaGSllQiBwLy7anvxFA=; b=gwbaqSDNeRzur4+HiLF4Q+AQOYWLgNup+cTf/E7YPQ0wFFV/oAHtQNdCkDkP9hZKhorxkD xZI2kw9GgScfprx+CUj/47lshiiGDujDREUPR3wLGCq0xpu9NjzgXy4xbQ/XZQqElnc17j eT+rGkvKqwJPjo2YO3LqPKXBKPIHuxphZuDxPvDaKbz5wzd/Tng4p9CqeWFqZs0wr8p0X0 uy78U2ZWnXnYX2BqQ0t5J50JLJZ7APZ7mdkbJxb6L5z3QdCueQIiq/tSSHQ14NqWvuErUz tJkotP81jQRmfJlGM8O/ZP3ZG7CVnXiMxUwRnekoI7AjQuBYbCl31PKbuK6lSg== Date: Thu, 27 Jul 2023 18:36:11 +0200 From: Miquel Raynal To: Andy Shevchenko Cc: Alexander Usyskin , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Tomas Winkler , Vitaly Lubart , Zhang Xiaoxu Subject: Re: [PATCH] mtd: fix use-after-free in mtd release Message-ID: <20230727183611.37d01f51@xps-13> In-Reply-To: References: <20230727145758.3880967-1-alexander.usyskin@intel.com> <20230727172013.7c85c05d@xps-13> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Andy, andriy.shevchenko@linux.intel.com wrote on Thu, 27 Jul 2023 18:58:29 +0300: > On Thu, Jul 27, 2023 at 05:20:13PM +0200, Miquel Raynal wrote: > > andriy.shevchenko@linux.intel.com wrote on Thu, 27 Jul 2023 18:12:04 > > +0300: =20 > > > On Thu, Jul 27, 2023 at 05:57:58PM +0300, Alexander Usyskin wrote: =20 >=20 > ... >=20 > > > > Fixes: 19bfa9ebebb5 ("mtd: use refcount to prevent corruption") =20 > > >=20 > > > Closes: ? =20 > >=20 > > Did I miss a recent update on the use of Fixes? =20 >=20 > They are orthogonal to each other. Actually Closes goes closer with > Reported-by. >=20 > I believe both of them needs to be added (by I might miss something). >=20 > > I thought Closes was > > supposed to point at a bug report while Fixes would point to the faulty > > commit. =20 >=20 > Correct. >=20 > > Right now I feel like Fixes is the right tag, =20 >=20 > Nobody objects that (see above). >=20 > > but if you have a source explaining why we should not longer do it like > > I am used to, I would appreciate a link. =20 >=20 > Since you know about Closes already, I think there is nothing to add. Ah sorry I misunderstood your first e-mail. I thought you were suggesting to replace Fixes by Closes. Sorry for the misunderstanding :) Thanks, Miqu=C3=A8l