Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940711AbcKXMVC (ORCPT ); Thu, 24 Nov 2016 07:21:02 -0500 Received: from mail-wj0-f196.google.com ([209.85.210.196]:33155 "EHLO mail-wj0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934732AbcKXMVA (ORCPT ); Thu, 24 Nov 2016 07:21:00 -0500 MIME-Version: 1.0 In-Reply-To: <5847.1479987309@warthog.procyon.org.uk> References: <147997746306.9316.227351186233378585.stgit@warthog.procyon.org.uk> <147997747766.9316.11606802798600210253.stgit@warthog.procyon.org.uk> <5847.1479987309@warthog.procyon.org.uk> From: Andrey Ryabinin Date: Thu, 24 Nov 2016 15:20:58 +0300 Message-ID: Subject: Re: [PATCH 2/2] MPI: Fix mpi_powm() when exponent is 0 and the result has no limbs To: David Howells Cc: jmorris@namei.org, Dmitry Kasatkin , LKML , stable@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, herbert@gondor.apana.org.au Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 765 Lines: 24 2016-11-24 14:35 GMT+03:00 David Howells : > Andrey Ryabinin wrote: > >> I'm also made a fix for this yesterday - >> http://lkml.kernel.org/r/1479918484-31952-1-git-send-email-aryabinin@virtuozzo.com > > I should add a record to the MAINTAINERS file that directs patches to MPI to > keyrings@vger.kernel.org so that I see things like this. > Would be nice. It was unclear who maintains it. Since all recent changes to mpi were merged through crypto tree, I send this to crypto maintainers. >> The only small difference is that in my the limb space is not >> allocated when it's not needed, i.e. when res->nlimbs == 0. > > I guess if nlimbs is 0 then the value is 0, right? > Right, as far as I understand. > David