Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp254859imm; Tue, 18 Sep 2018 21:13:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZc7bf8a6fhufdfwpZ8FTyR2yRuxez/JAw6iTHD7EaahGVkvBjxaYRRjeBK7F5ebql8fV/4 X-Received: by 2002:a65:5284:: with SMTP id y4-v6mr29259561pgp.283.1537330413384; Tue, 18 Sep 2018 21:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537330413; cv=none; d=google.com; s=arc-20160816; b=U/ruc6TeoUGvXHbMsKXimHQMemFg9ncQoL3hRwmSjNNQOCOAMsQHmJB1CxQWfnaw6t QbhIos58W0imd7t21+po8Lpb2ITyY8kS19HjwbCKiaMO+Iq1p3SZBFSOIJ5C+YvT/qxD bnBhkUr8oBofBqyq2GE9iSjRN0+ckn2xbBK6aeasC2djadmseL4O3UZg0IKcSqCkb3rS W5/xYMp84zb9J+kBXiWDBpL/5AExBoD41WvQ8lo3CKFQQpVzjxGK8PgE6mnOcPBaWV51 zf+8WpvI+FY8dj+wEGVN5O874DAGeakYsLphuJLwGPHZHmB4x3k9Vjy4yUGcMk/bWzh1 npRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Vmq0ExtILdmwB6SVnVLapFRWujxeBztuCDjeMPNy2AM=; b=wTupgeX+wmRcDlw+nJ5EIvWnWLj0pEuZngKbKFyp8Z/8MgtDRMvOo5RPmYeTIg+fHt 8bpn19+pGpUbdQPsslbtO6E9vxnt13TNcjhSowbMu1z+rlvMAOiZOqEtfadiJnwnPK+W WEdE8DsuXADA3oJLmnleLNj+1QvWLsFoQE1YXRW7uskTsYLYlRQTFcENx0zrdj7oG5bz G2Dn/o6y1e3XOh3l6wRJv9aMfxX6zZ1XeHAA1mC3j90saqGWvwjY5jPGyBm7h3ETYzXp iFmyZRwecVXrF6GIMBOtAAUNYjucnBPfM+IcdkC43EQo+34B+xutY/jaXPS1vO05cObM jb0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=JspcNq+e; 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 q5-v6si18426918pgv.692.2018.09.18.21.13.18; Tue, 18 Sep 2018 21:13:33 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=JspcNq+e; 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 S1730806AbeISJtI (ORCPT + 99 others); Wed, 19 Sep 2018 05:49:08 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34357 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730719AbeISJtH (ORCPT ); Wed, 19 Sep 2018 05:49:07 -0400 Received: by mail-pg1-f196.google.com with SMTP id d19-v6so2084161pgv.1 for ; Tue, 18 Sep 2018 21:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Vmq0ExtILdmwB6SVnVLapFRWujxeBztuCDjeMPNy2AM=; b=JspcNq+eOgeLhT9xg/uifB3o/zQLHpvvHyjjC5A2kyVpwUo1sN2dEix8x4kIMSjY7u ElGx5DXWWKPIzA1y64vC9zO0VFIviBF3AmEaBvOPez2hc0c8VeaaTslArSK4g0g+TgE4 PNazxCaKF2yAu1vzk+jVQO2u/bI3Ny8nCuwhbVhvgdcGehx3v3SleZ0K+tQ8WeCo4mpj bhurhtYLn6zdNrKnL94xtW/v4gakaRi4cXkJmA3+kyVTzQmUT9+BF9HCYTLNtEeWHPmm ijiVHue1Xxm4O6u2qyh2aydrwOHGkLXjnlp6cXZEeOY4xwrSwaeU45+ma0MDs8jml5Fu LBmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Vmq0ExtILdmwB6SVnVLapFRWujxeBztuCDjeMPNy2AM=; b=AXZFL4Vwx26HcAxlJYx8K/SaPfrtT+elAxLrlrYaEgsQ33khDTXy6WT9TvorMEK4f3 6aNGWy8iukA9miWwYnMZWQy0JScWZMHyaBxQn2x6j1FFVhSnbjhyOFgOMu8CN8Lh0XlB PWDum3+h5jM3seN9ad3kLVJr8TpFVLE0GJA2qOzxchA3dS2gt/C+jvBEv4AIfQEa3SXN HGJhtMcd6E5kHThXizvggUN7okRIXOq0LIcSHSNNJQRSi38UyQGX2vRksRQV+PeCOA0M E5kAFBNtxYiqIjpZHHWVz81iRO+jEDmne7cMggpinGp5wPJWFB7EYIoF8kciRUzASn3S 88tw== X-Gm-Message-State: APzg51COvpcB2yICqz8FlhHqzJdeXLIM/tIC+QhW+M2e1F6NkzAf5xus qnN5mwDDhfwJ8GSMXEUY5zuyiBkuM0U= X-Received: by 2002:a65:62d8:: with SMTP id m24-v6mr30332727pgv.307.1537330386940; Tue, 18 Sep 2018 21:13:06 -0700 (PDT) Received: from ?IPv6:2601:646:c200:7429:2891:46e6:aad6:73f9? ([2601:646:c200:7429:2891:46e6:aad6:73f9]) by smtp.gmail.com with ESMTPSA id v8-v6sm24525521pff.120.2018.09.18.21.13.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Sep 2018 21:13:05 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [PATCH net-next v5 07/20] zinc: Poly1305 generic C implementations and selftest From: Andy Lutomirski X-Mailer: iPhone Mail (15G77) In-Reply-To: Date: Tue, 18 Sep 2018 21:13:04 -0700 Cc: Eric Biggers , LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180918161646.19105-1-Jason@zx2c4.com> <20180918161646.19105-8-Jason@zx2c4.com> <20180919005054.GC74746@gmail.com> To: "Jason A. Donenfeld" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 18, 2018, at 6:35 PM, Jason A. Donenfeld wrote: >=20 >> On Wed, Sep 19, 2018 at 2:50 AM Eric Biggers wrote:= >> Hardcoding the 'input' array to 600 bytes forces the full amount of space= to be >> reserved in the kernel image for every test vector. Also, if anyone adds= a >> longer test vector they will need to remember to increase the value. >>=20 >> It should be a const pointer instead, like the test vectors in crypto/tes= tmgr.h. >=20 > I know. The agony. This has been really annoying me. I originally did > it the right way, but removed it last week, when I noticed that gcc > failed to put it in the initconst section: >=20 > https://git.zx2c4.com/WireGuard/commit/?id=3Df4698d20f13946afc6ce99e98685b= a3f9adc4474 >=20 > Even changing the (u8[]){ ... } into a (const u8[]){ ... } or even > into a const string literal does not do the trick. It makes it into > the constant data section with const, but it does not make it into the > initconst section. What a bummer. >=20 > I went asking about this on the gcc mailing list, to see if there was > just some aspect of C that I had overlooked: > https://gcc.gnu.org/ml/gcc/2018-09/msg00043.html Can you not uglify the code a bit by using normal (non-compound) liberals as= described in the response to that email?