Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp269310pxb; Thu, 25 Feb 2021 01:54:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzknKRzwhyx/ceL5JBzCNuVzOPRcvzwKOJKTPEF3yeeu1SG9nlp5BlJn04XveTPRqIN3YwJ X-Received: by 2002:a05:6402:3094:: with SMTP id de20mr2093404edb.30.1614246853954; Thu, 25 Feb 2021 01:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614246853; cv=none; d=google.com; s=arc-20160816; b=ZKRU2b4acHEaBkNs8Hju6BCUzHE8IHv9lRPwHtYPwS92es5okRaiRXgQXekwR8yGBf 2Wojf6qd5N4UEuQX2JRg/u7yT/wqsJ3qyaM5V3ZNPud3epa7z5vy8crkYXFJfRfjVLI7 XGQBXOGoErC8Zv+K6c00W+SsMvI+4odiH6fPmqTw/rEaKPC2RfCNXfQUpuXutB3Z1WyZ SybyH/4Xo6OfceXVtiMMsv3eaSR8Z1NXungm6mzIqut12s3TBje25KFoJk3joWzeNGW8 csXhBf7jFfirEmXi9WvAKSqqmwgp2/Ete1ifUylXH7ZnnKm+WDG+aulVuQQ8sLwndzJx x7vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=5WUjTyI80+sNQ/OZRJHJn3K1hkvnROD+A2A7gt2t2LE=; b=jOH2rgn3NsNW9Dzqwtj0QvMelM9RiM41QxnvwxCJwkJ+Np+eEDzJrQeTHMlY8DnJun wCBIVkgMYSbFMCVYX+dC3HTsk5vmhKUQVf7Q11i7fLdgsjzXH7knUvNYrLSkwXqV42L3 h8Af8xVxdPFnva98nFxbVHnP6cqnnGe7yR2Z1w+j1zxaP2TJWiXoPH4atdmWSOGmyOtn GCYgXUH3bzBVSl+iyHiCz9OK4AVJqkKkm8OEv9+XetVe3W83IDdDLAqrxR4sbU28OT8/ Muu/fxrnA5p0/2+XPyB19oYyBktcp9IPRByPa3lwZwaprw6igijJB68RGaKqtk9e1lJj ExIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a26si2968612edx.311.2021.02.25.01.53.51; Thu, 25 Feb 2021 01:54:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233441AbhBYIN2 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Feb 2021 03:13:28 -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.