Received: by 10.223.176.5 with SMTP id f5csp3851807wra; Mon, 29 Jan 2018 21:12:25 -0800 (PST) X-Google-Smtp-Source: AH8x224s4hg7nMNhkoXsuq960J5rWmGTJ/rGrlTTyYM7ybVR7AB6OEPSfQ5Kf6+DwduWaLmT/2lg X-Received: by 2002:a17:902:3363:: with SMTP id a90-v6mr23424085plc.159.1517289145487; Mon, 29 Jan 2018 21:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517289145; cv=none; d=google.com; s=arc-20160816; b=0mM02solKPmQPS9oFYEZGS1Y8YVVtQYg9IyDgWcYj4WUlMb4k/x3JS2BKZrNxgAtsb eCFh1FG+ZySAqQSuA5mTxgOuFIrgYgT2RAOAdtexE0KAeI03mTVH+JJ9pWdLyayHG7/W 6i88bMjtMuaFPtdk3a+C2RRobwQhRorVl1C/byoYThnE6CGYIrUI+LArDyRs1jdAmPGq nHD9+z6pgM7atYcH9LKXfxVsjB0YDQmkEAH9dW42SQYfz88QwzUBFnYX1xwvCb1PqmlL Dcpv9AflEh2UCqyjVOufYQTp5AWqpgh3N1AoLoyBU6o2GAEE+qiGQWg+EppxVvPjSCwC tSrQ== 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:dkim-signature :arc-authentication-results; bh=47ZHCD7wbbo340RRKLiqaklPX/Jyv6iI6MgJ7/3jjGg=; b=Ed6WxtAQtLk3dZf2bdbtxIPoyXonCrps8u7QSmfSPO3O+NOVtfy0ShOr2useHdI1VS A1L9GeGV50i89ICufhETHa1p47SsZp7cgnbRP+T5vTVqWkCedrhQw3Z5lkpyHETeIWEv 5r+aoOB64Tj6DN4i49SgDhlZhvdk0/gEe1AxquY36HzeGUn91LH3aA7YiKyKiFBpA/Oz j+Vv2F95xuiJa4Xej8yxb4/YA34ozpeEjKva1e9z+cHdLxyT2rvYkQzfSPOhEzwt4Uoc 0Y39LGu+vcVJNOCOltECrURe6CU0TLbmzRkKMbjoPGxkf1YfcMZL+rUGj7urPlaJwaQl shxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tobin.cc header.s=fm2 header.b=Ym6UTgCa; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GwhUiEWt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r74si13301090pfg.270.2018.01.29.21.12.10; Mon, 29 Jan 2018 21:12:25 -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=@tobin.cc header.s=fm2 header.b=Ym6UTgCa; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GwhUiEWt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752711AbeA3FLq (ORCPT + 99 others); Tue, 30 Jan 2018 00:11:46 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35427 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbeA3FLo (ORCPT ); Tue, 30 Jan 2018 00:11:44 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E379E20D60; Tue, 30 Jan 2018 00:11:41 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 30 Jan 2018 00:11:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=47ZHCD7wbbo340RRKLiqaklPX/Jyv6iI6MgJ7/3jjGg=; b=Ym6UTgCa w4YKfH7euYMEN45B8kmv9n+SoXFznan//bTwtYIzmrRZV5OgBqB41Abxku7gFkQg 2/DioBfqn8gX55jopVLWkCWGXlPPHTBdxMPYJ8ckpNFLLwL7YATOHR84Q8rznOlj BGfXI9MEaX0o1eXSk8oRm416BS5QDlVKtrkz/rJQulzTC+kAqbdlTGoi/UnpIhBw zMwWHFdcT6n2jyB/87eG0OyeYhuHU5F8qQiDFKzAuq+1wmgts4faUs0CJfOk/Jqz 3o3eShoXRK1vbk4bP3FlAPPmBcU4UC2RxmYxgllqb6OUgdnt4BJuir5+37iz/eIb 7SMOM5f76zvvlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=47ZHCD7wbbo340RRKLiqaklPX/Jyv 6iI6MgJ7/3jjGg=; b=GwhUiEWtRoBDhEFflVs6rk90eG2ivOa51i4MnJtrT7JVG VmaA40PD+GSHjBcIAZijj8KLq49/+zL96yAQzAm6iAof7A0eIIte70CYnkchhUUU BMYOJQTxCzrWofDTBIKiejm/gwl55qYzndokeWLd0y/3nrBfl/jv9WmtYXQ7BDdV EQkQLo38o23T5TeSktWjwCeyex5mvBMNYSHHdcqQa12eBxval3iniHV6ndSWYSsX NipwxYxnM8Yi03MbMUzK/mrKExtp7aIEjNpvoJL7u7JpsQIooQJ+ZOzdWX1RipHJ PnSpjGJjoKQEyw/kXab/XF92oSYrRJ3W5f6AU0+iQ== X-ME-Sender: Received: from localhost (ppp121-44-118-179.bras1.syd7.internode.on.net [121.44.118.179]) by mail.messagingengine.com (Postfix) with ESMTPA id 32E667E321; Tue, 30 Jan 2018 00:11:40 -0500 (EST) Date: Tue, 30 Jan 2018 16:11:38 +1100 From: "Tobin C. Harding" To: kaiwan.billimoria@gmail.com Cc: Kernel Hardening , LKML Subject: Re: [PATCH] leaking_addresses: add 32-bit support Message-ID: <20180130051138.GA4924@eros> References: <1517201477-12326-1-git-send-email-me@tobin.cc> <1517283889.29097.1.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517283889.29097.1.camel@gmail.com> X-Mailer: Mutt 1.5.24 (2015-08-30) User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 30, 2018 at 09:14:49AM +0530, kaiwan.billimoria@gmail.com wrote: > Hi Tobin, > > On Mon, 2018-01-29 at 15:51 +1100, Tobin C. Harding wrote: > > Currently script only supports x86_64 and ppc64. It would be nice to be > > able to scan 32-bit machines also. We can add support for > > 32-bit architectures by modifying how we check for false positives, > > taking advantage of the page offset used by the kernel, and using the > > correct regular expression. > > > > Support for 32-bit machines is enabled by the observation the kernel > > addresses on 32-bit machines are larger than the page offset. We can > > use this to filter false positives when scanning the kernel for leaking > > addresses. > > > > Programmatic determination of the running architecture is not > > immediately obvious. We therefore provide a flag to enable scanning of > > 32-bit kernels. Also we can check the kernel config file for the offset > > and if not found default to 0xc0000000. A command line option to parse > > in the page offset is also provided. We do automatically detect > > architecture if running on ix86. > > > > Add support for 32-bit kernels. Add a command line option for page > > offset. > > > > Suggested-by: Kaiwan N Billimoria > > Signed-off-by: Tobin C. Harding > > --- > > > > The basis for this patch has been in development for a while by Kaiwan > > but didn't get finished before the merge window opened. I'd like to > > fast track this and get it to Linus this merge window (considering > > Spectre/Meltdown). I have finished this work off and added the > > Suggested-by tag. Kaiwan I hope you are not upset by this, extra > > ordinary circumstances seemed to require this action. > Definitely not; I understand and am glad you're on it a 100%. Apologies > that I couldn't work on this right now.. will try and keep track too. Thanks for the response. Tobin