Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8101835rdb; Thu, 4 Jan 2024 20:31:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLUSafmleSMG8ORzCtZkUQ/lYeR/cfGojr+NTbpeK3Znn7oj6H2wfT75SZM1NtJnEvx7oy X-Received: by 2002:a05:6512:1584:b0:50e:3f70:a492 with SMTP id bp4-20020a056512158400b0050e3f70a492mr1007983lfb.104.1704429105574; Thu, 04 Jan 2024 20:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704429105; cv=none; d=google.com; s=arc-20160816; b=Dx4kfdc4wg/RgVE8WnvoevmyyzIbsTciZDC6FKOFoNM2hw7yaHo51DUgcj/GCadeaP 58xl1ZNxt5yoC3sGYpVoWwU7nGPK4gpbT5uxPP9KXhfGyaLrhEcQtnswCGswqvjkz+Ri 8C6Bkm2MYxfq7xyv+1FdNQIMgNt1Oi3iMXW/LHqjLFa0gGB5ewuXlP8v57wpO2fP14E6 l86hfkYwBmqqeVCK3T7e64wEC9hnwQdenrbhjJHaM9Z36fJ5J6bNoWWOLfVySlAfLl3V aJZ03aXm9fP5BHWVlY2VkEzWd/0Sxh5H+BoDkVfU3dQ4rcGo99+gudE0EaPQm91dYvY2 joGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=gF1cgk48S4hsLo6vP5me9vcBWl5c5jDy5Hlj7ZER2Jo=; fh=jFz2XklBkvsWopxzITsImFlnASj6UPPcKiDjdmBzN6A=; b=uSpcw0HgGF5MriF9xO1UpXsHgLVYyHJyFGai7tN0s094y+PIp06j2bF38HAQf4G/n7 LgzBlGm1khdb9G+8f3uSu/dta4hTKs2jXhZEDM35Va5DKgwH8qQ7ymeBEOfbZpu40EBa uqcns4KvUcGUYDiIWO/bN86t80EVthAUYrLzBGJI+1f9Zen6lrOUUOM154AJMejj6AIG IbEtwzMuc/jnLj/VSdJkFDLyUYTW5iEhbiGPevIuqdQeJ4hXB4O5DVYs59bKiQEuc1oK 788bphmG9r8/BKLJLj87wmByKGN5mWRlSMr8GWtR9Sb1GISb31k/r9rmsG/5jkza/O6k NdbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17469-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i9-20020a05640242c900b0054c553e67f4si329822edc.310.2024.01.04.20.31.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 20:31:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17469-linux.lists.archive=gmail.com@vger.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 51DD71F22BFC for ; Fri, 5 Jan 2024 04:31:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87D64524B; Fri, 5 Jan 2024 04:31:38 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 52DEF5225 for ; Fri, 5 Jan 2024 04:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 0A16B68B05; Fri, 5 Jan 2024 05:31:33 +0100 (CET) Date: Fri, 5 Jan 2024 05:31:32 +0100 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Keith Busch , Arnd Bergmann , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] nvme: trace: avoid memcpy overflow warning Message-ID: <20240105043132.GA23716@lst.de> References: <20240103155702.4045835-1-arnd@kernel.org> <20240103155702.4045835-2-arnd@kernel.org> 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: <20240103155702.4045835-2-arnd@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Jan 03, 2024 at 04:56:56PM +0100, Arnd Bergmann wrote: > - memcpy(__entry->cdw10, &cmd->common.cdw10, > - sizeof(__entry->cdw10)); > + memcpy(__entry->cdw10, &cmd->common.cdws, sizeof(__entry->cdw10)); Please avoid the overly long line.