Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6029180ybc; Wed, 27 Nov 2019 13:41:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxTSURlw6QFUupemuGWHhiqBdfQMIcmAoY6KxS5HwzYlGwvazXPSwSPZw3f6/JpSMJ/owmj X-Received: by 2002:aa7:d147:: with SMTP id r7mr34872316edo.198.1574890898952; Wed, 27 Nov 2019 13:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890898; cv=none; d=google.com; s=arc-20160816; b=ffDqqB5jORffb2norOJqLJk6D4sqFRLZWkPhIebPwl10Q3ULDJoNV/I0ksYveLepfK nQvZT0uFc7da7llW/FZLmd9MPkfPxtzfRIXI3r5JBWOtnK/AzvcR2e1X+2s5eGItsHM4 5rlfRCIsIQ5xoAeZm5waQ3xt4me0B0LvxOaqy3KJh1ssgJ5bqKwzydhP5OMWhfKgmxj7 bFLFX4u4xXPhoJAEvzqRBgkh/wwCHu7/z1Vj79EYfdVYEq6ENWQ9ZGxK8LFdwqoVX2hc xdsCUZ6n4GmAs38Dazl1fXNWiMw2tuUhr+Pzs43lf6ST6GNg7r5yKzPXb4KOjwvhwfoA 0+Cg== 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=kYHMb0Pig8xGjCWw8wOTrXgvh0PEKvQpEtwECcxnTV6exui7LH5p4YMmOO06+WYETe ZvUKrnzx0ulOdFl6nytTvMyipt26+lDh1PJRTauHDWHwgxVk3kEXzg9d6H3W+pw7ULvO 1YD81r5DGXGDnMAuVDzUgtEqtExyBIqQHM8+njVkPknaYiIDAIX50Qr0PK8KvVj35B84 e9c5zE35S3BOHt+Yvnceu9yLU9sAtZPw2k3bN+dsxucxfSSQiqAF8fQlTPLpZNqxh7db VooSFleD6OcLoq/AQzZWdTV47aUIRN7+Bc0KUVhksxVZw77VyBh9zae6gMCjW3wZrpJu eMYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QoRCyLXY; 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 i20si11589467edv.245.2019.11.27.13.41.15; Wed, 27 Nov 2019 13:41:38 -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=QoRCyLXY; 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 S1729783AbfK0VhE (ORCPT + 99 others); Wed, 27 Nov 2019 16:37:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:60110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727847AbfK0UrW (ORCPT ); Wed, 27 Nov 2019 15:47:22 -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 E869921823; Wed, 27 Nov 2019 20:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887642; bh=gUbBaBqeNzDCPkiKzKsFnWC4UNaWjQUjPjfR/d+HDI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QoRCyLXYfnQ4A3JL0eymOdco1U2ATtgucfEN7Sug2sV9FvmZ2voCVveWi/zdOoNeY LaOE7s2arbzc1bjmt1s7xJJwejqERcse1U2G+PVwExPNuj9uJikw8P+6kOLK24WUmh 63hsMQbPFU/5U/7yvRBm6QJRRyvs35iML5HfQRFg= 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.14 037/211] m68k: fix command-line parsing when passed from u-boot Date: Wed, 27 Nov 2019 21:29:30 +0100 Message-Id: <20191127203055.521521735@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203049.431810767@linuxfoundation.org> References: <20191127203049.431810767@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