Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1153550rwr; Thu, 20 Apr 2023 10:37:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bl7/6AC3ZaWqUdZHtuH8uM7coA7Z2ElqyM9Hd2IxiibmOirVdOdTcpLXp0Hc0olNWUmxx+ X-Received: by 2002:a17:903:228d:b0:1a6:565a:16cb with SMTP id b13-20020a170903228d00b001a6565a16cbmr2765741plh.3.1682012266787; Thu, 20 Apr 2023 10:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682012266; cv=none; d=google.com; s=arc-20160816; b=UH/OuJsDje+rj4BBFubR4CrlYaDTxgUD2tl64yzgULYpxXy4h+LHFHcT5HPCTbRqMA ItBicjF9mJsu80t5DuQO39MfBeICtiosEmjY71u3Rs06bWw/qGcP3+EUFr614OEg9gKi 8R6fXs3r2v6TCPIajAZv1bik99/LPh9P52ZZPHUqB3gBCmvyiL9CLcK1OQ8z+XkH896M hKomQpMeZe03FQk43LQTorTnBN/wpO4+gOxVLGub4jBJx3VeIpGjFVVyWPv6IHGjc8t+ zL/fDBE5hNLAK86zvkxltnVymDPMfbD1SZ3IiwexCvqM94l7rBSvyZHxgevrNd0LP61k Xx6Q== 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=NPlx5X3kxV0Thbrng/otSCpoXrgh1IFdJAIs6aD+He0=; b=kf9kOdqjK2d8Uim8fxKWI7PuYz798m3FhE+4HvNM+CZ1RQtODhakj/jANwAfGqU32q 34r5avBzBoDt14DjPrKIAuvaqCD5JJa6JbbrcNFPSzy0QX3obeV00bsyB5l8c6acyg20 N6gSAiTqCojQCZiEXqkoCVGAUmPZqImyBYPh8zH2eUmVmyQ5mXGt11EtLzweniLPLqP0 /18/gTOpnkRzY8UBLqT8CYCnuqTpsHXIYER/+qUcuMQ+3LbgM8mm0HKu5XqnDY6wevU1 MUo69bMHgmRIahjFQGQTQtplij25mqM5BFBPvNHsNLpH0tQosw1gAmQieQ6lWCxdWFcu Y1iw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a170902db0800b001a1a5d21d4csi2341228plx.208.2023.04.20.10.37.35; Thu, 20 Apr 2023 10:37:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230049AbjDTRds convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 Apr 2023 13:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjDTRdp (ORCPT ); Thu, 20 Apr 2023 13:33:45 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 633554EE3 for ; Thu, 20 Apr 2023 10:33:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 12C8664551D0; Thu, 20 Apr 2023 19:33:20 +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 jA3v9_EJX3hK; Thu, 20 Apr 2023 19:33:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A6C3C63CC166; Thu, 20 Apr 2023 19:33:19 +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 ILxeHMeUlP07; Thu, 20 Apr 2023 19:33:19 +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 88AEB64551D0; Thu, 20 Apr 2023 19:33:19 +0200 (CEST) Date: Thu, 20 Apr 2023 19:33:19 +0200 (CEST) From: Richard Weinberger To: Yu Hao Cc: chengzhihao1 , Miquel Raynal , Vignesh Raghavendra , linux-mtd , linux-kernel Message-ID: <977347543.226888.1682011999468.JavaMail.zimbra@nod.at> In-Reply-To: References: <687864524.118195.1681799447034.JavaMail.zimbra@nod.at> Subject: Re: BUG: divide error in ubi_attach_mtd_dev 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: divide error in ubi_attach_mtd_dev Thread-Index: HhyYkKa9UL/icxFryd8ZleAEcsQTSA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR 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 ----- Ursprüngliche Mail ----- > The kernel is in qemu. We find that the `mtd` is from > `mtd = get_mtd_device(NULL, req.mtd_num);` in function `ctrl_cdev_ioctl`. > And we are still trying to figure out what MTD is. Can you please share the qemu command line? Within Linux you can query /proc/mtd or /sys/class/mtd/ to get infos about the MTD in question. Thanks, //richard