Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4066420ybh; Tue, 6 Aug 2019 05:51:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQJ+tcGuDQztGv4UUTvqb145dWkj/0VOv25ZXhcamHosqicPYwHySC75jyvYoCIP9JYIjn X-Received: by 2002:a65:4b8b:: with SMTP id t11mr2927151pgq.130.1565095905706; Tue, 06 Aug 2019 05:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565095905; cv=none; d=google.com; s=arc-20160816; b=QCBiQ1jdGEwmqlc7wckw+qrYsTPqW9pJ+pl976IPYHSh9GLUF/SN4j9oTzhJsnZfpQ 6DZEqrTlbU6D3VqrOu6peK5qkYzg3E5Bqp8hO6CfT9xC7Be8ru/2zyQx+84vbinzYkD2 zfTUJTtTXk1kfFdxSD1Agmn+/0Eip4nZPloJEPbXUPU8DCOOVOSJL/ilfOHkp6fRJfgX 5fZ8ABCkJSsktn6bIdmkN9DDK68Eog1VXPmExOxGREzCX5hn/cLUriHxQkzTuz8GcCZg QxW0nN+mr8Gsb1vpQ5ak5PppewwVpZ+uJYlnoeNvJOl6g2Gfwd5iU1LIRQTErYdISceB GMEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/P5o7bDpjWmN9ZebSBZsGlXpEvCnGcCbzXRf1g4vqlg=; b=ZsArOBQm7Ztd4kus7aHORq77n32U1Zx0c99HMdHO3nkYyeyOzaS6iug/TARkwUACW3 zSl6O1udZ2U9HDu2RK9qMcfyzgqwdvQ3kEAsyHfbn5PmdI7ln92aIKVO8tZbdhyWRd9E ttkM4m3eHeGlwX28JXHP46tvq0NZOM9mhAUM21Td4r/hUd0h/ohs0L+1jGLI+jl1V2Cl ws/POBlw0aaAF3MguIt+Q80AgD6OrPUMAuEfEqs+th4mreprNX9JtUG88dH2LhingG7n YroP2awXcP/VMlsL+0zKJ+f6KVhJ6M7/8BcdPn/youohp+asTouj4IuoGzKJ1CuPVsRq /AOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=skjdDU4d; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h187si48954719pgc.6.2019.08.06.05.51.30; Tue, 06 Aug 2019 05:51:45 -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=@gmail.com header.s=20161025 header.b=skjdDU4d; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731859AbfHFMux (ORCPT + 99 others); Tue, 6 Aug 2019 08:50:53 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:44933 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729898AbfHFMuw (ORCPT ); Tue, 6 Aug 2019 08:50:52 -0400 Received: by mail-qk1-f196.google.com with SMTP id d79so62669606qke.11 for ; Tue, 06 Aug 2019 05:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/P5o7bDpjWmN9ZebSBZsGlXpEvCnGcCbzXRf1g4vqlg=; b=skjdDU4dtUeHC+kMGTUC9fPCCNWSMbFGsd3aaAekUU7izdW2GKUeIP8Sc/7RaZ53a3 c4WVPqMdHWjNyyW0UWhDJ0fecC+2XNYt9iZkVBq18GzQt0yMKpbUgS8dvW6mSIgHnbdh HgzihabMSOBMmrqfJECNcEsIof7X5520tUVHMvH5488p+gJmkSZPzVJSWkUv+6yiugI+ dgv3Rs+IDXTYKez5jrRsEDothYUJaypa/tg0TDtMtCXOlx6daS632GYFAcAEFt4W2kE2 cE7i2NUujJPjRXjOO6Plf8QlNLfVcl1X4iFP0PV0Dknt5Xu0vEfGta9zYRm29owweO/D Lcbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/P5o7bDpjWmN9ZebSBZsGlXpEvCnGcCbzXRf1g4vqlg=; b=HkX6CFh3Z3RNZR7427DHOHXUshktyWt2gMW3tfiH2Shth1WU1y9W8oKfUF+iRbx2t+ 7vxQYoYjnXNsTbtIKZDxwdoCiX9v+rr0YzGDL+gFgcQ0DCUCrVEhJ1pSOO4xsXQq4ylt gWpQuu/fI/Pq/wDsCmxGybetfnnq6KTKn1Qv4P+nGoxhviLkG7QvhgejK01cnl+guVIz SRqKvWbtbCi5Ivgd9zwVC9hhxD6flTuzNCQ+Bt4MyRkq/K3LCR+pAsBWOpK+ViETvwQr fHt8DRR9u2A7V/Ww4Mj3BtdLx5TZXp7wy85D4yTkbHc636FU3SHdl5pyh2dnUvYX4Mp1 zUKg== X-Gm-Message-State: APjAAAWzd+I1kZcoJ7Uzis9+eOnU0WAtmee+Ftauz1ptTidENNfW2qF2 DcFovGhOpsmBg7whAWSp8/IUMwVmsJKAKhXVhAs= X-Received: by 2002:a37:9a0b:: with SMTP id c11mr3120476qke.204.1565095852172; Tue, 06 Aug 2019 05:50:52 -0700 (PDT) MIME-Version: 1.0 References: <20190806030718.29048-1-luaraneda@gmail.com> <20190806030718.29048-3-luaraneda@gmail.com> <194fe121-151d-0b64-b83e-e4d82c02efa7@xilinx.com> In-Reply-To: <194fe121-151d-0b64-b83e-e4d82c02efa7@xilinx.com> From: Luis Araneda Date: Tue, 6 Aug 2019 08:49:59 -0400 Message-ID: Subject: Re: [PATCH 2/2] ARM: zynq: Use memcpy_toio instead of memcpy on smp bring-up To: Michal Simek Cc: Russell King , linux-arm-kernel , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, On Tue, Aug 6, 2019 at 2:42 AM Michal Simek wrote: > On 06. 08. 19 5:07, 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 [...] > I would consider this one as stable material. Please also add there link > to the patch which this patch fixes. I'm dropping stable CC (for now), as I'm not sure I completely understood the process for inclusion in stable trees. Do I have to wait for the patch to be on Linus' tree before CCing stable? As for the link which this patch fixes, you mean aa7eb2bb4e4a22e41bbe4612ff46e5885b13c33e (arm: zynq: Add smp support)? where you added SMP support for zynq. Thanks, Luis Araneda.