Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp9108lqf; Thu, 25 Apr 2024 19:30:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzDPsSH6fnZ8OMxzIk59AITwsGATezDCrIX9GMQYWOmM1IkCoTFySpJQ/2piJydrvM5v/3mQCez26pYuXS7GSO3HrrjfPPUjOV/AulQQ== X-Google-Smtp-Source: AGHT+IHqhnBlgoeK7LQRkOyVVFqUAgCA9bsIGK48id+Wg4JfnreVv4cd+g+6UDeOFWHtHcGrXG0m X-Received: by 2002:a05:6808:309a:b0:3c8:45e1:fef0 with SMTP id bl26-20020a056808309a00b003c845e1fef0mr2077295oib.22.1714098647482; Thu, 25 Apr 2024 19:30:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714098647; cv=pass; d=google.com; s=arc-20160816; b=yVUBe8Q1IX3WS7SpeRoON0PAKOPbc6HU/LFJLsJl39wDgvLqwzl/xx2qDAou8fG1uU WYQUQL70MwCU+pSn/pWXICunyUZVd2BrY0P66BN6ZAfEvIR31YsHtaN/HVxb36k6Ahb0 LWa0BGUugxxSlkGB5cMPo9eqSXM4WWqQa6/cWiljID/EH617v1q2luDqsE7PANRzo7D8 xGiC0M53vE5xpYxOs18apXf++RDYJsxj8SQAt6nXcl5fWo+knx1uCu94LV1fBv46tsP4 jOfdXhZkB0gPkGTsDlMi3dt/+0AKb5zzahGFJj08F58ETx+Ax7SxsSfRaOpg+dCIw690 Mi5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=V1EtmX8dGF3LggZzMZhfSvHRkpAPg1MoUvrEkV3agio=; fh=czSSIy3BDVPGwEdDoICgHxzq+qTE76j1miI2eqJGRfE=; b=os2AGMc8qfmqNmmynKbtsp1PFPip+J3zivsCGsRYkLCANjMy7aAYjH3NoVVUhY4DP7 MSURNL9G+bPUiPNDRfmVeYh4CgWxmV1ExUY7QM+AUmyVnFVatJmnfYR+7+L80LSKbM3P r0Wo6IFHZMWvmrGBxCLsfkCirrGY4QU+HVX2e/jm7kGAVt4fOOoV4AHfwMAuM+mwRWEb 56dtuW4DCSTaJcCo9nyXb7MpyTe+VCJYAgF5Zr5GzOdS6FGqcBjAh277uV5AIELFZt3y gfFT1TLteqU/TXFgKM6L4WjO4EEL+l2XNTNmCxb6IIGN3019lD8ow9y74/060JQA5BbP UKrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NOPT3X7I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159445-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159445-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bs7-20020a632807000000b005dc8f60cdf9si14552134pgb.302.2024.04.25.19.30.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 19:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159445-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NOPT3X7I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159445-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159445-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 08006B220D9 for ; Fri, 26 Apr 2024 02:30:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 909DF63CB; Fri, 26 Apr 2024 02:30:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NOPT3X7I" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A37D71C3E; Fri, 26 Apr 2024 02:30:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714098628; cv=none; b=HH7+7RjzJpXKX9uqECgAHtH9M029jsqdn/FqFR43dUUrODShZ8ZrOtRsQJXNnLr2kJ1Q1dr8llhtfSYvrCGtA7WD24oFQIU/XiHyZdUYpFgxIFCWHcX6Zx7g7dShMAbw2Zi8G7JjNQjF6IHhvIiSI5aMVRXvaIsXTQKoNTqcWt4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714098628; c=relaxed/simple; bh=eurkqHk3uRy+1rn1ochibBTH2vrQVR6SvX9c5yj2Uag=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=FS2Xh4Wc3XuqXO9IUFE9ZOYjR6BZ1FADqx9dgTlMtOucoRra9AM9l8mF5bWFiI0e346TspkQYeYQZlYwd1248FU5ORmaEoLX/H/Gud8Tzdhe/i2l4BWVL4wWVqMNyS0BSmExdvnaW6F/Oi6lEEq5mjN1ABjHsbpfHOREjgcuVYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NOPT3X7I; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 2F0BBC2BBFC; Fri, 26 Apr 2024 02:30:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714098628; bh=eurkqHk3uRy+1rn1ochibBTH2vrQVR6SvX9c5yj2Uag=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=NOPT3X7IeFl2EkRwRIVLn4bp/lBz/P9PVLpmU9i7nHEZYzqAUBm4JX8rsMrSnUrHN biPRfnqFQwOqKrc2TyuER/CO+VOUls/m+Bfs6Tn8XAL3l4UkdOhHhk76HEj4cwp4hQ NVdcdArE9v4DyIPjgZHDoIE3elvaxeY7BjGuHqNUi3HvZKjRjiffVLypz+eCRBMvtk 9ngzeTfWdgizj3jykjL6O7COU44bMoHxTyA009S8sPutklby/m3IAfmRrx71xeNJVJ uWblH+kbfyJIZ3Z7B+4JMlVR8Xu42lFf2i0lGzxILzaWRd/57kt/uZGL9wqNi70AK5 i5D4EHTpsudSw== 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 17608C43140; Fri, 26 Apr 2024 02:30:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2 0/6] Ensure the copied buf is NUL terminated From: patchwork-bot+netdevbpf@kernel.org Message-Id: <171409862809.13456.12723948130853178022.git-patchwork-notify@kernel.org> Date: Fri, 26 Apr 2024 02:30:28 +0000 References: <20240424-fix-oob-read-v2-0-f1f1b53a10f4@gmail.com> In-Reply-To: <20240424-fix-oob-read-v2-0-f1f1b53a10f4@gmail.com> To: Bui Quang Minh Cc: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, paul.m.stillwell.jr@intel.com, rmody@marvell.com, skalluru@marvell.com, GR-Linux-NIC-Dev@marvell.com, anil.gurumurthy@qlogic.com, sudarsana.kalluru@qlogic.com, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, fabf@skynet.be, skashyap@marvell.com, GR-QLogic-Storage-Upstream@marvell.com, nilesh.javali@cavium.com, arun.easi@cavium.com, manish.rangankar@cavium.com, vneethv@linux.ibm.com, oberpar@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, sgoutham@marvell.com, lcherian@marvell.com, gakula@marvell.com, jerinj@marvell.com, hkelam@marvell.com, sbhatta@marvell.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, saurav.kashyap@cavium.com, linux-s390@vger.kernel.org, axboe@kernel.dk, przemyslaw.kitszel@intel.com Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 24 Apr 2024 21:44:17 +0700 you wrote: > Hi everyone, > > I found that some drivers contains an out-of-bound read pattern like this > > kern_buf = memdup_user(user_buf, count); > ... > sscanf(kern_buf, ...); > > [...] Here is the summary with links: - [v2,1/6] ice: ensure the copied buf is NUL terminated https://git.kernel.org/netdev/net/c/666854ea9cad - [v2,2/6] bna: ensure the copied buf is NUL terminated https://git.kernel.org/netdev/net/c/8c34096c7fdf - [v2,3/6] bfa: ensure the copied buf is NUL terminated (no matching commit) - [v2,4/6] qedf: ensure the copied buf is NUL terminated (no matching commit) - [v2,5/6] cio: ensure the copied buf is NUL terminated (no matching commit) - [v2,6/6] octeontx2-af: avoid off-by-one read from userspace https://git.kernel.org/netdev/net/c/f299ee709fb4 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html