Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2355901pxa; Mon, 3 Aug 2020 14:13:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMZGZrwYLoA2kjHN2fxey7HjjUpkPx1yH+GP6uPtFWHcBBcfySDQfQXktjPdkxrCBIoLOQ X-Received: by 2002:a17:906:1f53:: with SMTP id d19mr18092443ejk.327.1596489221683; Mon, 03 Aug 2020 14:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596489221; cv=none; d=google.com; s=arc-20160816; b=jEtfihOaq0RnI0XITZMnJl7kMFf7D6bhEgKGK4nuoqQR6exTQkINq8DblMxQkqra13 bT5qEBQgGHb4QghmML9eJjDX8+XSERGmtIz18M0kVx97nBb/yRgV7AsrNTZrjCgQt/i+ p8mRxekbWRqSghEfET7cOH/eBhpBH5xDOD5oKYE2Dfkw0tyuDbHoJ0SF+8+HOnHS4fiw g6yt9dEPvnNGfbBpokYKmD8F7SkLPEbbqEYTW51FmdcO36sL9PFm+pkDhzX5VVRlk6XJ okRbUvBwVLeQ05BGlCVJGOjmfoc1oTbpUOzmnvDVfMnHBA8tENKCpXyodigxHVBs2/yS 2OxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oDk7BkLvturoY2j4bZcgcnngVm0+SqYFOos8ttHdu5Y=; b=q0VVrK8tg9cmktqk4KI9cqgh3gERF5Of4rV5G9XDeDs7uRtodFFjmVthP1RpcqmjVw 5VAZA1PCAGRDMvmQLfNdnbzortxAMz4OfPM819BbKmoQsObnRsc10qUnfTPmIvjE4zBE sz8hieqR7OJRkYkxr/xtC5zSutgssRqdLwWp9calh8BqJbbjHSchQNbzvdVJUta5TxC0 TdTjrD+6Ky0Kgr8jJS+1zevLBZi2IAwSyd4PQ79DT2AkEmkHyjwXRRm5hNnI47xeETUs dKI2CbLqZvqePMMuh96FF4syz0DjdCiC4d7I8SG7uf4nThuvf64pguYLNIuTcgwdrCrd fG0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=itBpUuOU; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si12012630edj.482.2020.08.03.14.13.19; Mon, 03 Aug 2020 14:13:41 -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=@redhat.com header.s=mimecast20190719 header.b=itBpUuOU; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729119AbgHCVMn (ORCPT + 99 others); Mon, 3 Aug 2020 17:12:43 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:53368 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729118AbgHCVMn (ORCPT ); Mon, 3 Aug 2020 17:12:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596489162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oDk7BkLvturoY2j4bZcgcnngVm0+SqYFOos8ttHdu5Y=; b=itBpUuOU55gK2BPG0RagsSlnnm9PIyZJeMxtFoFwR3ftTG7tZ4gww6rZ9UmB2WMccXP8lr WrU1HL1kRGxkEYxn0QViv9GH21Cr9coAojBeGQB+aubtVB2KGQNl6Z50+8TOfX54TLCmLu 8Vvq9Sj2tHBEQiOMeac4mymsBpduxIo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-41-GjiaqvMBOICm3jt1_nLYPw-1; Mon, 03 Aug 2020 17:12:38 -0400 X-MC-Unique: GjiaqvMBOICm3jt1_nLYPw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 580D8102C7ED; Mon, 3 Aug 2020 21:12:36 +0000 (UTC) Received: from redhat.com (ovpn-112-64.phx2.redhat.com [10.3.112.64]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9FFE15D9F7; Mon, 3 Aug 2020 21:12:32 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94) (envelope-from ) id 1k2hky-0008Hd-VD; Mon, 03 Aug 2020 17:12:29 -0400 Date: Mon, 3 Aug 2020 17:12:28 -0400 From: "Frank Ch. Eigler" To: Kees Cook Cc: Joe Lawrence , Evgenii Shatokhin , Kristen Carlson Accardi , Miroslav Benes , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, arjan@linux.intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, rick.p.edgecombe@intel.com, live-patching@vger.kernel.org, Josh Poimboeuf , Jessica Yu Subject: Re: [PATCH v4 00/10] Function Granular KASLR Message-ID: <20200803211228.GC30810@redhat.com> References: <20200717170008.5949-1-kristen@linux.intel.com> <202008031043.FE182E9@keescook> <20200803193837.GB30810@redhat.com> <202008031310.4F8DAA20@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202008031310.4F8DAA20@keescook> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi - On Mon, Aug 03, 2020 at 01:11:27PM -0700, Kees Cook wrote: > [...] > > Systemtap needs to know base addresses of loaded text & data sections, > > in order to perform relocation of probe point PCs and context data > > addresses. It uses /sys/module/...., kind of under protest, because > > there seems to exist no MODULE_EXPORT'd API to get at that information > > some other way. > > Wouldn't /proc/kallsysms entries cover this? I must be missing > something... We have relocated based on sections, not some subset of function symbols accessible that way, partly because DWARF line- and DIE- based probes can map to addresses some way away from function symbols, into function interiors, or cloned/moved bits of optimized code. It would take some work to prove that function-symbol based heuristic arithmetic would have just as much reach. - FChE