From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 635B1316902 for ; Thu, 11 Sep 2025 14:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757599433; cv=none; b=KLDhArld0sCRZhFYty7VA59m1bAE9xFLG0gN9YkkgL7PykC7Cd3XvHn2vsjHt+srnO8qkjJ4/6qRQfsMVC5LAVvYRQMNc8em8AVIaGhyG0VUyfqm6Tg+OCyUDqx0PAVox7O6TuX8Ue2KUdxK3nPx4V4U8g9mhCcWkyvYjoR2PGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757599433; c=relaxed/simple; bh=4H1jk3gHqMGs0J9A7fWYd+JIW+b92sOQU1SeP+0OrhY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=aJ/fGPsYHCCpVTt1HnnJa/MfLK0DVAUGzlCz8JoY+2kgGPN3FejHAFTxcNmYdyLjhiDXKkfrOpzPqkARtFnRHKSAlyX4XnLzZ6y7/FAGKisXKJ0pj0tI02dtvJSRxSiGSykdKFM3aQ9yhcnm9sYtM1ITe2QF0uf7o3widdKZWsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=kahaefUb; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="kahaefUb" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id B18F04E40C8F; Thu, 11 Sep 2025 14:03:49 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 876D460630; Thu, 11 Sep 2025 14:03:49 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 40340102F2833; Thu, 11 Sep 2025 16:03:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1757599429; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=CDK2GVhKguRdAprpwq3TCBc/3qnYl+uGZ7pjzM5YAm0=; b=kahaefUbv/GwS3Tf82x07gIbaokOyyoAL8ctxaE9NVsC1xGcEeT6p0af1damiTMWd/F8uk rOSBSewqzHpSEnRVkrYge1mFKF+8t3vnJz+GK4tapukLMwrwtjpdC/yTzsyFUiDAuvyclB 9emKDQqt7QnDMJmYamryPcpZk1MilFgpilabDDWceTuEZoElYRb2bg9CXKUFfHVI2W8eMd ndjbbiJT7MoVO18nOrjCeIrF/qW56ma7PjQRBm1R7EGiPx1SK6I0OvkhsZv2TjJmVNgAKI sVEm4/tFcYTE/UvCiJ4jRyEEqgMxUIaCnZijx3YxL8+47pKQ7U65S7phKN9HHA== From: Miquel Raynal To: Gabor Juhos Cc: Santhosh Kumar K , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Daniel Golle Subject: Re: [PATCH v2] mtd: core: always verify OOB offset in mtd_check_oob_ops() In-Reply-To: (Gabor Juhos's message of "Thu, 11 Sep 2025 10:33:48 +0200") References: <20250901-mtd-validate-ooboffs-v2-1-c1df86a16743@gmail.com> <175708415877.334139.11409801733118104229.b4-ty@bootlin.com> <454e092d-5b75-4758-a0e9-dfbb7bf271d7@ti.com> <87348tbeqg.fsf@bootlin.com> User-Agent: mu4e 1.12.7; emacs 30.1 Date: Thu, 11 Sep 2025 16:03:39 +0200 Message-ID: <87frct9jd0.fsf@bootlin.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hello, >>>> Applied to mtd/next, thanks! >>>> [1/1] mtd: core: always verify OOB offset in mtd_check_oob_ops() >>>> commit: bf7d0543b2602be5cb450d8ec5a8710787806f88 >>> >>> I'm seeing a failure in SPI NOR flashes due to this patch: >>> (Tested on AM62x SK with S28HS512T OSPI NOR flash) > > Sorry for the inconvenience. > >> Gabor, can you check what happens with mtdblock? > > The strange thing is that it works with (SPI) NAND flashes: > > # cat /sys/class/mtd/mtd0/type > nand > # cat /sys/class/mtd/mtd0/oobavail > 0 > # > # hexdump -n 2048 /dev/mtd0 This is not mtdblock, the report was using mtdblock, not mtd directly. I don't know if that actually makes a difference, but it is worth the try. Santhosh, please send a revert for now. Thanks, Miqu=C3=A8l