From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B336FC43334 for ; Fri, 22 Jul 2022 22:00:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236715AbiGVWAV (ORCPT ); Fri, 22 Jul 2022 18:00:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236668AbiGVWAR (ORCPT ); Fri, 22 Jul 2022 18:00:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A38512776; Fri, 22 Jul 2022 15:00:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C56F0B82B32; Fri, 22 Jul 2022 22:00:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 72E67C341C7; Fri, 22 Jul 2022 22:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658527213; bh=uLyay4WTUhXAXpTOAWsQVx/SsOhJ6GE7TpgTuKMStIY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=n1d74XpsFs839wnrjUh32I31IqKsFy775ACv1nkZZ0pnzXczmf9nN/dIl2JvF9X7H PfbUAYSDkQMbXNJcYsJ8T5WXlbqvUuPc+9uml+S9UqJvdF3On+0IFz9sI3pTSmZsJp ND1Ev+/2J+Bap/G++e7J/KysjQ9FYZlqkzFIeRLZJZpYipN0/TO2d0+XPwVYCvpOz9 Vap2lsbZMtJuiU7tf1CjDG2SBJIuq9V+ikBnrisdhtjO15wl7b5tBaU2VHWr6vBhub cWYjJyGnBRs/AQHOSuLFt7pui0bzLhNEUo2Ob+nHZtvCppCCEvUE/7c488h1ki+eQl PIW9uLaeppdEQ== 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 5A747E451B3; Fri, 22 Jul 2022 22:00:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next] net: fix uninitialised msghdr->sg_from_iter From: patchwork-bot+netdevbpf@kernel.org Message-Id: <165852721336.8145.1830308584894724128.git-patchwork-notify@kernel.org> Date: Fri, 22 Jul 2022 22:00:13 +0000 References: In-Reply-To: To: Pavel Begunkov Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, dsahern@kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski : On Thu, 21 Jul 2022 15:25:46 +0100 you wrote: > Because of how struct msghdr is usually initialised some fields and > sg_from_iter in particular might be left out not initialised, so we > can't safely use it in __zerocopy_sg_from_iter(). > > For now use the callback only when there is ->msg_ubuf set relying on > the fact that they're used together and we properly zero ->msg_ubuf. > > [...] Here is the summary with links: - [net-next] net: fix uninitialised msghdr->sg_from_iter https://git.kernel.org/netdev/net-next/c/2829a267fca2 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html