From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64B88C2B9F7 for ; Tue, 25 May 2021 00:59:44 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DA16C613D6 for ; Tue, 25 May 2021 00:59:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA16C613D6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CC97C82F85; Tue, 25 May 2021 02:58:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="ePaDA1K3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 287C082F64; Tue, 25 May 2021 02:58:22 +0200 (CEST) Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EDBCD82FB4 for ; Tue, 25 May 2021 02:58:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf33.google.com with SMTP id z1so15205222qvo.4 for ; Mon, 24 May 2021 17:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aqY8BFECkh2aOBlBQzMTXE1Fo6I0qQpddKPqBvubcdg=; b=ePaDA1K3GBZcPRGyfKazgzTCYu9Nzmp7pPfHhDK6vglInz0Fyvoy2dQJadUdy/Gbkf /gjqLGPm2v5V4sFl5sojwciFiPS8VZ0HH0kN7jXJGRRDmhOVMmiGLVdkPb1WjzofDIim Wsa9sLJTI9jU22Acj3HaWs8bATJKrPk2tZRCs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aqY8BFECkh2aOBlBQzMTXE1Fo6I0qQpddKPqBvubcdg=; b=f9ZLL1hIvHDLGjw0ECgyLh8ABMjmWOOWizAWoosvuQCRTTcDjnQ1nHryNEWI/oyfFd JsoCuwTAEZQFNNBczTr3RqKA5YkbggaAxxPJkDuIHax1wyYKuKY45IIXAVD1WQlUyp9v 3UCAQT0E+XoocoC2XhWBcNvcKc7HTAmNMupeaBNduowyKKFeT+OjcTFfLFy3Vazk6Ray xoptvOXZQ9AuftDR3uJNqSKPxDdjiXsAXtuppVjee9TpSXaVdBaIdTIpH5SAvjIYmxVV E/3A5tD0XjkQSYnINH40saNeKUx6boc7pXVztgCVFzD/cx1GAxWOAX7WRC692OiuAC9R QdmQ== X-Gm-Message-State: AOAM531pPg/2ys6sxPD0uYScnrUZAaf0BTXuEBMj9qf0Iiw10BO1SfTh Us2vDDMnVfoMb/A/3FLL1FwATnZ3MaUX9g== X-Google-Smtp-Source: ABdhPJz8bZT5Pz3EuUDiZw5BXCRsTX3nQ1nrurhfaUYxAgrdxAgEXmfYmO5Ix4k65D80LVwG8wdWVA== X-Received: by 2002:ad4:5613:: with SMTP id ca19mr32953439qvb.3.1621904286787; Mon, 24 May 2021 17:58:06 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-5ce8-9acb-4a3a-47a0.res6.spectrum.com. [2603:6081:7b01:cbda:5ce8:9acb:4a3a:47a0]) by smtp.gmail.com with ESMTPSA id 132sm11190110qkj.49.2021.05.24.17.58.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 May 2021 17:58:05 -0700 (PDT) Date: Mon, 24 May 2021 20:58:04 -0400 From: Tom Rini To: u-boot@lists.denx.de Subject: Re: [PATCH] stackprot: Make our test a bit more complex Message-ID: <20210525005804.GS17669@bill-the-cat> References: <20210524185913.10422-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YuAGa4rDhITN6zHv" Content-Disposition: inline In-Reply-To: <20210524185913.10422-1-trini@konsulko.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean --YuAGa4rDhITN6zHv Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 24, 2021 at 02:59:13PM -0400, Tom Rini wrote: > With better compiler optimizations available, a compiler may see we do > nothing with our buffer after calling memset and omit the call, thus > causing us to not smash the stack. Add a comment to explain why we now > also have a printf call, so that the test will pass as the memset will > not be omitted. >=20 > Reported-by: Marek Beh=FAn > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! --=20 Tom --YuAGa4rDhITN6zHv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmCsS5wACgkQFHw5/5Y0 tyydnwwAmeqL7hZyQdl/2FqcDWp6LXvPSXGmeZPtZlz8mVjSqimXXvfvQ4K7HBMs XKELsyXn1I67fccw1M7rgLuG4MNNFSV4ELoZFxdztlD7gEt59+qus6IixdKc+4XV JX0wajQPmqU46h/A6HqNrXTTMUHClnIEO96hJGZTRQYUXEkC4tKQKSA334pke8Fv 19Ri09gq0UKq70bc4kj53SaJrp/UFyEXuvClCjF2Huth1rMhwS4/F1hcVf3Iwz7N TdOZMYsTbqGlOAii0LC+HBXryCCACzBNkbc6UDJdvZy4a1GK7nRSI/oKzxoaLYeq jvFnmqMcMToz5Vlc/UuS+dmMaZkQmcE+8pqVz3OG7U1V+IT5C2mftU9SSASaWLX6 76P2wfHoyn0SMfPo2kYF+r3rzREwxtydmT8PlqPv1WeYEl5m2/bJvlfS13oc4uKM hshDMNz0AJ+G/aaMRN1DATxDXR35xLxfIFhiLrnYGr5EkXl2aJoK2rb2GOSGcPci u6CwG1Kg =uKlj -----END PGP SIGNATURE----- --YuAGa4rDhITN6zHv--