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 X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56A6CC433E0 for ; Thu, 25 Feb 2021 08:13:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A35964F0D for ; Thu, 25 Feb 2021 08:13:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235279AbhBYINc convert rfc822-to-8bit (ORCPT ); Thu, 25 Feb 2021 03:13:32 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:60531 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbhBYIN1 (ORCPT ); Thu, 25 Feb 2021 03:13:27 -0500 Received: from xps13 (lfbn-tou-1-813-134.w86-250.abo.wanadoo.fr [86.250.253.134]) (Authenticated sender: miquel.raynal@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 369DC200005; Thu, 25 Feb 2021 08:12:39 +0000 (UTC) Date: Thu, 25 Feb 2021 09:12:38 +0100 From: Miquel Raynal To: =?UTF-8?B?w4FsdmFybyBGZXJuw6FuZGV6?= Rojas Cc: Brian Norris , Florian Fainelli , Kamal Dasu , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, bcm-kernel-feedback-list , Linux Kernel Subject: Re: [PATCH v2] nand: brcmnand: fix OOB R/W with Hamming ECC Message-ID: <20210225091238.4158cb3a@xps13> In-Reply-To: <4DF5654C-1412-4E89-BF21-60C649EEDF4F@gmail.com> References: <20210222201655.32361-1-noltari@gmail.com> <20210224080210.23686-1-noltari@gmail.com> <20210225084838.34bbdbff@xps13> <4DF5654C-1412-4E89-BF21-60C649EEDF4F@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Álvaro, Álvaro Fernández Rojas wrote on Thu, 25 Feb 2021 08:54:09 +0100: > Hi Miquel, > > > El 25 feb 2021, a las 8:48, Miquel Raynal escribió: > > > > Hi Álvaro, > > > > Brian Norris wrote on Wed, 24 Feb 2021 > > 13:01:13 -0800: > > > >> On Wed, Feb 24, 2021 at 12:02 AM Álvaro Fernández Rojas > >> wrote: > >>> Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller") > >> > >> FWIW, I could believe this was broken. We weren't testing Hamming ECC > >> (nor JFFS2) at the time, so it could easily have obvious bugs like > >> this. > > > > Right, you should probably limit the backport to the time when raw > > accessors got introduced/fixed. > > What do you mean? > Those accessors have been there since the first commit (27c5b17cd1b10564fa36f8f51e4b4b41436ecc32): > https://github.com/torvalds/linux/blob/27c5b17cd1b10564fa36f8f51e4b4b41436ecc32/drivers/mtd/nand/brcmnand/brcmnand.c#L1896-L1899 I misunderstood Brian's answer. This commit is not that old and looks legit.