From patchwork Mon Feb 10 12:31:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 231749 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A73CDC352A3 for ; Mon, 10 Feb 2020 13:18:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 766202070A for ; Mon, 10 Feb 2020 13:18:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581340691; bh=7OTbkjHlNEdy+CXRaMfUslaLkdTv82A7etR1wjm5MEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=AJopaVffRrUZXEi5s14Ta/kt/JUNpoTNQLHayts1YFJqRd85CmPBT2BXotWCd5iOM ip+y/SGiheQJHRKnDjZ63u6w1XmepEeWo06ntbL4uFEv8R29NbZqvhR/fvm5nnkHyO 3LequLPofUvK0IAf+kUAxUbejyLxik24ILYG1RcE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729073AbgBJNSK (ORCPT ); Mon, 10 Feb 2020 08:18:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:60552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728427AbgBJMhz (ORCPT ); Mon, 10 Feb 2020 07:37:55 -0500 Received: from localhost (unknown [209.37.97.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B224E24672; Mon, 10 Feb 2020 12:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338274; bh=7OTbkjHlNEdy+CXRaMfUslaLkdTv82A7etR1wjm5MEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T2tjB1S84+CmmmryRoS6C6zP/w23dn1TAy/hYsuEHaJv/kby1ml+VufcnfTxMx8Qd Hd7PEZ0uVUuLqECW+Ev9rukFFiy7617eTvusv+CNwkyc3BEK5AQDDjLiHMx4EF5WBK spa6JeGESL1P9AnkJrMEFcXZ6MFd3v+O6HM7xASg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Biggers , Herbert Xu Subject: [PATCH 5.4 159/309] crypto: pcrypt - Do not clear MAY_SLEEP flag in original request Date: Mon, 10 Feb 2020 04:31:55 -0800 Message-Id: <20200210122421.480770827@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122406.106356946@linuxfoundation.org> References: <20200210122406.106356946@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Herbert Xu commit e8d998264bffade3cfe0536559f712ab9058d654 upstream. We should not be modifying the original request's MAY_SLEEP flag upon completion. It makes no sense to do so anyway. Reported-by: Eric Biggers Fixes: 5068c7a883d1 ("crypto: pcrypt - Add pcrypt crypto...") Signed-off-by: Herbert Xu Tested-by: Eric Biggers Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- crypto/pcrypt.c | 1 - 1 file changed, 1 deletion(-) --- a/crypto/pcrypt.c +++ b/crypto/pcrypt.c @@ -71,7 +71,6 @@ static void pcrypt_aead_done(struct cryp struct padata_priv *padata = pcrypt_request_padata(preq); padata->info = err; - req->base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; padata_do_serial(padata); }