Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2305948pxa; Mon, 3 Aug 2020 12:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh2kAwodnhEFN4o+tRTyaxA6dvqRBbPFI/bQgP0/bHZq6HiNUL1ZOxcyP33DRGTWzd0fNY X-Received: by 2002:a17:906:cc4d:: with SMTP id mm13mr17622317ejb.191.1596483685843; Mon, 03 Aug 2020 12:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596483685; cv=none; d=google.com; s=arc-20160816; b=tu8RDhbvyDHYBELs4nOGJRDhJ1Ro1sUc+bk/d5SeX8CIsxEDZgdhaQwHibdaBZP9/M m6QFWyk0uBy9P6m2CMxMQVi58HdSdcVDslmelZXXSmjl0EVsmDC12jQGIY6yg/5TOawM pLHg5ejhMFlJVDIiMTiufyYQXYJ0IRLEqnWHHieaOI8VIKlZd00OeWoOYulcyZIq1Zdv 6RuFTNHkCU3QdPl4bnDG1Srva1wgC056LNLnKrSvFAc8xw6UnbhuX3/G4DfBsFKPw+nA Dcpq9DZSEqa8PzKT/rYwU/VBDG3IVi5ttIJ2e6vRs8rYGHA242vdiGBwNdn42NbtE7fw SAbQ== 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=KwaJzAuhKp0eMDKUyFcMapFzk1bqmh48WPQrufCV124=; b=Q+YnNjh1VhJu/G2OGWWmvYkVvLmxmHQh/9HPuCN245O3+CMhJaWI3amk1Z+QE4URED dpej1xLuZzdVpUWQMo5SaVJay1am7ymCbZi5GJWqaI0634I66GR3OARdQsLfmyZzZEbG fUjd9Ro0O4xF0+SOEJnwHpTYX+kFFmLfS20V56mok8wCX64DCfC0DJr4pRURe1CZgzm6 8BKKU2AyuXoER1fafqLrjBhUr8iAuR1FJMLZjyWew+cIvapljuTvY9H914YQk8b9+wsc rngCr+UuiX7POPgiDhrrlaS/NW9cssQmq3Up1sk60ZHD3raxpVzkqlPAGokTLrvDZgI4 Z08w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RrRBh6Ug; 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 v6si11179023ejg.516.2020.08.03.12.41.03; Mon, 03 Aug 2020 12:41:25 -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=RrRBh6Ug; 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 S1728300AbgHCTjA (ORCPT + 99 others); Mon, 3 Aug 2020 15:39:00 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:35703 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727813AbgHCTi7 (ORCPT ); Mon, 3 Aug 2020 15:38:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596483538; 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=KwaJzAuhKp0eMDKUyFcMapFzk1bqmh48WPQrufCV124=; b=RrRBh6UgHcD019r+czIwpUmisJzF5qytwTCkTGlTa75kBrco3FLA+Isi3sVG9nGVuG8GUr qCUSJnt7aKs6z/bbW4I0cX9OYAqoOZOjeAw/HxmwYzbaB5eu495sArBemuNlb0JAWLUgQA ZgL6TNrw2iDL+KiLvKQ/CnEINp+OpMA= 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-403-POlseAWyM4uGgMhDrzYE7A-1; Mon, 03 Aug 2020 15:38:54 -0400 X-MC-Unique: POlseAWyM4uGgMhDrzYE7A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB7B8106B24B; Mon, 3 Aug 2020 19:38:51 +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 985DA69319; Mon, 3 Aug 2020 19:38:41 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94) (envelope-from ) id 1k2gI9-0008Bt-GP; Mon, 03 Aug 2020 15:38:37 -0400 Date: Mon, 3 Aug 2020 15:38:37 -0400 From: "Frank Ch. Eigler" To: Joe Lawrence Cc: Kees Cook , 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: <20200803193837.GB30810@redhat.com> References: <20200717170008.5949-1-kristen@linux.intel.com> <202008031043.FE182E9@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi - > > While this does seem to be the right solution for the extant problem, I > > do want to take a moment and ask if the function sections need to be > > exposed at all? What tools use this information, and do they just want > > to see the bounds of the code region? (i.e. the start/end of all the > > .text* sections) Perhaps .text.* could be excluded from the sysfs > > section list? > [[cc += FChE, see [0] for Evgenii's full mail ]] Thanks! > It looks like debugging tools like systemtap [1], gdb [2] and its > add-symbol-file cmd, etc. peek at the /sys/module//section/ info. > But yeah, it would be preferable if we didn't export a long sysfs > representation if nobody actually needs it. 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. - FChE