From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8126342B322 for ; Mon, 20 Jul 2026 14:32:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784557943; cv=none; b=lIwiAPajxVL6kCqY2M0On/SntGZvNAlotvywruWcqHmJlQ6COFheLGF1xYbsGtA3BqxLnTxWFFVhftxHLK2BOaOnbZ1xN1YsC+gokPFndcjgZn1C1p8QSVjYoVRAtsKenbzbWaWjHpCpoSHMK0z91vAdM/JgkMcuCfBTEHB0emk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784557943; c=relaxed/simple; bh=/rfRUXN/yGBQYVcSm+7RutNUeSI/ZFEKAzHiLAm7fPs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=QRMF+sIxTm4ACWkIW+EbDlo1vXQRw7Jzt8LHjEk5aXHEkM03KHZyGQiHAIdX/5+epU35zEZNlNQu/6qsiN1HGbxt2lMqzLOIzvd8IoylQ0IyhH8EUCXLpKgaXyrbB31ypcaLZ0NuwW+rs29d9epNTb0yvxL6YMAKfYQncDdIxmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L6umbGFm; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L6umbGFm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B64971F000E9; Mon, 20 Jul 2026 14:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784557942; bh=KyC67h9mjh2GKH+8rjtOuodlQA/9K8iZXo80j8jiSKo=; h=Subject:To:Cc:From:Date; b=L6umbGFmjfcYgAoshFxAOv9rJGflr4eI8Fni5tQ94295pSCasXxhKJKm33j7CAHSD okdG6q07V7rvj/nCSepY7RjX4qhF+BCijFVPbTLQ7tkR970uIAG9ZJuo4Ac8/+kZQP gKDOagYLd26B7MW/k5r/you+XbZ3jmPHQgTzW7VQ= Subject: FAILED: patch "[PATCH] mtd: maps: vmu-flash: fix fault in unaligned fixup" failed to apply to 6.1-stable tree To: fuchsfl@gmail.com,miquel.raynal@bootlin.com Cc: From: Date: Mon, 20 Jul 2026 16:31:55 +0200 Message-ID: <2026072055-uncurled-goal-4367@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 79d1661502c6e4b6f626185cef72cf2fa78116e1 # git commit -s git send-email --to '' --in-reply-to '2026072055-uncurled-goal-4367@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 79d1661502c6e4b6f626185cef72cf2fa78116e1 Mon Sep 17 00:00:00 2001 From: Florian Fuchs Date: Mon, 18 May 2026 13:45:20 +0200 Subject: [PATCH] mtd: maps: vmu-flash: fix fault in unaligned fixup Use kzalloc_obj() / kzalloc_objs() to allocate the memcard structs, instead of kmalloc_obj() / kmalloc_objs() to prevent access to uninitialized data. Fixes runtime error: Fault in unaligned fixup: 0000 [#1] at mtd_get_fact_prot_info. Fixes: 47a72688fae7 ("mtd: flash mapping support for Dreamcast VMU.") Cc: stable@vger.kernel.org Signed-off-by: Florian Fuchs Signed-off-by: Miquel Raynal diff --git a/drivers/mtd/maps/vmu-flash.c b/drivers/mtd/maps/vmu-flash.c index 75e06d249ce9..b76d0609d1b7 100644 --- a/drivers/mtd/maps/vmu-flash.c +++ b/drivers/mtd/maps/vmu-flash.c @@ -609,7 +609,7 @@ static int vmu_connect(struct maple_device *mdev) basic_flash_data = be32_to_cpu(mdev->devinfo.function_data[c - 1]); - card = kmalloc_obj(struct memcard); + card = kzalloc_obj(struct memcard); if (!card) { error = -ENOMEM; goto fail_nomem; @@ -627,13 +627,13 @@ static int vmu_connect(struct maple_device *mdev) * Not sure there are actually any multi-partition devices in the * real world, but the hardware supports them, so, so will we */ - card->parts = kmalloc_objs(struct vmupart, card->partitions); + card->parts = kzalloc_objs(struct vmupart, card->partitions); if (!card->parts) { error = -ENOMEM; goto fail_partitions; } - card->mtd = kmalloc_objs(struct mtd_info, card->partitions); + card->mtd = kzalloc_objs(struct mtd_info, card->partitions); if (!card->mtd) { error = -ENOMEM; goto fail_mtd_info;