Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1052549rda; Mon, 23 Oct 2023 00:15:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9JNb43iPLDczvM5+0Vmq5h5UUQ8csZVCCrQWBa4qSlv/p/wehLDXD8kt2Vyq/nkMpVvQb X-Received: by 2002:a17:903:247:b0:1c3:64f9:45ad with SMTP id j7-20020a170903024700b001c364f945admr7839386plh.48.1698045353992; Mon, 23 Oct 2023 00:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698045353; cv=none; d=google.com; s=arc-20160816; b=JPWhNhLv4ElCt950rj19lkcT+/1nneevoyUBu80ZjVjnaCQtRseyJIgbR0wNXplttu VXVFc5dAzYlFIIxUHPWzyxgQjOdy6BiSE56db+dH4Iu2h5mxmP0+QFnlrqMiU1qmnwTN A2994Fjyqh8btzPQQttrZ04jwdBSh+8+x88lCXLkmb/JT9xl7nQR9wN5QOFaxfVY5VKp c3qpiJ3gCY42BMOivwyQyVM+g++WYByyJsbixC05Six8x4wp1qrvBMNc8iPKX0UHP9Nl HvExoKfexoQ3L5IN2yaeAFajqZw+5DrGAwVAqdinjbtmvF+bt0GJMejb6dM8iUIdTPMJ leeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=jaLZT/volRfMvStLWwIsWCJQhfFBuwq5WF2u5Gczy3s=; fh=1PVc5drkgXFHDOOIR/Tw/O16yxnF8/w7alCVUswuv60=; b=Mtr7Tb0JMgon2v48waeyfXxHr7vxxOe8Xwho7qv6u+nmIfNRP5/GYtoGBMl7gix4Xx 4SGVbSctHbLYtUvwIKfvpuFKX5TNcj7vJHfhpS/DE9acnOnQvdjBfrCO2wjEU58xPNY8 dhlRGzEtOlkVGz8QbxYulSiV5FaSm3K0xlRDl2qNVxnBtENGugS4Z5YI8EvEL2oqETYc /mC2nFtyG5EadUqakb2LzxnQGWyU2eVukssJ/ETQNEdYciocEw4dHSFAmD2vn3zFCaCb VjAyVqoyFthxvxdiTzCsLZsk0KDw6DrCNPb2UfGPQqw8OhvNciffvIQHLtZbs/SW8gTx 7L+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id h18-20020a170902f55200b001c4749ee72csi6056332plf.503.2023.10.23.00.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C796F80739F7; Mon, 23 Oct 2023 00:15:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229789AbjJWHPr convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Oct 2023 03:15:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbjJWHPp (ORCPT ); Mon, 23 Oct 2023 03:15:45 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11D93E6 for ; Mon, 23 Oct 2023 00:15:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 86C496343CC3; Mon, 23 Oct 2023 09:15:42 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id jzIxp6FNQNy6; Mon, 23 Oct 2023 09:15:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id EA21263DCAB6; Mon, 23 Oct 2023 09:15:41 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6rUs1NLI9QuN; Mon, 23 Oct 2023 09:15:41 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id C413C6343CC3; Mon, 23 Oct 2023 09:15:41 +0200 (CEST) Date: Mon, 23 Oct 2023 09:15:41 +0200 (CEST) From: Richard Weinberger To: chengzhihao1 Cc: ZhaoLong Wang , Miquel Raynal , Vignesh Raghavendra , dpervushin , Artem Bityutskiy , linux-mtd , linux-kernel , yi zhang , yangerkun Message-ID: <879960555.29268.1698045341596.JavaMail.zimbra@nod.at> In-Reply-To: <93b2d5ab-e36c-be08-7343-ef4ca16f991d@huawei.com> References: <20231018121618.778385-1-wangzhaolong1@huawei.com> <1381458025.20897.1697747248632.JavaMail.zimbra@nod.at> <891e554b-c133-6378-3a65-836fc9147e54@huawei.com> <441107100.23734.1697904580252.JavaMail.zimbra@nod.at> <93b2d5ab-e36c-be08-7343-ef4ca16f991d@huawei.com> Subject: Re: [PATCH v2] ubi: gluebi: Fix NULL pointer dereference caused by ftl notifier MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: gluebi: Fix NULL pointer dereference caused by ftl notifier Thread-Index: w2v3m0BEzKt4F2H6jp2F1AuzbEeVBQ== X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 00:15:51 -0700 (PDT) ----- Ursprüngliche Mail ----- > Von: "chengzhihao1" >>> If we add new ioctls to control creation/destroying of gluebi, then >>> gluebi mtd won't be automatically created when UBI volume is added. I'm >>> not certain whether this change will effect existing startup process >>> that depends on gluebi. >> >> Let's take a stack back. The sole purpose of gluebi is providing >> a way to run JFFS2 on top of UBI. > > Is it possible that someone runs ext4 on mtdblock based on gluebi, for > the advantage of wear-leveling? Unless they want to kill their NAND immediately, no. UBIblock hat initially an RW-Mode but it was rejected because UBI is not an FTL and will all dangerous setups. What I'm trying to say is, I'd like to avoid adding complicated solutions or workarounds just to make artificial stacking of outdated MTD components possible. Let's keep the big picture in mind. Thanks, //richard