Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4142435ybv; Tue, 25 Feb 2020 14:04:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwiA/OESi7xEQsu5mzETd962zEOTcCVEIMcsedIJOoGXtXV4/8aTwcQ7gVOgNfNuXff5gDn X-Received: by 2002:aca:120e:: with SMTP id 14mr735150ois.135.1582668291624; Tue, 25 Feb 2020 14:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582668291; cv=none; d=google.com; s=arc-20160816; b=X7Zi+ZSzA9nvASmu39DpLnkVN0AOT+NmeK4yT1edMe/lo+rqXpTw+adeWi+CB/8TZw Wz2408av0nl8l20b14lLiGVTkR+RIKiCzVLs8b+EyGMkedX+8BpMs+ZfNOuQdTvkto1b IyCpG/QyvCMzIq2Omf2vWo7h62F40oUW55fKhMFo94qQlLEoCtIa1mE+PRE08SFywg2B pdMhtow5hcNmEtd9I5uRp+NSE/gAtuVmcidI2Tg1ee5nu2f71lKQGipiZS92RzPPpb6R 9ziiUzQfuOkVLrcro8kJc7rZZlBkDfaK59i8EN93ldGsTbKKs5EArGvZzzW7DcDHWrve CaLw== 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=Bvro5bqgLoB7Q+QOnUukmSXnFk4BT1NY/ZAFMUfpRmI=; b=VxlHFQJ/8a5IblWEnV5s4x3UY7op9Fo3e8ln4pXkd6zoOUrfacIU0AqQqwJAYjD3bX 9vkFToazILY/a6i+3h2aZ7ZmdZXWfLDgPcyFF7fUpKlcIWU20GyfMSRHYGpwkWvmhLPr ASCYStb4j25f9GhnRw25JxWzr+sPXaTFK98whZTxdx/BtJ6QutCRog56Gc2rlKEyZVfM z2C2/5U2x/tZ+AvUvVVBfFzYuDbN1emX3hG4bR/rvwwX43KmvC2b4hm4qB+55kyo619K I+P/m2HHsCRHFmDkG/8t2QPsQlkrgUGNFSYbrgyCSjQXEjZ7oCwhRjNjV+y8fYI01/zg IWIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QMkbvLLy; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si12596oih.187.2020.02.25.14.04.37; Tue, 25 Feb 2020 14:04:51 -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=@chromium.org header.s=google header.b=QMkbvLLy; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729161AbgBYWCw (ORCPT + 99 others); Tue, 25 Feb 2020 17:02:52 -0500 Received: from mail-pj1-f43.google.com ([209.85.216.43]:37702 "EHLO mail-pj1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbgBYWCw (ORCPT ); Tue, 25 Feb 2020 17:02:52 -0500 Received: by mail-pj1-f43.google.com with SMTP id m13so342004pjb.2 for ; Tue, 25 Feb 2020 14:02:51 -0800 (PST) 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=Bvro5bqgLoB7Q+QOnUukmSXnFk4BT1NY/ZAFMUfpRmI=; b=QMkbvLLyqttt8K0Za0EOq8KWcm6weijM62KcldL6NQ2fIoAXY026AK/Dgog7qX2hbG S3i2NIWMVWvBd2LzrF/4EBNAgxk2GuDRyHGFUyDGtsfJ3er50UMq46NMGX0gLE2GRn7a ZcKtvDacIkE97cApgIrf38ItG6/pao5IHz4cA= 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=Bvro5bqgLoB7Q+QOnUukmSXnFk4BT1NY/ZAFMUfpRmI=; b=Ld80AB6epJuSGyp1hlBFp0afSF6gvmojvQ4DniUDhQNFG/hBV1JoYOVy/7K6ZAxA5L Yj36Nwqa3gvhB6/PlyzbH1QYADUdly+zJJcZ+PSiN3snaSUNCkzDwTvhaHLojwVASliN JGHgnAmGs3wDqKVFYRe0o6gpFloBdP9rMc4lMACpZcY/34YOb7b4pCmn4lXvljLVpeIE fVp61vkUS7W2RKgVfK7RcazeLB0p01C+b/xfxkMRYYRzpC06qSLdPPxEzvIq3x15xL4c Ftf7n22HkrwuXZZ8T63aF+9ZuSUYB+BqY5pw/X0LFBR3pY3F+PIffT2+rIvXnsp4UgmT 7Q1Q== X-Gm-Message-State: APjAAAW+yk22FRHF6q3hPXPhB/RuKxuedQeVSKlDjX1w6blYibb0BjIq XGC0Jt0QMRpbcgfmfjTJ5i4+Fw== X-Received: by 2002:a17:90a:cc16:: with SMTP id b22mr1268428pju.65.1582668171246; Tue, 25 Feb 2020 14:02:51 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a19sm94740pju.11.2020.02.25.14.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 14:02:49 -0800 (PST) Date: Tue, 25 Feb 2020 14:02:48 -0800 From: Kees Cook To: Nick Desaulniers 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 Subject: Re: --orphan-handling=warn Message-ID: <202002251358.EDA50C11F@keescook> References: <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> 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 Tue, Feb 25, 2020 at 12:37:26PM -0800, Nick Desaulniers wrote: > 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. Heh, yeah. I had no expectation that it would work _well_; I just wanted to test if it _could_ work. And it did: FGKASLR up and running on Clang+LLD. I stopped there before attempting the next step: FGKASLR+LTO+CFI, which I assume would be hilariously slow linking. -- Kees Cook