Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp153232rdb; Wed, 1 Nov 2023 22:01:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETaXr1i7QQCjk2p7vLH6itIdOpJwYM/1LC09UjAHY1f4JAb3aldJ7c+puTu7xtbeolj8Ne X-Received: by 2002:a05:6358:881f:b0:168:e7f4:8fc9 with SMTP id hv31-20020a056358881f00b00168e7f48fc9mr24365441rwb.24.1698901280270; Wed, 01 Nov 2023 22:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698901280; cv=none; d=google.com; s=arc-20160816; b=IMlPpfK7xpaWlkMKpI8k/d9wPbPMDFCe4XBm01hdScXVUxlQnUH/EybrT3xgJWIBsZ 8wWEWqYLHl47T2bh8X9EThhSZeOW+XXgPDi7LQSzfoYjGZ9FyTfqlO3kV3C5JonKFpr+ KcRSKt18+Hgwp9Dw7eVvPq/o6m11WxEz26YXC9YzkyQzv/4cPRGrh43NfqmHi2jB9fRN 7KcEgBbl4ePJMCCSDXRpd8/p2m32gw/UijJnnMwxE3vbZyyN+ZvvpkgOx9OrI2ZlWUnI S3eG6uJ/4krGdgG2+I2MTWX4qfd0pb2y4mkbvdIHUhY2/ok4zZ1TYXYB+k/cvKI4TWCh sYiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WrQjJlW1jC4tIsMIt5H4Nn2iiuBuahXMrefT7R/Df2k=; fh=26kmPp4ALQ+7KITgaSVLoHov6ohh2lTr+M1xrWIYN2E=; b=subCS9IbU98sjaUYJMIbb6bIc97DPC3wv2kxjMUdgkeo3LS1i4QB2qWuD07agbOLpz GyAgybO561qeFzB9QOfQRC6s0TrQFUpd3x1Wl94bI6L9yQhk/RYPrLQC0dEDDPCQ+Oho Ap5yYOlbvfCoEujVsgByr5LodoORbwJA1DEMC/YDCgi1dgiXGW2SruHOYpqCwvoAsxea 4nI2YxJ24cHAnC32cKqq6Yo8MoS9cbGPhipVXoZ1vpbMfBy6HUW4MPTK+32Xf0jZ2W9d 3FeTtYzlyn9BEjxNRJVrH+9LHWysrrhHTN3vULc8GwngWhBMkfJWp2MNYTP2iYvGeQmW 9pTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k67-20020a636f46000000b005ab45ee3e7esi1187949pgc.299.2023.11.01.22.01.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 22:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E1F778114EEE; Wed, 1 Nov 2023 22:01:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348448AbjKBFA5 (ORCPT + 99 others); Thu, 2 Nov 2023 01:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjKBFA4 (ORCPT ); Thu, 2 Nov 2023 01:00:56 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D29A9FB; Wed, 1 Nov 2023 22:00:49 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qyPoT-00DSTI-9c; Thu, 02 Nov 2023 13:00:14 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 02 Nov 2023 13:00:20 +0800 Date: Thu, 2 Nov 2023 13:00:20 +0800 From: Herbert Xu To: Yuran Pereira Cc: Eric Biggers , linux-crypto@vger.kernel.org, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH 0/7] crypto: Proper Initialization of `struct skcipher_walk` in x86 Glue Files Message-ID: References: <20231102042043.GD1498@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 22:01:15 -0700 (PDT) On Thu, Nov 02, 2023 at 10:27:41AM +0530, Yuran Pereira wrote: > > I noticed that, but since skcipher_walk_first can return with failure, there seems > to be a chance that those bits are never initialized. The API is such that if an error is returned by walk_first/next, then you must not call into the skcipher_walk_* functions again. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt