Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp775996ybc; Sat, 16 Nov 2019 08:29:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwYSK8GSSOBhatgdwhX3eskII72iAkSHV1mVjzBYOgle8mB0C5sl5jqErcHW7384+jDbPVt X-Received: by 2002:a17:906:6043:: with SMTP id p3mr11059514ejj.103.1573921759364; Sat, 16 Nov 2019 08:29:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921759; cv=none; d=google.com; s=arc-20160816; b=G56Bb6SkBBBA2N+fByYiIK5LOzP6hf3GhrDnKmJxWL3/YsAZZrj1+3u8hHWrIJeMfR Q2w2IIn7IExkiaAMh7FvOU6fnPj2rSyJJUGO/wFMCIAXrYo/qqt+U8SQuLEuMemnaXfj ta0bNXMC+ocuwePLfoozm+fBbRM65v7vZgKUc6VhM6gdtFKJdMWvN6pFD7k/Tb50ZMmV M6tMjk4uNZptemQSc7I7V/RGZ990901XCucrx1bnbP8hoa5GiEvse+z1qIKB6pHIXULV lZ0+kRHqfNM2gFIuDg8TV6ywU3DLoI6jchnhd8meXpY38ueaaystyo5KIYeGOEje6bgs K9gA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5YsoQ+Nw29q5eXqpGJ25kmUnleKxYdTceF56ATJRjwQ=; b=c948+1qDpi3ygGFILDLyaKx9fz869AjsdSM+ZFARKNmxFQ6lNeG5EGfibTgG/K3d6u il7GLKTfiRSgD8fFKUv9dVdL5zQjOCke6EuRMqqJvrLRU8zuGCN1DoTlLksh8Iiz7wPt 4TbZHhgZwHBvR6HHAAS6HAAUqrzOz9/zS7Fx9//BZMg6XO7h4YUpR/E/aQPVB5LjjN8t r0dm806zXcNmWjwrdWegNOnAMgDEqW8TZeDSrXDAbyDHOZBUmFQPf/Elee2BQnHlHhE5 2Gv/bKdCTDXBY+MtKnrmPXii5hkFbNRvRiGvDIlPqANLIwfVKheQAdMTrSGliNFtOCOM HLKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KUkYgC+D; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si7939617ejx.144.2019.11.16.08.28.54; Sat, 16 Nov 2019 08:29:19 -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=KUkYgC+D; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731937AbfKPQ0i (ORCPT + 99 others); Sat, 16 Nov 2019 11:26:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:45148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728020AbfKPPlu (ORCPT ); Sat, 16 Nov 2019 10:41:50 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1C8A42075E; Sat, 16 Nov 2019 15:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918910; bh=gUbBaBqeNzDCPkiKzKsFnWC4UNaWjQUjPjfR/d+HDI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KUkYgC+DYrutt+zuntrPFTuebGKE1/UXppdWv81cWndTM1Eg3p386j84QG4ta9edw yaWffE45B/qARm5ZaSIsA0wtep5n3TYU5lgJtZ0/PdzJuy3LBWjeFgFB/rpmuaHnXS RI6Jwt1ViK5Dga7w1f9gZquNLIPprHXQNl6wbYS8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Angelo Dureghello , Greg Ungerer , Sasha Levin , linux-m68k@lists.linux-m68k.org Subject: [PATCH AUTOSEL 4.19 033/237] m68k: fix command-line parsing when passed from u-boot Date: Sat, 16 Nov 2019 10:37:48 -0500 Message-Id: <20191116154113.7417-33-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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