From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lan.nucleusys.com ([92.247.61.126] helo=zztop.nucleusys.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aDZGo-0004nu-Bt for kexec@lists.infradead.org; Mon, 28 Dec 2015 14:59:35 +0000 Date: Mon, 28 Dec 2015 16:59:46 +0200 From: Petko Manolov Subject: Re: [Linux-ima-devel] [PATCH v2 4/7] ima: measure and appraise kexec image and initramfs Message-ID: <20151228145946.GC16243@localhost> References: <1450914903-5793-1-git-send-email-zohar@linux.vnet.ibm.com> <1450914903-5793-5-git-send-email-zohar@linux.vnet.ibm.com> <20151225053356.GA3398@dhcp-128-65.nay.redhat.com> <1451054749.3289.131.camel@linux.vnet.ibm.com> <20151228020829.GB2980@dhcp-128-65.nay.redhat.com> <1451307075.3289.224.camel@linux.vnet.ibm.com> <20151228142910.GA16243@localhost> <1451313742.3289.239.camel@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1451313742.3289.239.camel@linux.vnet.ibm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Mimi Zohar Cc: David Woodhouse , "Luis R. Rodriguez" , kexec@lists.infradead.org, David Howells , linux-security-module@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, Dave Young , Vivek Goyal On 15-12-28 09:42:22, Mimi Zohar wrote: > On Mon, 2015-12-28 at 16:29 +0200, Petko Manolov wrote: > > > > I kind of wonder isn't it possible to optimize the file read? If the file > > is relatively small (a few megabytes, for example) it will fit into any > > modern system's memory. At least those that cares to run IMA, i mean. > > > > Fetching file page by page is a slow process even though the BIO subsystem > > reads larger chunks off the real storage devices. Has anyone done a > > benchmark test? > > Dmitry recently added asynchronous hash (ahash) support, which allows HW > crypto acceleration, for calculating the file hash. This is nice. However, i was referring to reading a file page by page vs larger (a couple of megabytes) chunks. Is this also covered by the ahash support? cheers, Petko _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec