From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C17A4CD13CF for ; Mon, 2 Sep 2024 06:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wFXOicDm8ZPhJQkPwxdeZCKCgdlFCP9u3Po4XCd5FI8=; b=29rIHqO+ffAQMrDlf1L5FZfpMu h3YntEkJfHwpqTdQ0Yr6KDgnQ00xGJMlPtgel0d2q8JZijcncwWWShml8tDlSn2pcHeLXLUE/da2o DMf8TPqvri9d08/zMoPEU4SDP8cs6WYr69qKxJcHUbDF44znQb1KhyabKDCSPntJLw27mVGmoGzWO ag7kYuV/q69y/STXB3Qwr6OmCMk691aRiCvxPq1kyRnDH+GgptJY1HPilkuTr4iJhtwumT2832n7D iZqn1Suv4IJr9NZuz+LI79fJlew9QE6SsEgMLJWECo6kQitzYbRR/uHvZrdYHWR8rseDMHXwl70KY xcCgganw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl0ue-0000000DBli-1nHG; Mon, 02 Sep 2024 06:51:44 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl0tj-0000000DBen-1fWS for linux-arm-kernel@lists.infradead.org; Mon, 02 Sep 2024 06:50:50 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6B0981C0005; Mon, 2 Sep 2024 06:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1725259843; 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=wFXOicDm8ZPhJQkPwxdeZCKCgdlFCP9u3Po4XCd5FI8=; b=GYiDgBi7fsC6FJRHS4iAFjNUOOGE9ncIMsnzijNTD6K6suLhXIRGmuP+izfuZuuJLUs/Pc JdGlg4S0L7u29q9hjC5/t9+Qunfwx64wnH9cZUUcTm4Nopz6OItZG+SOMKZJNDKJESgo6j ey+hlD7A0wCaP4Vqlql5AImwkS6alZ8bheE9aCdkK7Y4mPJD3oqG5FFEglbIDzmj5JrPTK U2MXtYi3T9lzT3SSL6PPigCj9OFdTxapa/tdM/1nBCY/DJR6+eWFWD9ZKoe6kB7f8Yj54M 6OmJAK2NLuSca+SHQ+7n5TosdbRYNTZUjw1/xX2Hp8/VvCB30RdbCOsc064lsg== Date: Mon, 2 Sep 2024 08:50:40 +0200 From: Miquel Raynal To: Nikhil Kashyap H R Cc: Linus Walleij , Zhihao Cheng , linux-arm-kernel@lists.infradead.org, michal.simek@amd.com, vigneshr@ti.com, richard@nod.at, tudor.ambarus@linaro.org, pratyush@kernel.org Subject: Re: Request for Input on UBI System Issues Message-ID: <20240902085040.1f3759dd@xps-13> In-Reply-To: References: <3f87ce50-ddd9-4819-9064-149d520151b3@iwave-global.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_235048_292685_9C68A943 X-CRM114-Status: GOOD ( 15.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Nikhil, > > PC is at ____cache_alloc+0x60/0x790 > > [] (____cache_alloc) from [] (__kmalloc+0x58/0xb8) > > [] (__kmalloc) from [] (kvmalloc_node+0x40/0x74) > > [] (kvmalloc_node) from [] (seq_read+0x17c/0x38c) > > [] (seq_read) from [] (proc_reg_read+0x58/0x6c) > > [] (proc_reg_read) from [] (__vfs_read+0x2c/0xe4) > > [] (__vfs_read) from [] (vfs_read+0x8c/0xa8) > > [] (vfs_read) from [] (ksys_read+0x74/0xc4) > > [] (ksys_read) from [] (ret_fast_syscall+0x0/0x54) > > [2024-06-11 08:35:05.502] PC is at ____cache_alloc+0x60/0x790 > > [2024-06-11 08:35:05.653] [] (____cache_alloc) from > [] (__kmalloc+0x58/0xb8) > > [2024-06-11 08:35:05.659] [] (__kmalloc) from [] > = (kvmalloc_node+0x40/0x74) > > [2024-06-11 08:35:05.669] [] (kvmalloc_node) from > [] (seq_read+0x17c/0x38c) > > [2024-06-11 08:35:05.672] [] (seq_read) from [] > (= __vfs_read+0x2c/0xe4) > > [2024-06-11 08:35:05.679] [] (__vfs_read) from [] >= (vfs_read+0x8c/0xa8) > > [2024-06-11 08:35:05.682] [] (vfs_read) from [] > (= ksys_read+0x74/0xc4) > > [2024-06-11 08:35:05.689] [] (ksys_read) from [] > = (ret_fast_syscall+0x0/0x54) ... > I am using a NAND device for testing UBI commands. My workflow > involves initializing the device by formatting it with UBI, creating a > volume, and attaching that partition. > > After detaching the partition, I perform some raw NAND operations. I guess modifying manually the content is supposed to crash, but not crash the kernel like that. What did you do exactly? Both in terms of modifications and access when it crashes (looks like you're using 'cat'). > However, when I attempt to mount the UBI node afterward, I encounter=20 > above listed *case no 1* and *case no 2* error message. > This issue suggests a problem with the compatibility of the UBI and=20 > UBIFS modules with the currently running kernel, which needs to be > resolved to successfully mount the UBI node after performing raw > operations. Thanks, Miqu=C3=A8l