Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp933041lqt; Fri, 7 Jun 2024 03:10:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVf6zPj2+0A504i+wo+58rxHXIYrOiLz+vuY7trYTOLSynZClGb0Ebupy0j3WCJRtoWxmTDaEPquzbD6MJG2dlmj7flhGdZLkBpYpTC9Q== X-Google-Smtp-Source: AGHT+IFHUAch3oZMuDTua1tbE/paa1iRm5zBlGW7mIC53Nrhnj3qOV8tYHWTEN8mf01gDe5qpS8O X-Received: by 2002:aa7:d6c4:0:b0:57a:1501:38c with SMTP id 4fb4d7f45d1cf-57c50989ae5mr1381782a12.26.1717755058437; Fri, 07 Jun 2024 03:10:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717755058; cv=pass; d=google.com; s=arc-20160816; b=JpGAGPsNhuCITO32ReqODDqrNkq1/WfF5HmuxELg3JXtThUqkMMh1EyJlwXcUspzzE WqbSSW2XZkX7wziiif6xK1YirA2Mk3T4TQ+NF+MPLxchN2vIGuDRPvxze53Ehx1rr1xt dcekwFII+bbIUbGft/XZafXOs2qwyO3XsJISejBCsAsTu2VmYg9n1ha3gYeZWbACynAM Z9GpE9YqRMf219A7OwXXjyluH7Sw533IRhPgNqUyygn+u399vbyotRmUl61iewnzP96r rkU9zj/5crEqxYmCro5FifPZme55RCGT5XtkXR6F/3PXNZUGBuG4G/tjZBOVtnPCxVYe e+Mw== 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=f/tO7llhk0bdX09Nw30sQrpsJU0JC5scg0UKZGSeQLQ=; fh=kW2WIpHsm0FcYRRGcAx5bJFzJMPBa2O60HkAIjjV8WE=; b=fY30rvooioaDfJVJI2GBQeUWq9yd9Nxmq+WN6YHVF9wCCVpMJCua3NC0NPw/LKEpfY ExCXcY/klALwbCx4XLi3pdwxE94C5+ghce5D92SAlOfNxrUmIL4WFR5Ozz1W4Cu9MOry cwdnEhglGyJiLEQaSRS3UnPXsB3cIJaq3z6WQ32DFfV9BWc0jUyu/118RCu68e0XWcn5 VXRCIx2b6L1reNnHcI8nw62p2N2ARSt0qn9bm/SURM9U1UAm2dq4hKEIa5OR8qwA6Hsp drNyOdzoSwyiZwdyXd156KSlBGlfmQSr79L5YcgTM9T5FFx+n7U/sB28Pb6P2XlqQ9mF biNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kP4ynT23; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205795-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205795-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae0c6cafsi1701904a12.63.2024.06.07.03.10.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:10:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205795-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kP4ynT23; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205795-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205795-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1E51C1F22DA4 for ; Fri, 7 Jun 2024 10:10:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C07B815DBB7; Fri, 7 Jun 2024 10:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kP4ynT23" 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 BDFDF15B0E7; Fri, 7 Jun 2024 10:10:29 +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=1717755029; cv=none; b=sQVtcleG1xJkF+SWuUs29yOtndtED1bCf7xNUJ8ztG+XF9vbAhOZ2m8RJ3dKJDsL40FVzOzZsKczvZ9NCYcO5ulUJBLGEAZ5oMZOOjjcmRF/alX1mog8NK4Izp9FAGUM5gPdg8uSChPQ/tC+1yXgxlprhVJglurFe2Y9jJa4lP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717755029; c=relaxed/simple; bh=fJJpTcmE67gybMtkto49XtqnJGcpAyK+OZybc/rYHxk=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=Q+GQ+XlrnmnW7Reobju1atBIczmP8OrrBZGQb9/pc67/GayJKdZkPsjBKY8MWg+J1QcsEsoCuilxHbT2+Rk/3vjODHtbmoSLbvxqwDrxvcj98vr+PyXsFTxj4bwDTI06QUCmkDjELyG89DAwv7tpsHbVx3IDhl9PhWgfmJ3q55g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kP4ynT23; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 614EAC4AF07; Fri, 7 Jun 2024 10:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717755029; bh=fJJpTcmE67gybMtkto49XtqnJGcpAyK+OZybc/rYHxk=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=kP4ynT23Jn0AUXgJxbNNHno1mo6JyEaJhVEwa1jluovymJqBoF4QBL2fOg8Cn81Mq W6dh3U2xgtcR694oBeoss6800HbUiIo1VaZUY+Q53uIFAaET+ru8gradUQNKhTpxht qUNVu/9stxLf05Q26YV3IOLhKYHYULS5Xh9pnQ4KzS9+hL3QzZvoBXw8zs4cyIVaSN TfdsWhjVB7lt74h2CdRx5qJYhetWKDz4wYfgqL32WdNysv3C1Q9NbzpLCnv1XAWclL sNRbPpZbO39xdPWf4Wm24exslLbniddJkz79AFcRBZHqurD5zd7wXJZ1hOuO4C6WHO GFpuFTsIHtY7g== 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 55A25CF3BA3; Fri, 7 Jun 2024 10:10:29 +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] hwmon: (cros_ec) Prevent read overflow in probe() From: patchwork-bot+chrome-platform@kernel.org Message-Id: <171775502934.9691.12638692648620767166.git-patchwork-notify@kernel.org> Date: Fri, 07 Jun 2024 10:10:29 +0000 References: <42331b70-bd3c-496c-8c79-3ec4faad40b8@moroto.mountain> In-Reply-To: <42331b70-bd3c-496c-8c79-3ec4faad40b8@moroto.mountain> To: Dan Carpenter Cc: linux@weissschuh.net, thomas@weissschuh.net, jdelvare@suse.com, linux@roeck-us.net, bleung@chromium.org, tzungbi@kernel.org, chrome-platform@lists.linux.dev, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Hello: This patch was applied to chrome-platform/linux.git (for-kernelci) by Tzung-Bi Shih : On Thu, 6 Jun 2024 16:12:11 +0300 you wrote: > The "resp.sensor_name" comes from cros_ec_cmd() and it hasn't necessarily > been NUL terminated. We had not intended to read past "sensor_name_size" > bytes, however, there is a width vs precision bug in the format string. > The format needs to be precision '%.*s' instead of width '%*s'. > Precision prevents an out of bounds read, but width is a no-op. > > Fixes: bc3e45258096 ("hwmon: add ChromeOS EC driver") > Signed-off-by: Dan Carpenter > > [...] Here is the summary with links: - hwmon: (cros_ec) Prevent read overflow in probe() https://git.kernel.org/chrome-platform/c/1f72dd046270 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html