Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4080226ybv; Tue, 25 Feb 2020 12:48:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxlnIhhi93rU+I0WSBYtW/2ZBQeaYvyXlzjdOhQ+Kpx+Wt25ENunsBuV7Or+RMeTYyN6e8w X-Received: by 2002:a54:4086:: with SMTP id i6mr584389oii.65.1582663687536; Tue, 25 Feb 2020 12:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582663687; cv=none; d=google.com; s=arc-20160816; b=pvLX0U49nv6Mnpqm33AIg8MGw4MEr5yU+pj5Aci/OtY5DaqbG3Pe2KEi2vlZPUReoT pLHTiSc+Vb+/8Swo7C5m1OiZe6AKgf4KEPOMRtnf0qlXw/x0vYIwGB6mhSbQPc1VQIJO 3skp+8T78jaKxyBbGPFDJq4IDusRhZpPkF5PR6HZqpY6rOgQvVscOi3EvtM9/L1x7v5m 94fsiSq6eKM934xqG5UlG/L/PgEo+2U86QokgakQnF+7eFHZA3m3N2kCwj6FGaOZkiRX i8PlAhNeqFXmHZsQ+BTRZjEgEEu6w3yAt89yHPuWy+fA+HEC5IBBuZJ232a8XjqzcxD/ ygrw== 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=v1XIiBi4oFqFORFlQSNw7k0aiV4sK296qJvfGhGJwdw=; b=wblWA4CO0lUiFGJ7/XrLPuPIifieFjNNXl7EjtbkP/T0TmiKrAXbRsiMXXpmAmEndA UHCghS/zT4e22MwsSDb16ESLfY1LYEXb+2+4Ony10Wb+FUAMJVyepr+z6M+oQflyZxQk K16ULVMospPEUHrMYcHji2OWWAuRo8AfLyBIBtsAu15G8gJMUU4uiYKIb3fgIlh1ud6c ItdLALB0RR8hwH/a46nTNBHeEmfu3T8BtaL07FoDTeuEx5tOUJ3xM5ydSWZUKh9ak2VA OY/CFqDQyBGqzXElXsYf5kpuOSqMwOBMSRcsfW01xQm25FHbm//oauJd/vE2SFXL3HoA tnOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LQ3s5JsG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si184217oto.287.2020.02.25.12.47.55; Tue, 25 Feb 2020 12:48:07 -0800 (PST) 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=@google.com header.s=20161025 header.b=LQ3s5JsG; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731549AbgBYUhi (ORCPT + 99 others); Tue, 25 Feb 2020 15:37:38 -0500 Received: from mail-pj1-f52.google.com ([209.85.216.52]:55576 "EHLO mail-pj1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731297AbgBYUhi (ORCPT ); Tue, 25 Feb 2020 15:37:38 -0500 Received: by mail-pj1-f52.google.com with SMTP id d5so229929pjz.5 for ; Tue, 25 Feb 2020 12:37:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v1XIiBi4oFqFORFlQSNw7k0aiV4sK296qJvfGhGJwdw=; b=LQ3s5JsGiE5C/5QwAaBVAvmcQzFSZQV/cq37pLIqqZoS3kr5rWHIeVPeJi0QSbm7dU O7s4jzwksIiWqBJl3RfEfyT4PA4Nj/Vtkwy64hhxX4FdUhNGyRFAINXPapkhR1QhuKld l6+1XX+FTFlbm9z3wgR6d6GVBMsl7z+jf2myRX5SR6V7qPuYrz77DbG6ScEQXzWT0IAT ib4+WM9ZvKKuzoqe96C5ctW3XxDOjZn1POfDRcLHx9jYZF6z2LihbFkU44SdtUsDvdIl mVW632toRtCJCwzWCcBKjACtoXBm/Smx194+Sm3i8GOjCdsRkPNKzWG1A688jczm79dY Gj6A== 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=v1XIiBi4oFqFORFlQSNw7k0aiV4sK296qJvfGhGJwdw=; b=YvXNQm8Evyv2IlFtQUiS7515uJEf4vX1rmVjtR2ZLWye8RYosQJ74lH6zOzY25x+wX il9q8YO6tlCeZAB0gM+3cHp/3aSOyW+rCGGvGj9XzwMtNmb/kdsfnosyt9WnoxCDPHge 1eks2lVm+0lgwbe8Y3+23sKuSASpbwkCu4LBU2OsxU4iVt85z0EPuZb9l98XSoJ3Oj3l /9cejRUSDKag9kvLLNojTZNriMza1c4sgVaqY1OE67l42wCDpbyky0ElRSTdtSF/LKPp sOCdMMKaa95b4nRfm0O8YzucJ/1muwdjvSPiu35WQT4ARHdvK2STDO8himdhi+onXcDt /0nA== X-Gm-Message-State: APjAAAWolLf9ZiIma0cX/Z1uCDOs7vi8ghuxewhtYsPrXYy8aGXuWOqb qYXx0h1UxXX/3GsjCXbOaXRRNnkU4Uv6cWwzl/LmXg== X-Received: by 2002:a17:90a:7784:: with SMTP id v4mr955101pjk.134.1582663057319; Tue, 25 Feb 2020 12:37:37 -0800 (PST) MIME-Version: 1.0 References: <20200109150218.16544-2-nivedita@alum.mit.edu> <20200222050845.GA19912@ubuntu-m2-xlarge-x86> <20200222065521.GA11284@zn.tnic> <20200222070218.GA27571@ubuntu-m2-xlarge-x86> <20200222072144.asqaxlv364s6ezbv@google.com> <20200222074254.GB11284@zn.tnic> <20200222162225.GA3326744@rani.riverdale.lan> <202002242122.AA4D1B8@keescook> <20200225182951.GA1179890@rani.riverdale.lan> <202002251140.4F28F0A4F@keescook> In-Reply-To: <202002251140.4F28F0A4F@keescook> From: Nick Desaulniers Date: Tue, 25 Feb 2020 12:37:26 -0800 Message-ID: Subject: Re: --orphan-handling=warn To: Kees Cook Cc: Arvind Sankar , Fangrui Song , Borislav Petkov , Nathan Chancellor , Thomas Gleixner , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , clang-built-linux , Michael Matz , Kristen Carlson Accardi 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 On Tue, Feb 25, 2020 at 11:43 AM Kees Cook wrote: > > On Tue, Feb 25, 2020 at 01:29:51PM -0500, Arvind Sankar wrote: > > On Mon, Feb 24, 2020 at 09:35:04PM -0800, Kees Cook wrote: > > > Note that cheating and doing the 1-to-1 mapping by handy with a 40,000 > > > entry linker script ... made ld.lld take about 15 minutes to do the > > > final link. :( > > > > Out of curiosity, how long does ld.bfd take on that linker script :) > > A single CPU at 100% for 15 minutes. :) I can see the implementers of linker script handling thinking "surely no one would ever have >10k entries." Then we invented things like -ffunction-sections, -fdata-sections, (per basic block equivalents: https://reviews.llvm.org/D68049) and then finally FGKASLR. "640k ought to be enough for anybody" and such. -- Thanks, ~Nick Desaulniers