Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1329280lqa; Mon, 29 Apr 2024 05:47:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZ2pzYuxXuH4mANaDldeixYIQdSlHGvxli47ZQw8EkwK1Lv6goMwrhUEn22sskfauVWOTc5ZvAmTchMgJGp0BN9nNyP8WRH8tpRxx/IA== X-Google-Smtp-Source: AGHT+IGo5KRNZUIW6JiJWDP0lvknZts8EWSvCzAXQt2vNlllLBF6Vc8IomPj5b0ike358LYdxHAG X-Received: by 2002:a05:6214:1c4c:b0:6a0:cf21:abc9 with SMTP id if12-20020a0562141c4c00b006a0cf21abc9mr3925643qvb.6.1714394869257; Mon, 29 Apr 2024 05:47:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714394869; cv=pass; d=google.com; s=arc-20160816; b=RLcv5eFnGT9kw3D26ULY21x+qIieiI/8xjCbf5JsDMaY55gHTHqSD1ONnl5nILcQ2y cXJJEJv8c/P5ikp3DADSdoqoMMrXHsqAV1G+TCRbshGH23UNgaX17lEInRPAuL9WtLP/ sf1F6FNmXtPed+/hU59ISdcW8wxoxTzxtajwQOf0pOa/pUIT/VXUdKN1Ep3/0O32uJKo phJdJwG51uA74bzxsSXhEuhbP9z9V0czcOoy6ftWOi2VW/8PGzRvfFXxOex2ejgu1l/2 wWIV07VAEHH6W4HruGg1yjSu/a/3pKBSsSFceeQPIT5fVqZxtM9BRHA9i0242iroq7QO ZsIA== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=vTLiGH0LMrBU/hhsuu2ns8jPvm10lUVCaNgVvudddD0=; fh=aXVPkA3OAQPfHQI0077y9H2mRz3lCXaF3Zh5g/0LTzk=; b=bjbNUzzhfkF4vkadjop0hBwQrGKSa2DiSyF+PaoXEf0CkUseFvouh6wjAA1OgBmIcU ePxcY3cxbgzUGfvLjJ2UGyHdWEBC+N/WNDqT9/5LrXYBQK57bRQQRiqPlWvtlNP7TQrb 6K79V/wGua+c6T7KFzP0RPhx+2DUyGpR6olx3R5d4kaSmWBshFqD5yp6+ec7QmJt9Zmw WzrI5VYoJvoiOfiui8asWFLQ9AKWtw3/nZD2Dj+srznGtNZXW1eMPXCjTFsDhboU7Cbi gbl7W7BmIDoqKZqfxoGN3JB7kJrprIIaPUIi4rusHECnKUvvpUsxmZh1CA7DQt4eQtvM f6mA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UF7z2l4N; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UF7z2l4N; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-162277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fn3-20020ad45d63000000b006a0cd6a78b9si2694741qvb.15.2024.04.29.05.47.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UF7z2l4N; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UF7z2l4N; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-162277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4F5571C22547 for ; Mon, 29 Apr 2024 12:47:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C6B956B86; Mon, 29 Apr 2024 12:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="UF7z2l4N"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tc9ZF9Y6"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="UF7z2l4N"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tc9ZF9Y6" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5B3910961 for ; Mon, 29 Apr 2024 12:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394690; cv=none; b=RL7iy0E/8W2pFOVFiHk2Jf6zx0hV1ElphEuXgEIVdnuodPsTlrPutG8pehzIoPNwnj7l4l72SAAtkr6BQTVOVKT/kES+LjEFBHgBszgvAksxgoCrlYjHVO5U0ylxbH7KJpWVVjbdqlbgN+Y0qRcVlTvqXsEC0XlbhHDWolIg50I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394690; c=relaxed/simple; bh=66rdI/GBqjiXeIs+U15w20lxYuu2e3aonXQoBWKEXi0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mhJgIjHUEiAXf/Tl0JdWlH9YxAGShrUGI+fbk8mov+7hwElVcNg0biE5rFaPC0PsbyHBMjNO+8QdrayuWjp91ghM2qhCCvVqv5nUa/4ZRD5KB0qxZTaXcZfsxkoIOc85PO3phyi9D6wLsJnZN4FjX0Qu8i/wRki6RYFZUxI9Zuk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=UF7z2l4N; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=tc9ZF9Y6; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=UF7z2l4N; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=tc9ZF9Y6; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C15661F392; Mon, 29 Apr 2024 12:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714394686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vTLiGH0LMrBU/hhsuu2ns8jPvm10lUVCaNgVvudddD0=; b=UF7z2l4NtotDO7ZgEYQzrr8elVdNG5n3EdQQWST3fm9EIDdwRW0/yn2MIKFg+VCsjDDdC1 sOT/DgAPhlWiSOa9I3eXL+g+1i85Vbf2eFZdeASUCCWWFz20erUWxWXZjxiJGSu3+F5nLF zL/igR7x0ZpjKaGRJkrdr1ujuGOKrTo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714394686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vTLiGH0LMrBU/hhsuu2ns8jPvm10lUVCaNgVvudddD0=; b=tc9ZF9Y6jiUsc9o7HTdClS2470p1Cu9KSUVJSFexz49I7KQb5sbvzALulsVtYknFXacyGZ LvPe2NryhkW6n8AA== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=UF7z2l4N; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=tc9ZF9Y6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1714394686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vTLiGH0LMrBU/hhsuu2ns8jPvm10lUVCaNgVvudddD0=; b=UF7z2l4NtotDO7ZgEYQzrr8elVdNG5n3EdQQWST3fm9EIDdwRW0/yn2MIKFg+VCsjDDdC1 sOT/DgAPhlWiSOa9I3eXL+g+1i85Vbf2eFZdeASUCCWWFz20erUWxWXZjxiJGSu3+F5nLF zL/igR7x0ZpjKaGRJkrdr1ujuGOKrTo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1714394686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vTLiGH0LMrBU/hhsuu2ns8jPvm10lUVCaNgVvudddD0=; b=tc9ZF9Y6jiUsc9o7HTdClS2470p1Cu9KSUVJSFexz49I7KQb5sbvzALulsVtYknFXacyGZ LvPe2NryhkW6n8AA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4D16E138A7; Mon, 29 Apr 2024 12:44:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id /tEIDD6WL2bDYgAAD6G6ig (envelope-from ); Mon, 29 Apr 2024 12:44:46 +0000 Date: Mon, 29 Apr 2024 14:44:42 +0200 From: Jean Delvare To: Tiezhu Yang Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] firmware: dmi: Change size of dmi_ids_string[] to 256 Message-ID: <20240429144442.472aa83c@endymion.delvare> In-Reply-To: <1677030901-29326-1-git-send-email-yangtiezhu@loongson.cn> References: <1677030901-29326-1-git-send-email-yangtiezhu@loongson.cn> Organization: SUSE Linux X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-suse-linux-gnu) 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-Transfer-Encoding: 7bit X-Spam-Flag: NO X-Spam-Score: -2.43 X-Rspamd-Action: no action X-Rspamd-Queue-Id: C15661F392 X-Spam-Level: X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-2.43 / 50.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; BAYES_HAM(-0.92)[86.23%]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_BLOCKED(0.00)[suse.de:dkim]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.de:dkim]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] Hi Tiezhu, Sorry for the very late answer, somehow your messages slipped through the cracks. On Wed, 22 Feb 2023 09:55:01 +0800, Tiezhu Yang wrote: > The current size of dmi_ids_string[] is 128, the BIOS date > can not be seen if the total string length of system vendor, > product name, board name, BIOS version and BIOS date is too > long to over 128, it is better and enough to change size of > dmi_ids_string[] to 256 for most cases. In order to convince me that the size of this buffer needs to be increased, one would have to provide a real world example with valid DMI data where the output doesn't fit. However... > Without this patch: > > [ 0.000000] DMI: Loongson Loongson-3A5000-7A1000-1w-A2101/Loongson-LS3A5000-7A1000-1w-A2101, BIOS vUDK2018-LoongArch-V4.0.05132-beta10 12/13/202 > > With this patch: > > [ 0.000000] DMI: Loongson Loongson-3A5000-7A1000-1w-A2101/Loongson-LS3A5000-7A1000-1w-A2101, BIOS vUDK2018-LoongArch-V4.0.05132-beta10 12/13/2022 This example is apparently taken from an engineering sample with rather "low quality" strings or invalid string indexes. Specifically: * The product name and the board name are the exact same string. * Both duplicate the system vendor name ("Loongson"). * The BIOS version includes the architecture name "LoongArch", which seems unnecessarily verbose. So my feeling is that the issue would be better addressed by fixing the DMI data of your board than increasing the buffer size. Do you have any production-grade DMI table with proper strings where the buffer is still not large enough? -- Jean Delvare SUSE L3 Support