Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5988815ybc; Wed, 27 Nov 2019 13:00:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyEcDZXCcu9hp4HuclfZtasviqb80uSVDDCLRh+6zasXdkepwW6aGydMIPGEjJXZJYpsvn4 X-Received: by 2002:a50:fc02:: with SMTP id i2mr34991349edr.284.1574888406429; Wed, 27 Nov 2019 13:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888406; cv=none; d=google.com; s=arc-20160816; b=CsV7KJENuRZ5EOnBS8iO6a3S8rdwVEja3owJPL0RZYQcXbP2NpjxFpMXZE3SZ+BYWS 8J+gHZev3AMEaTGaZG4qxW4NxCti+ilDLomTOiDZs/8opAPC7cbaPugyESVEsMHSDEY9 XXSkurUVEK4lUtZo1tgcgE7hpCzKjk6lFb/iheuL993KahN0t5uDbz0kIXfo/+NWEutk WrsoKv9umXz8vAti9c3o3wPTQy55LEoRazk1oSMpfWTkiShS3VARtAQ4/gPZ+4G+i8B7 kbx2LeatFYw7xuRqtYmQQEiCoC3BPHnKQaT/OHykOcQu9Y03Ptolo0WFBe3nP4kTPHV7 Sxzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5YsoQ+Nw29q5eXqpGJ25kmUnleKxYdTceF56ATJRjwQ=; b=WW4cdY1BZ6FXbHZfswwdMrC9LRtqWtgwQNePc6qmEJoHlP4QtFAe0nrSFiS7z4Z4Id WfXXOe1rToTkYwM+/D4bNNAKTFDQELlW785glqISYNrF0qQzMfuY27SwJg0OCgNBXD84 XqdIucFAUCKdrYvxQvL/a163Vrg0ZOsrtzn6TzPXeDGPcY3zPpWxr+wZOza3weFLwzNU grh9hZtXqRSpQmFVumz/ydRv7A0vnB32LpK9yICVvjGPCmQwog+bNYP/zu1hc/4mPg4W cOeA/6VA2C/rPu8Jr0Wv91E/Qrf1CSY1TSqqPfopjNSIlEk8D9Oyns8qXfv35PYW0FBc qCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Kf/1Gfn8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si9982779eji.25.2019.11.27.12.59.43; Wed, 27 Nov 2019 13:00:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Kf/1Gfn8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731306AbfK0U6V (ORCPT + 99 others); Wed, 27 Nov 2019 15:58:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:49578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731298AbfK0U6T (ORCPT ); Wed, 27 Nov 2019 15:58:19 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C421F2084D; Wed, 27 Nov 2019 20:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888298; bh=gUbBaBqeNzDCPkiKzKsFnWC4UNaWjQUjPjfR/d+HDI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kf/1Gfn8sjALd5pwd3RRm/1NO0PoMqtm6o99U+in0W9NlazmfckPLqwQ/Tq72H/Om HMrOhPM7aALk0gYqNsoa/ZnjjNn4M0AKqITvo80VAwscyUHbG7eN5M6IsiMxepN6mv wMtHEQbqcwaeg/xk5792afULoJcAwQ4asuXF7zBE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Angelo Dureghello , Greg Ungerer , Sasha Levin Subject: [PATCH 4.19 053/306] m68k: fix command-line parsing when passed from u-boot Date: Wed, 27 Nov 2019 21:28:23 +0100 Message-Id: <20191127203118.650749917@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Angelo Dureghello [ Upstream commit 381fdd62c38344a771aed06adaf14aae65c47454 ] This patch fixes command_line array zero-terminated one byte over the end of the array, causing boot to hang. Signed-off-by: Angelo Dureghello Signed-off-by: Greg Ungerer Signed-off-by: Sasha Levin --- arch/m68k/kernel/uboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/kernel/uboot.c b/arch/m68k/kernel/uboot.c index b29c3b241e1bb..1070828770645 100644 --- a/arch/m68k/kernel/uboot.c +++ b/arch/m68k/kernel/uboot.c @@ -102,5 +102,5 @@ __init void process_uboot_commandline(char *commandp, int size) } parse_uboot_commandline(commandp, len); - commandp[size - 1] = 0; + commandp[len - 1] = 0; } -- 2.20.1