Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8274365rwd; Tue, 20 Jun 2023 12:42:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/oEePtT5YVSX+BoSeiv+8g89ylUK1cHdkAQXLsIJzCOtegHHTtiZ2iHObRCyDe9A8Al1i X-Received: by 2002:a05:6a20:8426:b0:11f:7829:6d6c with SMTP id c38-20020a056a20842600b0011f78296d6cmr13519469pzd.3.1687290176721; Tue, 20 Jun 2023 12:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687290176; cv=none; d=google.com; s=arc-20160816; b=dlQJsjm+8FJbPnDIh4YVtK+e8Yoy0fopbbe1Mt2TjqeqO+hEKCy5x4QaLO81gXtDiQ 7YrtsfUcIjafRi14d2RfwHBGyvNVtg6wYhiCPARAhuzpemPHb2cNxZA4p9hPyGLZzxzo DhUMVKNfdVmz5fdf9MEsnOd0PU9aQBg69Nprfz2DNAJ6XYuuk6NVVS9myeWOyznc8xvf VmzlNZxebURgTQtmWRezz6m73FGXrDKePEwlIkUZ3bedFm7fkSjtrPyjqB71soIuxkRQ wlbgSnd9rwyZRoTnHo5ALgGFutKglCoWXXnSFVM83qCKr4TSG/gCDp1mH530cdKEeGYN 5ypw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=JEwy/pBEqb6ROl0e5mm9ZMbDqRsR89pRVtIDKYaUreM=; b=ppLOCo4c2S/vPzcZMoEyWBBRjB4avAzlh25QGQ2f0RY5jLF3h3Aeh7j213FhPKglas lHxDDfOdhfkwAb9Uum2a16iKtU2B5s5dROk6ZWi3ebWDP81usYTS3nbFuB3eEF4FqDfa 8J/FTgatQCm4LaYM3wPHFCEKmTz8PggU7RzTheVnZzNhUDWa2YyrHea1cQwsqaWWL4rs cZISZopaOdKQfoNutTE71VdAYlIRvbENjbrnpu5Hsf8Ti5QYXjwu4tCHAL9bUxRu2mLB s7BicQfShbp561ouU191HR2UtKD+BH1SGkfop1t83dipyVaqO/M+NzuNI6bBEhTO2iXQ y9HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cGO05tnQ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a63b512000000b005537e4e7d59si2400063pge.84.2023.06.20.12.42.42; Tue, 20 Jun 2023 12:42:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cGO05tnQ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjFTTUW (ORCPT + 99 others); Tue, 20 Jun 2023 15:20:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjFTTUV (ORCPT ); Tue, 20 Jun 2023 15:20:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35931B6; Tue, 20 Jun 2023 12:20:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 75B5C60F23; Tue, 20 Jun 2023 19:20:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C47F9C433C9; Tue, 20 Jun 2023 19:20:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687288819; bh=PeHV3oGT0VbjGSMnLrUz89/gkbBxSRAPqn2lOdDUHlM=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=cGO05tnQitRpKUN5KECgilvaHe3rjXMd5JZ28O3A/t7meSlu82GpBRwmg8PP/7DSY V+uSRyI37k9enStBv/QEXOV99+ZeWYb2Kjd1fIoH6u0UmP+cmDVLdYfoxedbMIu4cD fbaZgJ/nP/GL5WWT/wm5QTcynAstW3WLpkk5GQ06lHbGTugQ1/W4vgOwaKj4Qg+sL2 QP33Y00cnl7r2CvvgiVz6wH4FBQe07d36ZEIbKn8yKO7uKo2dy+Vb9WP4d9lgiV7p2 VAOma4Xok923xWVAhUZ9zW4UvVbl5bfa4UdKFFMtVrwQom3dkFEuKc8rnrvmpIqUlJ qg3ISEdbyVPTA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id A7EC2C395D9; Tue, 20 Jun 2023 19:20:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next v2] crypto: af_alg/hash: Fix recvmsg() after sendmsg(MSG_MORE) From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168728881968.9715.9390991093529503679.git-patchwork-notify@kernel.org> Date: Tue, 20 Jun 2023 19:20:19 +0000 References: <427646.1686913832@warthog.procyon.org.uk> In-Reply-To: <427646.1686913832@warthog.procyon.org.uk> To: David Howells Cc: netdev@vger.kernel.org, herbert@gondor.apana.org.au, syzbot+13a08c0bf4d212766c3c@syzkaller.appspotmail.com, syzbot+14234ccf6d0ef629ec1a@syzkaller.appspotmail.com, syzbot+4e2e47f32607d0f72d43@syzkaller.appspotmail.com, syzbot+472626bb5e7c59fb768f@syzkaller.appspotmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, axboe@kernel.dk, willy@infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 16 Jun 2023 12:10:32 +0100 you wrote: > If an AF_ALG socket bound to a hashing algorithm is sent a zero-length > message with MSG_MORE set and then recvmsg() is called without first > sending another message without MSG_MORE set to end the operation, an oops > will occur because the crypto context and result doesn't now get set up in > advance because hash_sendmsg() now defers that as long as possible in the > hope that it can use crypto_ahash_digest() - and then because the message > is zero-length, it the data wrangling loop is skipped. > > [...] Here is the summary with links: - [net-next,v2] crypto: af_alg/hash: Fix recvmsg() after sendmsg(MSG_MORE) https://git.kernel.org/netdev/net-next/c/b6d972f68983 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html