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 28FCBC79F82 for ; Fri, 4 Sep 2026 18:09:09 +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:Date:Message-Id:Subject:References:In-Reply-To:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dWuI5clJsFoY8b2SjzUR4FdsBGhCzDs3OZOhmva406I=; b=378hac3KOWsDI12dS3tdf14+t3 YLsQUdrHuS87z4AUOHYGLbxDdaJiAetUX2KzujSpHO2oCAOWGI00OjGWMJVSs0JcdRdeUJdtusTql ZEaxechEDRhHBHIXoTfbM8rWcKNoki7DkyAvcNMYom3gckzPaQjpt/mVGyxsi3vyqc6UESQJHrNwj Dj5SLa3B9vEHZSfUcyijFADSnEIvorNuPRNHl1HVtIzQdn2nnrtcX6M9ZFji8/1iZ/hR9E1Fc+emr 065sq3AKsN1FUgFR8onvpa3UlnH68EelYVhVnye9cnND5Mu5DcmOMUlu0BcMUO1572f8lG2edgCxj OpE2RyrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x2YLR-00000002yhk-0u5m; Fri, 04 Sep 2026 18:08:57 +0000 Received: from smtpout-02.galae.net ([185.246.84.56]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x2YLO-00000002yhB-3Har; Fri, 04 Sep 2026 18:08:56 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id F3FD11A19BD; Fri, 4 Sep 2026 18:08:52 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B88136057F; Fri, 4 Sep 2026 18:08:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 56ACE11C78767; Fri, 4 Sep 2026 20:08:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788545331; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=dWuI5clJsFoY8b2SjzUR4FdsBGhCzDs3OZOhmva406I=; b=VPGCrFwhbj3czKymibnU/7EjDzwyWPB/eKuJxg646eOtzC82sduCsgr9hQp12mTj/Z6Vx9 5ciudHVY8XmceGUuTGNVW47O0phQh7loFPghqmM1UDw7h1w1pTfxtzwJLKnoqw9ojKua7v Pg/iBN7juPxrU9rMZxvn8ENLCP+qA8/K50UnzrsV/7J0N+PjeHoApjKVyVzuZ9N5iDNLkS KAz9AeY6ES3iVHQNwXGllTf5/gqRRR0lhh24QBR3a9/yAHTlqKNb9tbDx4yP69Jxx7HKQ9 apgpovFBD2mPvvBlL7W3poUGNXF0FrnnEO+LXhCK2EgHaJvVdiFqKoU0kDdABw== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Richard Genoud , James Hilliard Cc: linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org In-Reply-To: <20260811-sunxi-nand-protected-oob-fixes-v1-0-412e50444673@gmail.com> References: <20260811-sunxi-nand-protected-oob-fixes-v1-0-412e50444673@gmail.com> Subject: Re: [PATCH 0/3] mtd: rawnand: sunxi: harden protected OOB handling Message-Id: <178854532418.1533016.648068114712048583.b4-ty@bootlin.com> Date: Fri, 04 Sep 2026 20:08:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260904_110854_961128_0F07BF03 X-CRM114-Status: UNSURE ( 5.69 ) X-CRM114-Notice: Please train this message. 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 On Tue, 11 Aug 2026 00:01:58 -0600, James Hilliard wrote: > The H6/H616 variable protected-OOB implementation has three related > failure cases around its per-step user-data lengths. > > First, propagate failures while allocating the per-step length array. > Then reserve an encodable four-byte first section for the bad block > marker and reject layouts which cannot provide it. Finally, replace the > per-write heap allocation used for BBM compensation with the > controller's bounded 32-byte stack buffer. > > [...] Applied to nand/next, thanks! [1/3] mtd: rawnand: sunxi: propagate user-data allocation errors commit: 8696502b0aa96bcbb1f1e78ae117726378823ae8 [2/3] mtd: rawnand: sunxi: reserve a full user-data word for BBM commit: bde8fd880d84627072c224729c818306c4b30d58 [3/3] mtd: rawnand: sunxi: use a stack buffer for BBM randomization commit: a8596bb7148136b9e83980900d508d0ef86507ef Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then). Kind regards, Miquèl