Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3612780ybh; Mon, 5 Aug 2019 22:18:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqylsLVVlrxdV8Qc6krEsDfp4e10IgbDm3FnY4CSWbhp5m6Mk2xkwGpEfmX2UnjmxLdtLC9e X-Received: by 2002:a17:90b:8e:: with SMTP id bb14mr1286737pjb.19.1565068696111; Mon, 05 Aug 2019 22:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565068696; cv=none; d=google.com; s=arc-20160816; b=tpp1pT5ex5p4ez+Bf/X3DvkHn1ZWRk+iZlkKiTROEltreZ4IqDUzF6zMqkHKMVDp2i D2LximqEVPqbnrPW1H463/DYg1eRTbjPsx+gjsk8sZCpPgcu9xj5zG6329jYVKYmBto6 +HDTwF0emJH5c4fr8fO9rmmfQAXi3U7pJiS4mYwoo4yTK+5TgbJDghkCWm+oWxodDbSB kGGrntqVnfwoY+Q6jkx5lbYA8DBW5yZ//EwR9aP/tAab3FanXZK3fJ6upCkE7RUeMoxj 7MdMyrkYaZ8IYZhKTX9kZvUnxG9W5mlyfJiTszUTUCFxPqgi8YCebalVg7ngIpxTEFuD X41A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=31ROODhCsRMBYFiomFAjDke945BYH/xbV6l2kAq4Qoo=; b=OaF6l6DMtT8IS1m6Thd/FSp4I/ca4mi0M6nyoluAzpN3z1R9Jc20GD4ytFtGSBM3z1 vmPtuPC6xA2pi7iIs7d85y15bCR+jAxQfCJ8Y4ylsDx/fRUrQtGkEz/QXpOVpztjHKxU 9RYnZOcReZUhC4D6a2SiNIhjgXDtCuWrNIvfl5df2g5ApteUlPsJsrXF4YPnh2D0PGlY M1t0HjtqOx5FewK9Sepal2Z7cNB7HoBBwU7wk9Oc0btff5HqaW7jJQdf0AVaqCtuDXS4 hL5tN5Gl1ks4EB7D3NY+3QUP+Qe8OnToRQ+u+1yzJcx4IJviR+Tg/b5sM/N5vGwMy6Qa nrAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=I9sf3PA9; 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 k193si43646382pge.330.2019.08.05.22.18.01; Mon, 05 Aug 2019 22:18:16 -0700 (PDT) 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=I9sf3PA9; 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 S1731592AbfHFFRU (ORCPT + 99 others); Tue, 6 Aug 2019 01:17:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:42846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbfHFFRU (ORCPT ); Tue, 6 Aug 2019 01:17:20 -0400 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 5D97F2147A; Tue, 6 Aug 2019 05:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565068639; bh=Gx5uSt/sYnvCcyG+tEybLFzNUAO0M+4D5ABXPzmpRVw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I9sf3PA9DTJc+/mPn59TBlyh8/QisNcIYi8MNQmYQU1qXx43Kl9lAs6u9PTr5LYkA 2YLFnng4ERnv4NggJKt6jslhD5t0247zy4UD8bNn8EzyZNPo6FVDixAJ21o5+d/c5O 3wIOT2cTf6H9gilQHKt9uQNMWm372CuQIROuB2HA= Date: Tue, 6 Aug 2019 07:17:17 +0200 From: Greg KH To: Luis Araneda Cc: linux@armlinux.org.uk, michal.simek@xilinx.com, stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up Message-ID: <20190806051717.GC8525@kroah.com> References: <20190806030718.29048-1-luaraneda@gmail.com> <20190806030718.29048-3-luaraneda@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190806030718.29048-3-luaraneda@gmail.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 11:07:18PM -0400, Luis Araneda wrote: > This fixes a kernel panic (read overflow) on memcpy when > FORTIFY_SOURCE is enabled. > > The computed size of memcpy args are: > - p_size (dst): 4294967295 = (size_t) -1 > - q_size (src): 1 > - size (len): 8 > > Additionally, the memory is marked as __iomem, so one of > the memcpy_* functions should be used for read/write > > Signed-off-by: Luis Araneda > --- > arch/arm/mach-zynq/platsmp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.