Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp569773ybf; Wed, 26 Feb 2020 18:44:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzN8gNNW60ijRSogNVeoQ8Wchh5FKR5B5CvVSNMz91+9NuwApa8I0D0nyBtCBSC7icTCWOm X-Received: by 2002:a05:6830:15a:: with SMTP id j26mr1495120otp.137.1582771448837; Wed, 26 Feb 2020 18:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582771448; cv=none; d=google.com; s=arc-20160816; b=lj7RK6INhhijC5IgPMZb5ysBIPO0ly9aYbKCC1h/bBPPKVNpcCWS31sgGhA4IEeWGv TMw5DABSYNho2LKji4CL8teBxbAfpUNjvdSKKHWIBRbtB7tFNAilelYollc2+bTxiqSq 2DoQ+oq1Yu5AqlXrPvRSYpoFCYHCpj46IV+mrRthSQprHI65g92ncCwGb4agv6U1oJnm 5oTM0+osVeColhHStIQ39xGHivq79nlqbHL/dqv0zmKXQTgUQwNYE5OjI9UcN6uOSWIa z+hlRJqHvs9VEQ6PEi6HrqWrApAIH2pineAs3STJtTUKtPK35tph84wQ3Le+QMYfk+ei WTrw== 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=jIzd+MZl1AvxRGDWe7UFrELxx/1RAKgj7dqtWoVC2q8=; b=AS1Qu6pzTM0UqbZdl4yWGc1pECD8dMXjenawmq9TkdoteRyaUpClZz08TCobQ/LaA2 2biZv8qK1cxa90S8uz+R21579z7d/yUJw79RgMxZIZfx3fdbkp5NLO0FFrfwzVP9LZnP gyauMIXXtRLZVyv5NsDjJDwkIUBtolfGhjKgPpPl/iVDN3dG3DY/SAFRm0OwT+dcPO/Z ndhDFoz1oeprjqqD5ZaTrW9TJWtOfq8k+7VMOMATKNiewsbxWh8+Bbt/x0KFu2p9msYj 6pi0K8kCl6ECRI8RoNyCx5TLBUw6KmtTsQOu6i9yD8t0Vexjo5owC27VBwuZ1bGZ8UDt hlZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BgLqNPkv; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si578346otl.313.2020.02.26.18.43.57; Wed, 26 Feb 2020 18:44:08 -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=@redhat.com header.s=mimecast20190719 header.b=BgLqNPkv; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728228AbgB0CnH (ORCPT + 99 others); Wed, 26 Feb 2020 21:43:07 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:60985 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728094AbgB0CnH (ORCPT ); Wed, 26 Feb 2020 21:43:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582771385; 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=jIzd+MZl1AvxRGDWe7UFrELxx/1RAKgj7dqtWoVC2q8=; b=BgLqNPkvYkA1ftIBextYCzPG+5Gx6Rh9f1+uMANZW6+exqZaf1E+PkwDgpPStyxLvekA69 DgqJBYALfEpNcnan0JIOXrPbrHdhDEMJKzb0zGviUN3b2kWViS2MrjjSbqYwmEP5vpP/JZ Zf5KaNjIvCpT6i0RJGkULqMoRXO9/c8= 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-48-OiqDfqPvP-WvbDkjQd8jmA-1; Wed, 26 Feb 2020 21:43:01 -0500 X-MC-Unique: OiqDfqPvP-WvbDkjQd8jmA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3A6751005512; Thu, 27 Feb 2020 02:43:00 +0000 (UTC) Received: from localhost (ovpn-12-63.pek2.redhat.com [10.72.12.63]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 665A660BE1; Thu, 27 Feb 2020 02:42:56 +0000 (UTC) Date: Thu, 27 Feb 2020 10:42:53 +0800 From: Baoquan He To: Kees Cook , Kristen Carlson Accardi , dyoung@redhat.com Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, arjan@linux.intel.com, rick.p.edgecombe@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, kexec@lists.infradead.org Subject: Re: [RFC PATCH 09/11] kallsyms: hide layout and expose seed Message-ID: <20200227024253.GA5707@MiWiFi-R3L-srv> References: <20200205223950.1212394-1-kristen@linux.intel.com> <20200205223950.1212394-10-kristen@linux.intel.com> <202002060428.08B14F1@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/06/20 at 09:51am, Kristen Carlson Accardi wrote: > On Thu, 2020-02-06 at 04:32 -0800, Kees Cook wrote: > > In the past, making kallsyms entirely unreadable seemed to break > > weird > > stuff in userspace. How about having an alternative view that just > > contains a alphanumeric sort of the symbol names (and they will > > continue > > to have zeroed addresses for unprivileged users)? > > > > Or perhaps we wait to hear about this causing a problem, and deal > > with > > it then? :) > > > > Yeah - I don't know what people want here. Clearly, we can't leave > kallsyms the way it is. Removing it entirely is a pretty fast way to > figure out how people use it though :). Kexec-tools and makedumpfile are the users of /proc/kallsyms currently. We use kallsyms to get page_offset_base and _stext.