Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp13332lqz; Fri, 29 Mar 2024 07:11:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnfKWZMd8O3y3r6woAfF1EwpivkzOWqqL42ye74vWVRW9E77ZOJd0UPhO/qPdFg8SLu1WUiIft4iw1lU4LrfzW5RdzTNGXo6iqQK65zA== X-Google-Smtp-Source: AGHT+IGzJ0pPPE6oQFVdjNJceZAIGGUsNUCWiypxqkrOsPos3NEb1hSE45J/M73omWxZMAp+NYxh X-Received: by 2002:a17:90a:2d89:b0:29b:7206:7023 with SMTP id p9-20020a17090a2d8900b0029b72067023mr2182059pjd.12.1711721461451; Fri, 29 Mar 2024 07:11:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711721461; cv=pass; d=google.com; s=arc-20160816; b=fFGwsPHNbLShX9CbrfiXEJhJ86EKQtr4PVG2aS+icg7TMQvaquKnSVlNa7BhGFwDJi qVJu0R31JVBH2Oi+MjXOi3fI8r/3qmR4QVg+ywfhp9k/tVc9eSQC+aG/n6FULwozB7An TQJV9zF85hj6bl8/OcdUpxhnhA3oE05LjRvwNMXXAXtNATBgXyC0rmjTOX5EIrNfXLJr 27fuc8hZLa4N1Rxm7bkwupiAtYGPynQrB+WsVMbPM2v9GCkW2R5p1FDDPls4c++Ny/VA c81YMowm5Bby+Mz5qGD9jzkIOFigtLJYu1sJMP9btkr4jMoYSvgOo3IlRSB0MHcls4E3 jmBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Yxu/FflewIX0VkLO1DfxWGT8Hypml7SMuNPYQeInxIg=; fh=WecgBwge10v0yn9t1k8gS80Uofh8FHZrKW8ysAuIl88=; b=MCnYlzXTeQV4TigUWhmUWfhdM48TCjNdvLI7ZkuiGv+fhjN1zeFMMu4DIDWJbEaLBJ wtfIpIN8cyA+h/f0wSPzbuRV7QtuDw62YKWQ68W7D6kebyeSY3xOuZaQdafP2rsxtc8c T7Md2luFXG5RLGy4XXJ5FiohOdRW1hLZDKkILlVHqRbBA56KEMiSsupTX4ldyMSJn5FR VmxUIf6X17zCWRhN0IpaR5TW5HJrXGlSpsx6ju+C6r726gOH0u4g/zSMx3beOfQP1Dwk Iq6kR2222z4TTHmy3NetCcAI3yS8sutB5M0aQIQR/DBPUuHVGlcL1QNL25OPZypFmcg3 reFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c1V0rISx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124769-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 p30-20020a635b1e000000b005d7a78810acsi3681848pgb.278.2024.03.29.07.11.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124769-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=c1V0rISx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124769-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 E115DB29001 for ; Fri, 29 Mar 2024 13:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06A76181D05; Fri, 29 Mar 2024 12:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c1V0rISx" 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 1CB78148315; Fri, 29 Mar 2024 12:41:49 +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=1711716110; cv=none; b=lC1QHXkCJ0e8MVkunIHpGe/2W9okG31DCdwbzI692PsLC6nlAQyLgFeentt5pxiqdTiKEch/1d901DXxDZ6aHo1nsQ5vCaJ6JLx0jQGG9e23Fk+w+bGxUC6UrGxyAvFSLaCn39pVFBUhFjorVfPX1lTJBWz8rsBzk7wQZ5cweFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716110; c=relaxed/simple; bh=V4bDS2RxaQJRAuNI95FSliMiLBgmhfekXfxx+cqz+VI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BIrvHF5DNjEX8+2Tr6kNSwk621qJYtAkJEXAKV92JFQtNdChQPQTYKcXA8rJuX90ndaFpRmnmgapWBk12Z066pVmuzo+HbUGBa+Fua75mp48oHyOJzFXIAesFWYQwuNa60yKrkqiFdci+MkYMrbxoJMZ+ViMKjmKDmL8W9s7mWk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c1V0rISx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B2F3C43399; Fri, 29 Mar 2024 12:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716109; bh=V4bDS2RxaQJRAuNI95FSliMiLBgmhfekXfxx+cqz+VI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c1V0rISxirWDhfcAd6BCOML27N9PbSTKvXNP9i4lNMWLr9PhHakRl3gE/p49VupTx mxD8oW2ANTPGKzbuQJ7nCR1ZpXSXUZ7vPCJqekNY/KsdFtcxpNCGtuIcZwqMSFxdl9 IbqktdD2smFPdho070btiE7VJSp83wLVOaGQ8fj9a+EAGcj2Y/2h5TRcAeAa5s3J9g mnY35eK/pqN8Jf8iIQxPJjqZ6LFM3/dLpr3wcaxkpjP9Rfb83tTf2pt7nmUluKWK35 Fruk6DRH90u+e3gLifL+io5+GS1+l6A7GjhOvQarwstv0UdKcXx2JXfpSm5X9GbZmZ CDKQhzA1tE3fg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Koby Elbaz , Oded Gabbay , Sasha Levin , ttayar@habana.ai, obitton@habana.ai, fkassabri@habana.ai, dhirschfeld@habana.ai, osharabi@habana.ai, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.8 59/98] accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings Date: Fri, 29 Mar 2024 08:37:30 -0400 Message-ID: <20240329123919.3087149-59-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@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=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: Koby Elbaz [ Upstream commit 8c075401f2dbda43600c61f780a165abde77877a ] Fix a warning of a buffer overflow: ‘snprintf’ output between 38 and 47 bytes into a destination of size 32 Signed-off-by: Koby Elbaz Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay Signed-off-by: Sasha Levin --- drivers/accel/habanalabs/common/habanalabs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accel/habanalabs/common/habanalabs.h b/drivers/accel/habanalabs/common/habanalabs.h index 2a900c9941fee..41c7aac2ffcf9 100644 --- a/drivers/accel/habanalabs/common/habanalabs.h +++ b/drivers/accel/habanalabs/common/habanalabs.h @@ -2547,7 +2547,7 @@ struct hl_state_dump_specs { * DEVICES */ -#define HL_STR_MAX 32 +#define HL_STR_MAX 64 #define HL_DEV_STS_MAX (HL_DEVICE_STATUS_LAST + 1) -- 2.43.0