Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4023243ybd; Tue, 25 Jun 2019 12:37:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzeN0W/4tDHlR5wYt8f+fMkbiuT0C1AZzfTZEhRzhxN1yGwdCsYnP5PTdiRBk2twJ6pIf4 X-Received: by 2002:a17:90a:cb12:: with SMTP id z18mr560012pjt.82.1561491454801; Tue, 25 Jun 2019 12:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561491454; cv=none; d=google.com; s=arc-20160816; b=V6sOBTWTY2mnzdOaby6ohXwR0D8ddVAoiEOVQYMmdP+dAdWt9Dm+yyDgkWewwVV7mR zQ8ZPI0iDpX/MZOKV0l3nA+nuJ+HfYBgaFodKMcBjuM3nt5u/UEYSEICBMLuONBDkY+s +QglcVnYmA5R/+YtlN0e5akov5CunviTEcZIkenWXCaWgehcc1CMY+W4kzv9eB0mrwxM +Mw9rDL1Ny10ienLiWRLnLy3H0cAmKHuYEOzPhnIonxqP05E0kJ4kYbn6Nc1uULaqVWA lgxtJg3KM0WSWrUo7laklai/7j3IsCZoKHEbN5WTmV7i5WEgj5iCLhKOvOczfWQrgBa9 9c8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=qUhKZoveoKqwnOnJ1dPZfdFAce2oPlp//znY8OIoPV8=; b=MLmQ7g9Ub8AcTsrVVZGF9eDSEqVGc8pJNypPlOkGSwe4+AVB7iD5bBbSNZztp3k2Y7 82xBiyS2ly2P4fv9TutMgy2RHCyqVWiAfJvtsAbSkp2Zgc47aJNx+SS6/g4bQQnX9kmz IMgcKCadYf4rC5PFQVB04Cj1iakhB1SvnG1OFY4m9K01wxiFZNmRaODNHgFAx2hypSsd apYqDBK2JGIcPo3C5uJA5VF+65APwei8E5khLvGGqejq6kjEmtDJx2h9TOxBUGvCLXKn TFjbpZ+k5mN//Cw+UzFA8rZGNGKv/w4y4cHQk/5FMeaJgCG05NMNtE6kdrEBokR+qvqJ Wz1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v74si2320803pgb.375.2019.06.25.12.37.20; Tue, 25 Jun 2019 12:37:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726653AbfFYQsw (ORCPT + 99 others); Tue, 25 Jun 2019 12:48:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:54208 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727872AbfFYQsw (ORCPT ); Tue, 25 Jun 2019 12:48:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9D38AAD4E; Tue, 25 Jun 2019 16:48:50 +0000 (UTC) Date: Tue, 25 Jun 2019 18:48:48 +0200 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= To: Eric Biggers Cc: linux-crypto@vger.kernel.org, chetjain@in.ibm.com, Herbert Xu , "David S. Miller" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: algapi - guard against uninitialized spawn list in crypto_remove_spawns Message-ID: <20190625184848.1b2e5dfe@kitsune.suse.cz> In-Reply-To: <20190625164052.GA81914@gmail.com> References: <20190625071624.27039-1-msuchanek@suse.de> <20190625164052.GA81914@gmail.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, 25 Jun 2019 09:40:54 -0700 Eric Biggers wrote: Hello, > Hi Michal, > > The stack trace shows that crypto_remove_spawns() is being called from > crypto_unregister_instance(). Therefore, the instance should already be > registered and have initialized cra_users. Now, I don't claim to understand the > spawn lists stuff that well, so I could have missed something; but if there *is* > a bug, I'd like to see a proper explanation. Unfortunately, I don't have an explanation either. > > Did you check whether this is actually reproducible on mainline, and not just > the SUSE v4.12 based kernel? Mainline crashes on boot:/ Need to find a recent working kernel. Thanks Michal