Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp533pxf; Wed, 31 Mar 2021 14:42:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFEmQEirEgIx5OTuHy/mS6ZA2DCYtpkHH9rousicpKIJXjYLIGJGDKy+puDTIyrxdypwiW X-Received: by 2002:a05:6402:3115:: with SMTP id dc21mr6361501edb.173.1617226966805; Wed, 31 Mar 2021 14:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617226966; cv=none; d=google.com; s=arc-20160816; b=lWW0EPT4bnV2LXYu0QoQQsqsyBz9vmogC/m8V9XfXMh4h9d8a8RkrMUPA41Y3cAWqz Z3raqAIBW2+KvUzfH2wNhSwCUszL2Sb/a89ZYrJqF9v0/KE/1KBAuZYe5WBtSYSvVP3Z dBjN0lecbDHOaTdDm7iRvSMIsRuV5kVou/QIkDpJp7Opb6bo4H//RoWhv6XWThzRfJi0 9S4Qfx+9yRkU4tHXhViQ7QjZzziPTR7STuf6L2bAHp5tB3fJBSKbmreeI0riB5vDTQrC JQ/lkBuXz9GHTyHnT1cmQLMGvOiQCPcAVlfcw4sZJYLcgP3fhZvHxNp4FI0oCAbd/d6o zlDA== 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=Kes+g+j4fAV3AbPWzNLFsWRqfZWA0KPU3/Mng+aC6xY=; b=K/tVnaWBzxWtAAf3Euhbsv5Pbqn8rMGmG6VI4vrHF9vnlT2SN1rnMJtR22l3RyPPTN YSIAJ66uDrMyRpSJ0ryetaLnByOTaDShlU8Ie2Z6Ud/eA03KfMP8uL98VFyXwBoGkGZf iqy384Kb5DLLD7QCJSxSW1mxnjI9cs9UjwwGz+q38aDXdxwFFinmd9mqqTsL7ab45zh2 EecWGIjh9gXdhuZxe/5F81tr50pYnAf515ZL34eGZ6Sq8tskUNQ+OBFNB+iUakI/xotD 1UboOv9uDH6oK2YgZF9bWAia4gHOyfv86Ynq2hE1EE9G/PeDUl8bMCko6ZlsKeMrvKQ0 1/wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=faNf2vlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id se19si2687988ejb.119.2021.03.31.14.42.24; Wed, 31 Mar 2021 14:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=faNf2vlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S232920AbhCaVaT (ORCPT + 99 others); Wed, 31 Mar 2021 17:30:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:60566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233302AbhCaVaI (ORCPT ); Wed, 31 Mar 2021 17:30:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id D4A4B61073; Wed, 31 Mar 2021 21:30:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617226207; bh=ja6wIkS8ptibhefhaLH9EIBKhl2lvpF1GyxSpsDEwlA=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=faNf2vloN1VMK+CsD0Cl66dmOz4f0GN9p7ZjfxqrPjbaaZXGmycPQy9w15D80MqTr XiWFUrxSKUerWIv6HJMBt6T5UA3ph+exBDvxdHiUoJYjjQizLTHsJh1Mln75raFIvp 0BhTx6WGq7Oh8HEC30EYdBxrIbFenVhFigpS8CMBRh6Ug6FZxzA1NtQMf6oClkKrZu f4AwJRHvSERlHL8zben9MbH269+spZULnTiocyKHsT277QiDjPpZFH2WRhXBzWwa5K blxzl3oCwo1i0TgXfPGGFQk+NHCdupwM19So7dMa1uSRjdqLsD0Jtay0wko6JPCP9J verhdB23kjiog== Received: from pdx-korg-docbuild-2.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by pdx-korg-docbuild-2.ci.codeaurora.org (Postfix) with ESMTP id C659D608FA; Wed, 31 Mar 2021 21:30:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] net/rds: Fix a use after free in rds_message_map_pages From: patchwork-bot+netdevbpf@kernel.org Message-Id: <161722620780.13975.16375102859564408293.git-patchwork-notify@kernel.org> Date: Wed, 31 Mar 2021 21:30:07 +0000 References: <20210331015959.4404-1-lyl2019@mail.ustc.edu.cn> In-Reply-To: <20210331015959.4404-1-lyl2019@mail.ustc.edu.cn> To: Lv Yunlong Cc: santosh.shilimkar@oracle.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 30 Mar 2021 18:59:59 -0700 you wrote: > In rds_message_map_pages, the rm is freed by rds_message_put(rm). > But rm is still used by rm->data.op_sg in return value. > > My patch assigns ERR_CAST(rm->data.op_sg) to err before the rm is > freed to avoid the uaf. > > Fixes: 7dba92037baf3 ("net/rds: Use ERR_PTR for rds_message_alloc_sgs()") > Signed-off-by: Lv Yunlong > > [...] Here is the summary with links: - [v2] net/rds: Fix a use after free in rds_message_map_pages https://git.kernel.org/netdev/net/c/bdc2ab5c61a5 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html