Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2467685rwd; Fri, 16 Jun 2023 04:13:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4rRpSHfoumETKUKbZbUnZaBwi0Y3B8X2recHjJm2X0Q1XnMJ6uKXL1MPahi3M0Vj0hVKMH X-Received: by 2002:a17:90b:3a8a:b0:25b:e2e1:e252 with SMTP id om10-20020a17090b3a8a00b0025be2e1e252mr2092928pjb.3.1686914023410; Fri, 16 Jun 2023 04:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686914023; cv=none; d=google.com; s=arc-20160816; b=S5z2LigJL2IliPfb87z3Bz/2PY00msUcprvn9j1ZiCBEG6PfWWsP2N7h58cz5+FGvo WY1eQtNK5Uo1hFtLAv52Ms6BVkYJfTHNPUYZLg3Fla7rBFlX3i3wCpBegbYe1n5GU7zP OTFTE5B5/Gd3E2hkIMhEoc+kHevPIo1DPI92k8cwgobvPUiI3BVhn22U8WsWiUJRKsj5 /u0z+P+6QtW2mYTWCzc3j+qsXknDr3vJ/Y9bXB0085pw2uTpu1VvqrN7yVgP7VrVUrMO qLyCF17zqq4dUcGgmJwgZYSAZNOuxxuYklFb2MJM0THgGpdOiQGNxXJOBU8xAzih1/U0 anhA== 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=u32AamCqlruuDiDXzR0yt9Lr48TfpRQtPWvBuhKTzDk=; b=LB/OHgCQftIYUSYwCZ2+788dy06EJYJQPL3oxig/eJvzUGFC+b8T0KWu4IvfFeBOa0 JNMum1uek4O81+hi8wEixLUAS2iah1hFz+T5ocgPG/VO6ynZJ9BNgAbzmxjJm1wEWgAH TFY4R6bon70reY/3xoGNc0rqNYz0msPPY3vNlL5R4rvGIbpsHAJ9SbuG94sNx37c2PaV 2cyWNuiIvq0ah0DNcCBgmafY33mYjCv7pl3WvuOgozk0WcNE1oa4BHkGM/eprRcysraj KYwVf92HQwVR0LTYttDErxtWSIsPKwOqdN/o/yYcK/3VOzkXDTUUw+g3U+sc7s4v0A+F +vHQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt8-20020a17090b354800b0025667dcd6ecsi1328837pjb.120.2023.06.16.04.13.27; Fri, 16 Jun 2023 04:13:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345105AbjFPK6m (ORCPT + 99 others); Fri, 16 Jun 2023 06:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345562AbjFPK6V (ORCPT ); Fri, 16 Jun 2023 06:58:21 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80A2B59F9; Fri, 16 Jun 2023 03:51:35 -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 1qA6vL-003mQV-Ij; Fri, 16 Jun 2023 18:43:24 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 16 Jun 2023 18:43:23 +0800 Date: Fri, 16 Jun 2023 18:43:23 +0800 From: Herbert Xu To: David Howells Cc: netdev@vger.kernel.org, syzbot+13a08c0bf4d212766c3c@syzkaller.appspotmail.com, syzbot+14234ccf6d0ef629ec1a@syzkaller.appspotmail.com, syzbot+4e2e47f32607d0f72d43@syzkaller.appspotmail.com, syzbot+472626bb5e7c59fb768f@syzkaller.appspotmail.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jens Axboe , Matthew Wilcox , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] crypto: af_alg/hash: Fix recvmsg() after sendmsg(MSG_MORE) Message-ID: References: <1679829.1686785273@warthog.procyon.org.uk> <426353.1686911878@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426353.1686911878@warthog.procyon.org.uk> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 On Fri, Jun 16, 2023 at 11:37:58AM +0100, David Howells wrote: > Can you have a look at: > > https://lore.kernel.org/r/415439.1686877276@warthog.procyon.org.uk/ > > I'm proposing that as an alternative to this patch. It'd be easier to comment on it if you sent it by email. Anyway, why did you remove the condition on hash_free_result? We free the result if it's not needed, not to clear the previous hash. So by doing it uncondtionally you will simply end up freeing and reallocating the result for no good reason. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt