Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1879656ybv; Thu, 6 Feb 2020 11:29:31 -0800 (PST) X-Google-Smtp-Source: APXvYqy3DmCjhCdzHW9s7OPJuSizeoVvRYz8nGgXYLmP5QEdpeMSvY495HJIruXrKwtONJQQtD4w X-Received: by 2002:a05:6830:2015:: with SMTP id e21mr30636921otp.106.1581017371575; Thu, 06 Feb 2020 11:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581017371; cv=none; d=google.com; s=arc-20160816; b=Y6JEYBdEQGcc3fxETPVKxBmDLLMHVxGkJxaM7AUceYhLlQxUYm8w+bhWkcSNwn6PEz esRgVx9ej5hEYDJ+YCkscpW/96GyM3lRR3cstzqkjK416zz/Qe2oepEJ9NtRjSt4CBaf uJBGZc32AppNBFoFI0QUtCZQ5FeHiXpOsJV1mm/IZfoxxLPSlRwKbH/6aySkn2VqaWii Y/Kb49ro6XRrpb24xRy0WPpNlpplRZBfCsK2rh7dkS20tZouMiOqwR7ii2LPjizeZZ7c T3DA0Z//N8o5nPZXe4S+v8YVlA/gbYeW5ECJCnDh1gMcuH61/yZjHRwtccC+QoaWZAL8 DkTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PPzXTmDRqSItJwjA4stEZr45/Nmk9dtQCp0t0GcfvJw=; b=EWdmG3jYQ5bZ79J5aW90xWH5Ju6JPfU0/gHBwdTImAQlaVP18/aXExanhQ/s4LfuHz aAB5XSZhx/1iMuwB1K/zTbsBzbip/6u1UlSFA1u7DvXUdCcj+NbnB+hhurzn5c5d5f5J tb8r8C/sabMbEFPdXhH+hKIl2ZXHQQnSxVYAESCsNU6wN5udZMSeffMd0Jzve6pWfLMe 1crsQJr69rIIe9GCZ7ErhIC212UcDQBQsigsYX1KSLwuewDi3x+/oD1eFiGuGT2IIPsT YKZf1cdOPw/f8wHUtmc8ZMkUWeu6AKmH0p6tVMxRZQ7EHNMcFAcKjuP4jBsWVFMqpX+V 0R1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rvfROt3n; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si278132otr.207.2020.02.06.11.29.15; Thu, 06 Feb 2020 11:29:31 -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=@google.com header.s=20161025 header.b=rvfROt3n; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727836AbgBFT2O (ORCPT + 99 others); Thu, 6 Feb 2020 14:28:14 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:47094 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727698AbgBFT2O (ORCPT ); Thu, 6 Feb 2020 14:28:14 -0500 Received: by mail-ot1-f65.google.com with SMTP id g64so6585044otb.13 for ; Thu, 06 Feb 2020 11:28:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PPzXTmDRqSItJwjA4stEZr45/Nmk9dtQCp0t0GcfvJw=; b=rvfROt3nBVHeNCQfPYWwuOMBfp5sQZIqkXiywCwoSlbuLD0R8zkM8I/44uAiL/SsWG m8pc4hnzhgAK7O7L9Mm0YtzToA4+uNCENjfatqKVEHKStfKAnwMD4IWW7jHLRQikdM9a QJsAft3GrJ6L4V0NEvCvWSIXW0n6YGuCLzvZUfoSNUXAozdf2Vmo01BVSUvel13iFfOV 69wXY7b+REnUDlrLcBKbNwTH9NJhbfMsmO1PE3DYyzdQTiCvNH1RsZucMAwq8qvUXXW3 LZDAShSyOYZQgIpYGlMYQAd/U72LOUhUYpHMb+S8g6auBLeO5B7nblSGM5a6u9TbkR7i jBkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PPzXTmDRqSItJwjA4stEZr45/Nmk9dtQCp0t0GcfvJw=; b=i6DlYBRN7kaGL7j9Q6SNcR4TB+6tWdBHDbB+8PbwFxjPqr2dIV67/mrBWl3rnQhguD G8JxxuC6xlAUbPIQ9NRTRJu4XLtYbikARd3reLT5PF98ey8WIQqEcwKrCoAR3mw4S4Fp baHExL2fFNhUohrkKOnVJNt8r1/LXCB/lTp69dl1jfGfoo6klkuGQ4JIxcEfMIAFLf2H anra8XqNtJ7Gwjz3gn5/NnycYNglUQeRRsGDgz5jEl1A1T1p41RlZdq7FGmzyzB8butC vOxHTEZV8PKYS78CZSl0Hf/Da7FV6beARupRXsxqBR6KqREtok7n6sfIZjsP7TkR3qg+ 1a9w== X-Gm-Message-State: APjAAAUyAvLFzS2YgScZ6S7vDy3b00hQcW9hap8i5CvEeODKetbZJQHz jDb/+JwWcsTKBpnsxsVy27EpQZzsF4b2MUaFWqJp1w== X-Received: by 2002:a05:6830:22cc:: with SMTP id q12mr32387120otc.110.1581017291747; Thu, 06 Feb 2020 11:28:11 -0800 (PST) MIME-Version: 1.0 References: <20200205223950.1212394-1-kristen@linux.intel.com> <20200205223950.1212394-10-kristen@linux.intel.com> <202002060428.08B14F1@keescook> In-Reply-To: From: Jann Horn Date: Thu, 6 Feb 2020 20:27:45 +0100 Message-ID: Subject: Re: [RFC PATCH 09/11] kallsyms: hide layout and expose seed To: Kristen Carlson Accardi Cc: Kees Cook , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Arjan van de Ven , Rick Edgecombe , "the arch/x86 maintainers" , kernel list , Kernel Hardening Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 6, 2020 at 6:51 PM 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 :). FYI, a pretty decent way to see how people are using an API is codesearch.debian.net, which searches through the source code of all the packages debian ships: https://codesearch.debian.net/search?q=%2Fproc%2Fkallsyms&literal=1