From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031227AbXDQRHn (ORCPT ); Tue, 17 Apr 2007 13:07:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1031224AbXDQRHn (ORCPT ); Tue, 17 Apr 2007 13:07:43 -0400 Received: from relay.2ka.mipt.ru ([194.85.82.65]:36651 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031221AbXDQRHm (ORCPT ); Tue, 17 Apr 2007 13:07:42 -0400 Date: Tue, 17 Apr 2007 21:07:07 +0400 From: Evgeniy Polyakov To: Francis Moreau Cc: Herbert Xu , helge.hafting@aitel.hist.no, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [CRYPTO] is it really optimized ? Message-ID: <20070417170707.GA24070@2ka.mipt.ru> References: <20070417130431.GA8685@2ka.mipt.ru> <38b2ab8a0704170701p69fd547dwe3e2523ba5798b55@mail.gmail.com> <20070417150859.GA9512@2ka.mipt.ru> <38b2ab8a0704170834i1856886nafeeec692f49fea0@mail.gmail.com> <20070417155725.GA18959@2ka.mipt.ru> <38b2ab8a0704170918u72792c0ei591fea98eac2681d@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <38b2ab8a0704170918u72792c0ei591fea98eac2681d@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (2ka.mipt.ru [0.0.0.0]); Tue, 17 Apr 2007 21:07:29 +0400 (MSD) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2007 at 06:18:42PM +0200, Francis Moreau (francis.moro@gmail.com) wrote: > >If there are no another users, your code already has exclusive access. > > sorry I don't understand that. Since there are no users except your module, you do have exclusive access already, i.e. you can stop key reloading and get your gain, but there is no possibility for crypto module to know that in advance (without hack like checking reference counter or storing private context pointer in some internals and check it for each new call for encrypt/decrypt). > >One can not know if there will be any additional users at all (consider > >the case when new encrypted block device or ipsec negotiation started > >some time after module was loaded). > > > > well I should say administrator should know. Yes, admin is a god. I would even say the god. So it can (if she/he wants to) setup any module with any name so that other users would never know it. > -- > Francis -- Evgeniy Polyakov