Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754411Ab0ALLOq (ORCPT ); Tue, 12 Jan 2010 06:14:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754245Ab0ALLOo (ORCPT ); Tue, 12 Jan 2010 06:14:44 -0500 Received: from rhun.apana.org.au ([64.62.148.172]:57244 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754132Ab0ALLOo (ORCPT ); Tue, 12 Jan 2010 06:14:44 -0500 Date: Tue, 12 Jan 2010 22:14:39 +1100 From: Herbert Xu To: Krzysztof Halasa Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Crypto test results unused? Message-ID: <20100112111439.GA31504@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Core X-Newsgroups: apana.lists.os.linux.cryptoapi,apana.lists.os.linux.kernel User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1317 Lines: 30 Krzysztof Halasa wrote: > > On little-endian IXP4xx 3 hardware-assisted algorithms fail (due to > apparently unrelated bug which I will take care of). It seems the kernel > is still using these failing algorithms (my debugging code adds extra > fields to the /proc output): How did you determine that it was still being used? When a kernel user requests for an algorithm the system is supposed to skip anything which failed the self-test. > At this point alg->cra_flags includes CRYPTO_ALG_DEAD (due to failed > test), but larval->alg.cra_flags has only the original flags (0x85). CRYPTO_ALG_DEAD is used to mark algorithms deleted from the system. However, we don't delete algorithms just because they fail the self-test. They remain in the system so you can come back and diagnose the problem. They just aren't used by anyone. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/