Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 E18BA30B53A for ; Tue, 4 Aug 2026 08:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785832157; cv=none; b=liId7MKVPnBAIhorFmRQuPDbUuVUEAt6tNJPDvkdx49k0REU40N9oXemXAQ9Bd6mNOhAKliDYEp+z9jIwcB+sTYe9RSKGxR6aGQdPd3yMfhCtd+k+EW9u80qY7AQERmDu7DnoTdvX6N9OXSUqK+E+TG9u+ejbXSkBq7TF9KuGz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785832157; c=relaxed/simple; bh=um/x07yhmcWIoijuXq/TdULoYydUBI6Mid/mDYDg3sA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XkhlLxtcQfA8ne3Fetdykp+q9bmF0TC3WmdyzstS7cvLyCd9fvrxB5JsZ/LJRY80TKJ3UWTzru38FaTpBmyVwoJfspgDY3+iQMJeefLbI5BSHDgSNExkiyWJuYcxDCwH37kLuVbn9BhaM2WZlUaZZqh/P9vQ/3Aao0Xnx7P2PME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AUR3Ie7w; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AUR3Ie7w" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1785832156; x=1817368156; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=um/x07yhmcWIoijuXq/TdULoYydUBI6Mid/mDYDg3sA=; b=AUR3Ie7wf07Tp3n9ca9H1goI0VjXXvi5SKJ+Zr8UPwK4jyEcn43TA1Ed XUTdSAdd+gCaxwPgt77wEB2mkP742It9ZDk5ydbDw9gP4dG1SHvxdfRoK BDzuGJMtgC4C+ZJbO7cI4uXTifETQ2/x86WRS2LCsOsbFQfUzNGd33s44 cPcWnUyUv0KZXS4pCmma1AC1RLzV4PzXD94ZwXS3zOiJwJkUAlNmJE4uP CPaVfmeFMVBRi7grebvkvemPJaS2ZzAn4Ir8CIt5w8npqwTz16cGWoKJN wD1ErBWErZcqp8NnDysk2rc92I78QDZBICHYsGcvq0ppfZ+NTpakMklHb Q==; X-CSE-ConnectionGUID: dI9aTn9gSAWJqHIl2tx2Bw== X-CSE-MsgGUID: R3+BsgcnRi+DPGCWJZTEMg== X-IronPort-AV: E=McAfee;i="6800,10657,11864"; a="90187818" X-IronPort-AV: E=Sophos;i="6.25,204,1779174000"; d="scan'208";a="90187818" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2026 01:29:15 -0700 X-CSE-ConnectionGUID: QQOhMtYQSTyS/azVX/z1tg== X-CSE-MsgGUID: EKsWz3aUSAyVm8RycFNK9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,204,1779174000"; d="scan'208";a="291376856" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.245.141]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2026 01:29:14 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id DA8F1121C16; Tue, 04 Aug 2026 11:29:17 +0300 (EEST) Date: Tue, 4 Aug 2026 11:29:17 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Wentao Guan Cc: wentong.wu@intel.com, alexander.usyskin@intel.com, tomas.winkler@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mei: vsc: Fix packet CRC computed over pointer size Message-ID: References: <20260804080842.31325-1-guanwentao@uniontech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260804080842.31325-1-guanwentao@uniontech.com> Hi Wantao, Thank you for the patch. On Tue, Aug 04, 2026 at 04:08:42PM +0800, Wentao Guan wrote: > vsc_tp_xfer() computes the packet CRC over sizeof(pkt) + olen bytes, > but pkt is a pointer, so sizeof(pkt) evaluates to the pointer size > instead of the size of struct vsc_tp_packet_hdr. The value correctly > match the 8-byte header on 64-bit builds. > > Use sizeof(pkt->hdr), consistent with the header size used everywhere > else in the driver, e.g. in VSC_TP_PACKET_SIZE(). > > Fixes: 566f5ca97680 ("mei: Add transport driver for IVSC device") > Signed-off-by: Wentao Guan Reviewed-by: Sakari Ailus -- Kind regards, Sakari Ailus