Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2573422ybf; Mon, 2 Mar 2020 11:20:48 -0800 (PST) X-Google-Smtp-Source: ADFU+vvoy9/l5hcUIYibRx0wJYdZbBsXUCr9eMe6ow3DrEYGeD0Hww32zZfv9MiZkDcx0G+mo/i8 X-Received: by 2002:a54:4098:: with SMTP id i24mr1773oii.149.1583176847911; Mon, 02 Mar 2020 11:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583176847; cv=none; d=google.com; s=arc-20160816; b=tRHILCxTCEPeH88RP29xWa7QUMyu8j4T9tRtMXULjSzGSj2spsZZLja6ZFYI7R6Pgh xd3NhCeAy7PxY3U318jQdk/6k50nLi1mOiSKFSVGeuPaoJfGVyg9iKGCv6kssXO8s4td BGBYWP9ZhpZVxdHaeZMVeTHIGzRRd4l4HZYgj6HlU4fXd2//TgiwXhiT1mxytsyRjhVm b1Z2LuoO1XHy02ELVWRUgRghbQck6Zb368g7LN8GsqaLaKckmFYaWiCpNOQeA6r5f76g FTju5JkwiG4yno4dJvOUq2mZ6oMjagreg+FGyAWqBFRYUhXo0dehjLtsSyWgFHwq1saK u75Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=RCcdmmYmhnKme4EBEiOn9vszQlPwC7QPacxz3GX6p5E=; b=EZ5MRUVt6J5RgVBnlWgVhSuQMc1wLyks5sI5BgteyUDchNZfz1F3MTHRHv32Mk/xCp aL7ucffSbza2F7NVYU6xcwO/eSu1Ky1FM8yIn51MFqPDbfvRFC4Nr3GkJoCxx9x4kyg5 q5Oux5F5qcA0OdJ8P6swYh1i9ASKUcwT2O5AhgJiCSlJ4FhOXWtmZIdrm+qoUSvISIak MWnxt8PldZtzcU1Z1t9xOgYRaM1oQvyDzpgrKtSElUM1fK85oMi+i1VMqW1dAUlz0Xwa zfdXpWkliM5zGNU+x9SlpQ+wJ6kv27ETnNIkVSxKcJuutMS45c9E1N4qf+nKuRElJRUG 5xcA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si5526124oix.239.2020.03.02.11.20.22; Mon, 02 Mar 2020 11:20:47 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727126AbgCBTT4 (ORCPT + 99 others); Mon, 2 Mar 2020 14:19:56 -0500 Received: from mga07.intel.com ([134.134.136.100]:7782 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727536AbgCBTT4 (ORCPT ); Mon, 2 Mar 2020 14:19:56 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 11:19:55 -0800 X-IronPort-AV: E=Sophos;i="5.70,508,1574150400"; d="scan'208";a="228570400" Received: from kcaccard-mobl.amr.corp.intel.com (HELO kcaccard-mobl1.jf.intel.com) ([10.24.8.183]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 11:19:55 -0800 Message-ID: <66d6506278121f22c4360110c38ee3653e4fb1c6.camel@linux.intel.com> Subject: Re: [RFC PATCH 09/11] kallsyms: hide layout and expose seed From: Kristen Carlson Accardi To: Kees Cook Cc: Jann Horn , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Arjan van de Ven , Rick Edgecombe , the arch/x86 maintainers , kernel list , Kernel Hardening Date: Mon, 02 Mar 2020 11:19:55 -0800 In-Reply-To: <202003021107.38017F90@keescook> References: <20200205223950.1212394-1-kristen@linux.intel.com> <20200205223950.1212394-10-kristen@linux.intel.com> <202002060428.08B14F1@keescook> <41d7049cb704007b3cd30a3f48198eebb8a31783.camel@linux.intel.com> <202003021107.38017F90@keescook> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-03-02 at 11:08 -0800, Kees Cook wrote: > On Mon, Mar 02, 2020 at 11:01:56AM -0800, Kristen Carlson Accardi > wrote: > > On Thu, 2020-02-06 at 20:27 +0100, Jann Horn wrote: > > > https://codesearch.debian.net/search?q=%2Fproc%2Fkallsyms&literal=1 > > > > I looked through some of these packages as Jann suggested, and it > > seems > > like there are several that are using /proc/kallsyms to look for > > specific symbol names to determine whether some feature has been > > compiled into the kernel. This practice seems dubious to me, > > knowing > > that many kernel symbol names can be changed at any time, but > > regardless seems to be fairly common. > > Cool, so a sorted censored list is fine for non-root. Would root > users > break on a symbol-name-sorted view? (i.e. are two lists needed or can > we > stick to one?) > Internally of course we'll always have to have 2 lists. I couldn't find any examples of even root users needing the list to be in order by address. At the same time, it feels like a less risky thing to do to leave root users with the same thing they've always had and only muck with non-root users.