From: Joonsoo Kim Subject: Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Date: Thu, 13 Aug 2015 15:37:55 +0900 Message-ID: <20150813063755.GA13352@js1304-P5Q-DELUXE> References: <1439432654-23322-1-git-send-email-iamjoonsoo.kim@lge.com> <20150813031954.GA19481@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, "David S. Miller" , Stephan Mueller To: Herbert Xu Return-path: Content-Disposition: inline In-Reply-To: <20150813031954.GA19481@gondor.apana.org.au> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On Thu, Aug 13, 2015 at 11:19:54AM +0800, Herbert Xu wrote: > On Thu, Aug 13, 2015 at 11:24:13AM +0900, Joonsoo Kim wrote: > > Until now, zram uses compression algorithm through direct call > > to core algorithm function, but, it has drawback that we need to add > > compression algorithm manually to zram. If we don't do that, we cannot > > utilize various compression algorithms in the system. To improve this > > situation, zram will be changed to use crypto subsystem in following > > patch. There is one problem with this change. Zram has a interface > > that what compression algorithm it can support. Although crypto subsystem > > has /proc interface to search all of crypto algorithm, but, there is > > no way to get just compression algorithm in cryto subsystem. To implement > > it on zram-side, crypto_alg_list and rwsem should be exported so > > this patch do it. > > > > Signed-off-by: Joonsoo Kim > > Nack. We already have a netlink interface that can be used to > query algorithms and the type information is present in the report. > The interface is crypto_user and should be used instead of exporting > the raw list. Oh... I see. Is there any way to access netlink interface and get the output from kernel-side? I'd like to show information through "/sys/block/zramX/comp_algorithm", because some user program can be broken if we change output of userspace exposed interface. Thanks.