Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp908483rwo; Wed, 2 Aug 2023 06:09:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGS/CKbuajK/ExjtpdwXKxBqMKFIwMQesL3X+Za5qQwsvlpmQ9c5vTSBwtTA8CxKjLorDah X-Received: by 2002:a17:902:bd4b:b0:1b8:8af0:416f with SMTP id b11-20020a170902bd4b00b001b88af0416fmr15101681plx.1.1690981756924; Wed, 02 Aug 2023 06:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690981756; cv=none; d=google.com; s=arc-20160816; b=uuU4fJX8wTHZ+ANdFX8UmcXlLE3W6Kb937/EI6J3aLFYh4G2mKBn6i4sDmlG+nVwJw mPACwNHop0XaDdyW1i4gFEErglXd4xv2SeIJbzv7f8OnmIQ7JVrpUZ5KN/tzGUx0J572 +WqxA0nkcKHkeoNelmcZ+WZt0+qrJw27K3Izf8J9EksuVsn4i3limCEPTGkDEs7D1Gmc Sl8hqXvHN6DKzG0LtzZ4YCN4RtShz7dlesLVBWEBIBP2tVBxuLBCD1Jg1MNLeYrGnaeL U+ZfQWWTejtA1x+OvH13Ydi/xIAhGedq8+5+FPH5Cb1hW0Sdr53NgG7jY8AbMDJW5LFC VI3A== 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=8dOawE5kxCNhvhOKy8LNvd/QWehP28IWgnL5mXG3Rew=; fh=3/loOFykxImMNPvWWr/nmqRv9iGVNnqcgIKD/wVD44w=; b=Yw6gxuhQmonbBlSdEkeFtQIbH0p0V27SbOck8KmmuoDmjWi5hqnHdi46qPNj1I/Edj QGgl8HP3v3BMTjzrO1h8+i4ZJqF9HRBAhbhm4pkPGSceYauN3CLkMyuPe9x7vGyFqXf/ uNhSKVJ9J/CfFeZAdvlujhbc+yBYLWssQuGErF+RQwtLVA2gKJbNxK3A7CZkALdAyHPf T8S7ZXgTE5S+4eft5nJ2dZQ4bWFzIbg16QHJDB3bFEe3n1GgIMJo0KbWBmab0bt8+FqV UtFO0Wcfz+yf9BO64W5qqdq5K+XMrPE5nOxwpYLzht70wI0WJd02OxHcTCxYl9JnFfuT yDdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=P0MhsdyM; 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 jz7-20020a170903430700b001bbd5fa7d66si9086822plb.164.2023.08.02.06.09.02; Wed, 02 Aug 2023 06:09: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=P0MhsdyM; 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 S234595AbjHBMpH (ORCPT + 99 others); Wed, 2 Aug 2023 08:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234141AbjHBMpF (ORCPT ); Wed, 2 Aug 2023 08:45:05 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CBFC30F1 for ; Wed, 2 Aug 2023 05:44:36 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7AC5C20004; Wed, 2 Aug 2023 12:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1690980270; 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=8dOawE5kxCNhvhOKy8LNvd/QWehP28IWgnL5mXG3Rew=; b=P0MhsdyMGZ3XJmzlSk4CllYXA1geVTZWmr2Fjyv88Q7ZPbHTwBOY5k2DAO10JT5OBplmOH AkBEeUvauITGmK6ZBJFuyrm00gpgRlP2bOcLdHV440gFQUtFiggkLxUePTWXmrNCKkpqhY EGBLCDf8ZfXprGt5SE+XdzM+LdOBAWV3F79mVQH6J9Ho+ErqTC05FGasNo8+wDhuEmugMM P2t52sXwv0DEpNOjNaTUYrGW2Nnu0EhVpz4IgSJ1QQ6q6zE2V6BXxF5ax4F47OMdGcjYSa OYxOfE1neZ7jzISDyTQOAr6lACPpVNakre4JdzAU23aukqgVknLj69Y+J4mtjA== Date: Wed, 2 Aug 2023 14:44:26 +0200 From: Miquel Raynal To: "zhangxiaoxu (A)" Cc: "Usyskin, Alexander" , Andy Shevchenko , Richard Weinberger , Vignesh Raghavendra , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Winkler, Tomas" , "Lubart, Vitaly" Subject: Re: [PATCH] mtd: fix use-after-free in mtd release Message-ID: <20230802144426.2411bba2@xps-13> In-Reply-To: References: <20230727145758.3880967-1-alexander.usyskin@intel.com> <20230727172013.7c85c05d@xps-13> <20230727183611.37d01f51@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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 zhang, zhangxiaoxu5@huawei.com wrote on Mon, 31 Jul 2023 09:35:42 +0800: > =E5=9C=A8 2023/7/30 19:10, Usyskin, Alexander =E5=86=99=E9=81=93: > > Miquel, is this patch helps with your original problem of devices not f= reed? > >=20 > > Zhang, is this patch helps with your problem with KAsan? =20 > After this patch applied, the problem can still be reproduced. Did you test my patch as well? Does Kasan still complain with it? Thanks, Miqu=C3=A8l