Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2658594pxa; Mon, 17 Aug 2020 15:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6fowq+b0lcmxp5dHTrE35+DmvCnhBSl4WD7xwffDSuZu3Cz2VwdPHpaTMmmrHi2VoYNnf X-Received: by 2002:a50:c38b:: with SMTP id h11mr17291750edf.308.1597704337152; Mon, 17 Aug 2020 15:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597704337; cv=none; d=google.com; s=arc-20160816; b=UbM1nSiRYH5opJvGR7+IqHCo+9IUbLAdzhBvu1shAHGV46DJH0288SJNHHoYB0/8ys Hgtp2y4X05R7jcw+S5yUvLzY+ghf8xM8mJbgOBQdvDBCT7LSPt807jLAI2uyf4kIAObd E4wccP80JnJM10KA7rbMAEdaUggwQ6t5znOH8m+Fea6c7JgXSXa1UDtZS12ynPpRapIA II3Vj9rV4bRvkZ9hxDcVeL4fUdMyU2hxNwAOHc0Ykxyb7z5eY9mte/FqQrRgIYie3Yf6 pu0PQt1UNlFpw+bMosXQ5e/z21jecPUx2KGN5SDNUJL5+c7zCfG+6p/SKDprv+fxmVu3 eUKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iGRzfPyw7ESx9wXeagb3xJwksI9OtPsVQy2m4SGV5Xo=; b=f2dhLiRJJutpnUJf4WY0NGrfC2eAk2O/46eGqLNDmRLobm2Z/HHmNvJgCh4mgVXEcF 0ijAGIBEpKpW6DsOqDjwtYuftJDJzUZUQROq/8sjUCXSwZpvexQUuTIo75/tycd0trzS 6mapOlmOVSAM2vAYqcmgaOIkN0JhyudTAIDFZe5TPX28Bjf+08titEjFYFRqc6b9RrDQ cGlKvj04NGt1MjSrBZqC1z3JRXcYu6uc7KYgSPuF/KbKBfLf4SbMmWhkCyuyFXa0x8BA SjyWLakoiETTYyB7H39IQTVUZ2gywVfF3Iygh7H43QkXJhVDxKuXaqF9H6kNcmHXORbZ g2dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AOzQ2918; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si11507322edy.290.2020.08.17.15.45.13; Mon, 17 Aug 2020 15:45:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AOzQ2918; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392209AbgHQTQx (ORCPT + 99 others); Mon, 17 Aug 2020 15:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389932AbgHQTQo (ORCPT ); Mon, 17 Aug 2020 15:16:44 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67F2CC061342 for ; Mon, 17 Aug 2020 12:16:40 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id r11so8684688pfl.11 for ; Mon, 17 Aug 2020 12:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=iGRzfPyw7ESx9wXeagb3xJwksI9OtPsVQy2m4SGV5Xo=; b=AOzQ2918L26XOqNuhI39UDWiFl/NgEDi3gEqKcXm3SjCQrlCrHzQxyDSNBU4MoqN6P hbt6hn1pjWmdyPvmuxZjEyngCGtz3/+LXbmmkYLhR8X/zsnHL+lm13Oud9WWBnuyL5DQ Rit2cIThg2WcXHH36RfxlFSgTAvF1/H288vBQ= 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iGRzfPyw7ESx9wXeagb3xJwksI9OtPsVQy2m4SGV5Xo=; b=FarHlfbQnYekQtdw8IS+CsbJHxEJjyvZQVr/cYxwW9OqBfYIA1EetPXWCO++wDtJaI 8IcmZ0gZrIAgvzmoWJIedp6eTJ/SIzOJp8u3/f7Upwow75TK1zOIjOjpPCTALSdDLCMX K406OPH25TR0VIbRAWB1Uuz63zHbnH/yII/NZ9G2apn+7fVRJucGg1xIiVPsBg0o5NEB KpSNywAYnpI7MddYKwXO/PlhddghM6eDAKo5VufMyDWFYPKvMRNVI0TvKtazlH/SdO4G SRYiAgZf/p0Tqd/N5k41eW4aJgUD0+BvPi0mnbG7n0jEe6WP30xokXPeg/aYOcGJrzP0 vdmg== X-Gm-Message-State: AOAM531//SftzeHDl/AqzrQHRRxOOEztvkP3luUTgVvpMYh6GJA7bu94 z/wI9MZmnqFjrbl8eWoll/TOmg== X-Received: by 2002:a63:ff5f:: with SMTP id s31mr4115897pgk.333.1597691799926; Mon, 17 Aug 2020 12:16:39 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id s4sm20767427pfh.128.2020.08.17.12.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 12:16:38 -0700 (PDT) Date: Mon, 17 Aug 2020 12:16:37 -0700 From: Kees Cook To: Sami Tolvanen Cc: Arvind Sankar , Sedat Dilek , Fangrui Song , Nick Desaulniers , Joe Perches , Andrew Morton , =?iso-8859-1?Q?D=E1vid_Bolvansk=FD?= , Eli Friedman , "# 3.4.x" , Vishal Verma , Dan Williams , Andy Shevchenko , "Joel Fernandes (Google)" , Daniel Axtens , Ingo Molnar , Yury Norov , Alexandru Ardelean , LKML , clang-built-linux , Rasmus Villemoes Subject: Re: [PATCH v2] lib/string.c: implement stpcpy Message-ID: <202008171216.945D6D7D11@keescook> References: <202008150921.B70721A359@keescook> <457a91183581509abfa00575d0392be543acbe07.camel@perches.com> <20200816001917.4krsnrik7hxxfqfm@google.com> <20200816150217.GA1306483@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2020 at 10:14:43AM -0700, Sami Tolvanen wrote: > I just confirmed that adding -fno-builtin-stpcpy to KBUILD_CFLAGS does > work with LTO as well. Oh, I read this out of order; sorry! Yes, if -fno-builtin-stpcpy works, let's use that instead. Doesn't that solve it too? -- Kees Cook