Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1041712rda; Sun, 22 Oct 2023 23:46:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/i1ajmENW/G8kBWV1yeRfhvJF0t2x/R48qAED6dkI4N9P+MeQJjAGAiKFrF6K9/ft0t6Y X-Received: by 2002:a17:902:cec9:b0:1c9:b207:d412 with SMTP id d9-20020a170902cec900b001c9b207d412mr5791242plg.37.1698043597621; Sun, 22 Oct 2023 23:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698043597; cv=none; d=google.com; s=arc-20160816; b=Z0jzOuPDZieRZEALAMxp5tZjvvZkwi+pUVKek3H2iUJe9AXApLskfwfFaebXQrJFb/ pDEvvePr5vq/hq/ZplknoagLzrRFDJGCvJVsrCOjNOXI3ubhiZiJkolKzXmk/IjP0Ejn ATS1LNvNcGydaEbBowlQZI7ir1Bn4kNa1QzuMhOa4O2sdiYL9T6L809Xq1FvVvs6Z4t8 IMDmVMLiXETKV4kn+vh/1idR/pryETaJHORTN4jHuphZApmO6PB0J2gRTFKqhPRaH2tx g6+zlIgfY8wWu7KZz7zT8K+RIIZDjKcM7RldKJWGgoRAbF6FyvvNohIN9RisECMTM7CJ g5+w== 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=+UmQao0IRvEtNUHIGkE2apJoT9H8Dl1U5aGdqTBG5W4=; fh=J5JXyAtKXNIQCdUpTV9k7Ga9aCPtfhKhT8NUioiS52c=; b=DA14cMqelbiIt4zVLNYxyYW3b+fF0PYAumlbFwIoC9kOuyfMtR/Pv+0OnEjan4LHhv QYtQXl/qkwxsqsUYpjCLzrbsSo2CKx3T9X8VH0SFYDRFMTfx6NxH0HYQGRIDqmEivbLT bOe8HAAf0liBGKXSwVYLgLZHxh8ta1tOk1o8yAr6BFClNuBbVEOhgOqaFeoEwntP4OfH gOsgQKVk9Ka0kx9zQBmGZzy0qpRWAPxG8aUmpD5nuarYBn64hh2xx2Ymgra8Z2Usj1Ay wVpTTcdfAIMOrRiPuUam/B93dHU2vSz1hx/jQ61oDCqUdh66VOEobtGMsxWnhadJLN/n /Uew== 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:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id o7-20020a170902d4c700b001c774a25b3bsi6018644plg.233.2023.10.22.23.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 23:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 4CB13806A639; Sun, 22 Oct 2023 23:46:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233540AbjJWGqO convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Oct 2023 02:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233537AbjJWGqM (ORCPT ); Mon, 23 Oct 2023 02:46:12 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 994D4DF for ; Sun, 22 Oct 2023 23:46:08 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id C2FF96343CB8; Mon, 23 Oct 2023 08:46:05 +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 OIXc1Ua0y-Zo; Mon, 23 Oct 2023 08:46:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id EBFBE6343CC3; Mon, 23 Oct 2023 08:46:04 +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 Yfd4N8mtWQUK; Mon, 23 Oct 2023 08:46:04 +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 A3DEC6343CB8; Mon, 23 Oct 2023 08:46:04 +0200 (CEST) Date: Mon, 23 Oct 2023 08:46:04 +0200 (CEST) From: Richard Weinberger To: ZhaoLong Wang Cc: chengzhihao1 , Miquel Raynal , Vignesh Raghavendra , dpervushin , Artem Bityutskiy , linux-mtd , linux-kernel , yi zhang , yangerkun Message-ID: <1141312317.29142.1698043564332.JavaMail.zimbra@nod.at> In-Reply-To: <9b543be7-a858-c982-3fcf-408701ae4ac9@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> <9b543be7-a858-c982-3fcf-408701ae4ac9@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: K47lzcDEhIbqXCtxL40/66d/VssadQ== 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 23:46:24 -0700 (PDT) ----- Ursprüngliche Mail ----- > Von: "ZhaoLong Wang" > An: "richard" , "chengzhihao1" > CC: "Miquel Raynal" , "Vignesh Raghavendra" , "dpervushin" > , "Artem Bityutskiy" , "linux-mtd" > , "linux-kernel" , "yi zhang" , > "yangerkun" > Gesendet: Montag, 23. Oktober 2023 08:41:12 > Betreff: Re: [PATCH v2] ubi: gluebi: Fix NULL pointer dereference caused by ftl notifier >> >> IOW, no mtdblock (hence, also no FTLs) on top of gluebi. >> >> What do you guys think? >> >> Thanks, >> //richard >> > > > JFFS2 needs to work on the block device, so the mtdblock needs to work > on the top of gluebi. > > This is directly reflected in the jffs2 mount command, such as > > # mount -t jffs2 /dev/mtdblockX /mnt/jffs2 The limitation is long gone. It comes from the dark and old times where Linux was only able to mount block devices. You can do: mount -t jffs2 mtdX /mnt/jffs2 Thanks, //richard