From nobody Fri Oct 2 08:26:26 2026 Received: from ris.borea.si (ris.borea.si [193.77.156.21]) (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 4AFD429CB24 for ; Mon, 3 Aug 2026 13:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.77.156.21 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785762376; cv=none; b=TNc+/92L6fXouXe3nhcKClzpj/uoaZ37q5jWK+Dma9eMyfYw5m+8toySZCk5Tp0QIMtxzThjy5WBYxvcPbueo4fSvQFhIrChEVBPv0vV0aM0Uiyo4dNg9xBp/5sMN4oC80ldIDt+DTQt9d0nOB/QziSg0/QFTmrhscq/RzUdfbU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785762376; c=relaxed/simple; bh=s9oFPKpGNvLL85L04bkjZ9O1VN4Jtu593NIAASYiry8=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:Cc:To; b=H6N2rnwabonWqZwrEs5ga81yEEwVu/jqJqcYOX/gOh1t1ETv9TFBMqbAq/llwTqpJj+9A/X2Ze1cqeXcXvxMuWGOHDEjrBZ+C+56jgnkALORc/FHmMqLU4MCb22D6IcElAG5fyrJDbnVG6ofs3mr2wBtdnLBmuY7vj+MlmlRtBM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=borea.si; spf=pass smtp.mailfrom=BOREA.SI; dkim=pass (1024-bit key) header.d=borea.si header.i=@borea.si header.b=ib0PIjoA; arc=none smtp.client-ip=193.77.156.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=borea.si Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=BOREA.SI Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=borea.si header.i=@borea.si header.b="ib0PIjoA" Received: from ris.borea.si (ris.borea.si [127.0.0.1]) by ris.borea.si (Postfix) with ESMTP id 4hDGtz6FJ3z1cb for ; Mon, 3 Aug 2026 14:58:19 +0200 (CEST) Authentication-Results: ris.borea.si (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=borea.si DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=borea.si; h= x-mailer:to:date:date:message-id:subject:subject:mime-version :content-transfer-encoding:content-type:content-type:from:from; s=dkim; t=1785761897; x=1788353898; bh=XbIwinSBPQ6jV79oyF4QUyL/ zUZBXLXiBQ7h6a9Yn1E=; b=ib0PIjoAnMdM7qR+WVn4nmIZltTjzSkbqOMR8T+4 hsr+m9GLJ0zitqcxbJDcZopqDd4eKUulBfF+Z9XF/u8FSJ7jr3O97+eJ3tXQnhW6 es8ZJCUqhz4cN2iFMhVwnudvQA9FOs7grrLASZB9qsTPxmQoR4rQQIyeZIIm7WAn myc= X-Virus-Scanned: Debian amavisd-new at ris.borea.si Received: from ris.borea.si ([127.0.0.1]) by ris.borea.si (ris.borea.si [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id j9lx9a3v7-3i for ; Mon, 3 Aug 2026 14:58:17 +0200 (CEST) Received: from smtpclient.apple (unknown [IPv6:2a00:ee2:a80:0:880f:f393:d837:b93f]) by ris.borea.si (Postfix) with ESMTPSA id 4hDGtx2LdczDq; Mon, 3 Aug 2026 14:58:17 +0200 (CEST) From: Matevz Langus Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: [PATCH] net: wan: fsl_ucc_hdlc: allocate enough MURAM for HDLC PRAM Message-Id: Date: Mon, 3 Aug 2026 14:58:06 +0200 Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org To: Zhao Qiang X-Mailer: Apple Mail (2.3864.600.51.1.1) Content-Type: text/plain; charset="utf-8" More MURAM needs to be allocated than just sizeof(struct ucc_hdlc_param). We have noticed MURAM corruption outside of struct ucc_hdlc_param. It was caused by QE UCC HDLC microcode. NXP QEIWRM.pdf Rev.9 05/2018 chapter 14.2.2.1 HDLC Parameter RAM says 0x6c-0x100 Reserved. Even looking into QE UCC HDLC microcode source code reveals it actually stores data beyond 0x6c. Tested on LS1043A, T1040 and MPC8569 boards running UCC in HDLC mode on ker= nel 6.12. Signed-off-by: Matevz Langus Reviewed-by: Christophe Leroy (CS GROUP) --- drivers/net/wan/fsl_ucc_hdlc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wan/fsl_ucc_hdlc.h b/drivers/net/wan/fsl_ucc_hdlc.h index 71d5ad0a7b98..e170d3ac9116 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.h +++ b/drivers/net/wan/fsl_ucc_hdlc.h @@ -60,6 +60,7 @@ struct ucc_hdlc_param { __be16 haddr4; __be16 ts_tmp; __be16 tmp_mb; + __u8 reserved[148]; }; struct ucc_hdlc_private { -- 2.34.1