Received: by 10.223.164.202 with SMTP id h10csp471517wrb; Wed, 8 Nov 2017 20:55:46 -0800 (PST) X-Google-Smtp-Source: ABhQp+ReCBiLLRq5/Qua+eHPbPl3W5jBLe1TPMIOrB3qFnS8hqf+yiYQtn/cdJznNME4MWLC2G1T X-Received: by 10.99.167.12 with SMTP id d12mr2674963pgf.414.1510203346389; Wed, 08 Nov 2017 20:55:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510203346; cv=none; d=google.com; s=arc-20160816; b=Aof582miAePipW+Yh4ho6S19xghrjS01KgJ+FhwnmdmPwSFWT05Rcd8rg/bXnZ64dg g8HhpyqUH9LC8BEUgj5U+WQ9/q/iASL/1NthmdzW9JHEf/tmv5Zca8dFDTYnNb6SynCv ACJ6UqReiv2cw4bArynlfBfhKqSddVEsz4XPTfozqTERR8HikjUXqV8lz9F6+OfRPaeq VtFQxxRUgFDkyILLAblahpVI7aozMpDZx43C+7es0NR8Tm4gxMnaMZmlUSossfNzIYYY hj8amRc9EpDhWKST+EbatLM8Fa3srg4mQPUCcPLxFjd/dqbzh7kc9crQQeC3resqmY2p ngzQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=rxCEUJFWYcappDEwqfbidEGn9hKMN/X5604d03ZQXms=; b=z0WWv8Yen9iCiSHmJeimGRKjxe5VGRjyWtiefRPgaDPSP7IQEDr6sh8P0tLJb8YVPt OKweH538h98Qp0T2NSGHC2W2UypRggkfdnhgdV7bzQ3+oti1ykJvOkwI6E/RCkacCUrV d0Mu3XMMrWHFgAWVL0VMcL1NoGfwvW5/FyszOaeqyCeVUnfmKW2Dl45vdbG5ouY5+/w2 MwqDDO16jOCNzgAsc/jixxxyG3mc8kUkf0iqPubwIaNqYfXDGc91go+oJ4FbuAWFF3wV MghUQ0pkGIqjFFXm2ZuZOaXsobTe5VynvhbqesmNJjiooc008joAnkC60Y8VJBxiMr+e P18A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=glnB+v5W; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si5492179pgr.631.2017.11.08.20.55.33; Wed, 08 Nov 2017 20:55:46 -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=@gmail.com header.s=20161025 header.b=glnB+v5W; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752289AbdKIEy4 (ORCPT + 82 others); Wed, 8 Nov 2017 23:54:56 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:52361 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbdKIEyx (ORCPT ); Wed, 8 Nov 2017 23:54:53 -0500 Received: by mail-ot0-f195.google.com with SMTP id 18so4289484oty.9; Wed, 08 Nov 2017 20:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rxCEUJFWYcappDEwqfbidEGn9hKMN/X5604d03ZQXms=; b=glnB+v5WwTaRvNc+c+RXirbPzT+aSVHGSVCvJ5XxFLHa89LTHfiUDB3s6LA3z7RBtK o7DjDzpPfs4uP/sTeEUH8KRrMJc1mVjyqjhFsqEM3/vFGZqG955zhQfqhQS6myPI6/E8 REwZBPU+4kvQ29JjgB4x1Dn6ExDD3uYCo8I3Xb1M2afy7WaSzfxFyrm5GyZk0+72y9ML uiF2pUW0Pq90MV7kBxp8YIoh4Ozd+vYYn7BMDMnf33P6E6h/vFQppb83ESmnTbwb9wzQ F/Mc4enOsolJCJvqv9lItlL1rkFX5wKCGRRk+xj0s2rj62+8bVFFyBNUn9XzqxmRR7Nr dZRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rxCEUJFWYcappDEwqfbidEGn9hKMN/X5604d03ZQXms=; b=XyDa5gtCkHKQECYpprG6anXqH6PzV1jWJ4jrVMx6jWtyLyIWFaq+9SMjynP/O51Ouk hwolowwcliyXgG2mXUZoUG7Xq2ug6EIYkcDyyLYvXaw/s4sheY9F4q8f1yzyNFpX0x8r bJdP1wu1PWU8awxf8YXdhRusFj8F/TyjoJNbSJTqs3A1j4RNf70+FuY2W3XpXOPMsJla exWNLkftYrC2ZtnjEpShenvrExhDV+CkXCy4linZimp4iOgt3X6K+mgv0rPM3wvfKHmN HztyiIhrAk5focpcSx02VuoimNsY9xicRYW5cqcNo5HAOVzXQiMN+NmcnbgE39333s0R /NVw== X-Gm-Message-State: AJaThX5Wz+ttvLWmRvEeP+1AWcAAOU1Xsno2q/Mrfv/jtklCH0yLOUoB KaCRaCu0lMlDLJ9UeXNr1ihryWW26vxZg7VwXZI= X-Received: by 10.157.20.219 with SMTP id r27mr1582618otr.362.1510203293072; Wed, 08 Nov 2017 20:54:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.138.199 with HTTP; Wed, 8 Nov 2017 20:54:32 -0800 (PST) In-Reply-To: References: <1510050731-32446-1-git-send-email-me@tobin.cc> From: Kaiwan N Billimoria Date: Thu, 9 Nov 2017 10:24:32 +0530 Message-ID: Subject: Re: [kernel-hardening] [PATCH v4] scripts: add leaking_addresses.pl To: Linus Torvalds Cc: Laura Abbott , "Tobin C. Harding" , "kernel-hardening@lists.openwall.com" , "Jason A. Donenfeld" , "Theodore Ts'o" , Kees Cook , Paolo Bonzini , Tycho Andersen , "Roberts, William C" , Tejun Heo , Jordan Glover , Greg KH , Petr Mladek , Joe Perches , Ian Campbell , Sergey Senozhatsky , Catalin Marinas , Will Deacon , Steven Rostedt , Chris Fries , Dave Weinstein , Daniel Micay , Djalal Harouni , Linux Kernel Mailing List , Network Development , David Miller 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, Nov 9, 2017 at 10:13 AM, Kaiwan N Billimoria wrote: >> But I don't know if there is anything else than the profiling code >> that _really_ wants access to /proc/kallsyms in user space as a >> regular user. > Front-ends to ftrace, like trace-cmd? [from the trace-cmd git repo (Steve Rostedt, pl stand up, pl stand up :-) Documentation/trace-cmd-restore.1.txt : ... *-k* kallsyms:: Used with *-c*, it overrides where to read the kallsyms file from. By default, /proc/kallsyms is used. *-k* will override the file to read the kallsyms from. This can be useful if the trace.dat file to create is from another machine. Just copy the /proc/kallsyms file locally, and use *-k* to point to that file. ... ] > Am unsure about this, but kprobes? (/jprobes/kretprobes), and by > extension, wrappers over this infra (like SystemTap)? > I (hazily) recollect a script I once wrote (years back though) that > collects kernel virtual addresses off of kallsyms for the purpose of > passing them to a 'helper' kernel module that uses kprobes. I realize > that 'modern' kprobes exposes APIs that just require the symbolic name > & that they're anyway at kernel privilege... but the point is, a > usermode script was picking up and passing the kernel addresses. > > Also, what about kernel addresses exposed via System.map? > Oh, just checked, it's root rw only.. pl ignore. From 1583562288884428852@xxx Thu Nov 09 04:44:43 +0000 2017 X-GM-THRID: 1583410491222242898 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread