From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932952AbbLNWpN (ORCPT ); Mon, 14 Dec 2015 17:45:13 -0500 Received: from mail.eperm.de ([89.247.134.16]:40400 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932470AbbLNWpL (ORCPT ); Mon, 14 Dec 2015 17:45:11 -0500 From: Stephan Mueller To: Herbert Xu Cc: Dmitry Vyukov , "David S. Miller" , linux-crypto@vger.kernel.org, LKML , syzkaller , Kostya Serebryany , Alexander Potapenko , Sasha Levin Subject: Re: WARNING in crypto_wait_for_test Date: Mon, 14 Dec 2015 23:45:02 +0100 Message-ID: <3121405.vKidzTde2R@tauon.atsec.com> User-Agent: KMail/4.14.9 (Linux/4.2.5-201.fc22.x86_64; KDE/4.14.13; x86_64; ; ) In-Reply-To: <20151214125219.GA1514@gondor.apana.org.au> References: <6672511.rbcxt2K4Lk@tauon.atsec.com> <20151214125219.GA1514@gondor.apana.org.au> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 14. Dezember 2015, 20:52:19 schrieb Herbert Xu: Hi Herbert, >On Thu, Dec 10, 2015 at 03:14:24AM +0100, Stephan Mueller wrote: >> Herbert, alg_bind currently blacklists one bit in the mask and type bit >> array. Shouldn't we instead white-list the allowed bits? > >Well a bogus mask shouldn't lead to the warning anyway. > >The warning in question is triggered only if crypto_schedule_test >returns NOTIFY_OK, which can only happen if try_module_get fails, >kzalloc fails, or if kthread_run fails. All of these would be >real bugs (well except for the kzalloc failure perhaps). But with the given code, when you remove the bogus mask setting (which in turn leaves it as 0), the code works flawless. > >Thanks, Ciao Stephan