Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1697714pxb; Wed, 9 Feb 2022 02:29:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaOjW2fTLnagNB1R4wAweA2AHyB7k/XSUNeIil8OTbTpT7CZGgeUVN1aUy077udPFLgmxE X-Received: by 2002:a17:902:760e:: with SMTP id k14mr1530467pll.11.1644402555929; Wed, 09 Feb 2022 02:29:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644402555; cv=none; d=google.com; s=arc-20160816; b=fzWRBXAiyaMRMRGf6F6MR+knweABQuFhDjsJoZHJF+uHrzC8E+BNI7/sY0wy4GjTsS d0UibiRLhjTNZE1JJ9KHbHjE4s+kW/eIN+cyN/uYkkS0LC9yuYCiA9JD9pzKMOjB/bHw rNOrcvIH+Tw17eKRiceMk5yuLjVIixwX50MMpl9IE0yCABM065bgyh/nVwXHuSbYsP44 AQmihhGVPm4FLrq+2N0uRJDhBlhl2H/mCrKFfHZ+jaIEQOr6CHgdPbyMomDKUzP7U4Xg 3ehuGVxJ/gc8SCnfwg0qEruGtofZx2Vg567z99KmHn2t4++XGzeTVvETSkNODD1U7OOz Vunw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=WzbH78aaKbEWQFzxiM0uYcTtkPHS6I5wXZbs6gQ3Etk=; b=Ns6Gwynf9IaHOxDP/H2NCljzB3+C5l28cynORiV+oPm/cIRgpb5+HHgXoqPAEfYgE1 ufQvT9n868Fcjjc/Vij+pwsVNWxgJ95GTUmPZp677OzOtgk8o9ycM6YujGG5x47k+zP1 LZ3BBDW+LYM9+PmcpF4OOkNybToYrKOg1nRihyEXt8gwT+nNJj3MSJtN7mHNAB8xxpkP MA9mwAjVW46x3K9/D/44y5xsZFLg2KO9mTxZVSz16l/sZ66TH7gJjYFyVByKrPS0ZjKd N7ndOSIYc8gpXxcVm94mP/ypvfdYNonfUM2/0nMDeV1ahNYaEICeVGZQht6c3fgBpJ9E GxFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=dDGsNpsb; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bf4si4947848pjb.27.2022.02.09.02.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:29:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=dDGsNpsb; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 90B33E00E267; Wed, 9 Feb 2022 01:21:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376931AbiBHN4s (ORCPT + 99 others); Tue, 8 Feb 2022 08:56:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376885AbiBHN4r (ORCPT ); Tue, 8 Feb 2022 08:56:47 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70664C03FED5 for ; Tue, 8 Feb 2022 05:56:46 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 30BD4210F6; Tue, 8 Feb 2022 13:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644328605; 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=WzbH78aaKbEWQFzxiM0uYcTtkPHS6I5wXZbs6gQ3Etk=; b=dDGsNpsbDmpdLeAwmFR/N/y7NXeY4UkTHeZDPG2HRr8kRG2jpICs1zKE9Kw5ruC68r6owJ ZcUNXl/4+O4jot4MNd+P2KtsKMyhOd4dLwbGkS4s5V/tHzG6u4VTvOqalhv7EuQLCrbt5V TXubF6Z7cpcPhrlvowxH/BIdvKeHYNo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644328605; 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=WzbH78aaKbEWQFzxiM0uYcTtkPHS6I5wXZbs6gQ3Etk=; b=a/7JYFruBUNmIBavhT4iOMTwORBOJigP9LfXrCE/DhiZRjcbO1qs3dmimbjAbtl6ywvr15 8UnZmggUkn/jpFBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F1C5613C99; Tue, 8 Feb 2022 13:56:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id o01UOZx2AmLNcQAAMHmgww (envelope-from ); Tue, 08 Feb 2022 13:56:44 +0000 Date: Tue, 8 Feb 2022 14:56:43 +0100 From: Jean Delvare To: Florian =?UTF-8?B?c3Axcml04oCL?= Cc: sp1rit@national.shitposting.agency, linux-kernel@vger.kernel.org Subject: Re: [PATCH] firmware/dmi: Allow overriding vendor provided DMIIDs Message-ID: <20220208145643.604338d8@endymion.delvare> In-Reply-To: <20220206104636.19146-1-sp1rit@disroot.org> References: <20220206104636.19146-1-sp1rit@disroot.org> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On Sun, 06 Feb 2022 11:46:36 +0100, Florian sp1rit=E2=80=8B wrote: > Various device vendors do not properly fill out the SMBIOS/DMI > information in the bios firmware of their devices. This leads to > issues, like finding "System manufacturer System Product Name" under > "Hardware Information" in GNOME Settings, which made it's way there > (over a few dbus detours) from DMIIDs provided from the kernel. >=20 > This patch intoduces a handful kernel parameters that allow > overriding these values with user defined ones, similar to changing > values in HKLM\HARDWARE\DESCRPTION\System\Bios or > $WINDIR/system32/OEMINFO.ini on Microsoft Windows. >=20 > The alternative would either be patching the vendor provided bios > CAP file, which seems quite dangerous and might not even work if > the update has to be signed. Or introducing some kind of > configuration file to systemd-hostnamed to allow the overriding of > the values from userspace. However that might work for this usecase, > but most software will not use hostnamed, since simply reading a > file is a lot simpler that having to rely on dbus to query system > information. I'm absolutely not convinced by the idea. This is fixing the problem at the wrong place. If the BIOS is reporting wrong information, and you really care about it, then complain to the manufacturer and have them provide a BIOS update to fix it. If they can't be bothered (which I know is often the case) then this might be a good reason to consider a different manufacturer next time. To be honest, GNOME Settings displaying invalid system information on crappy systems is the least of my concerns. Even if this happened on a system I was running, I wouldn't bother passing kernel parameters to work around that. Furthermore this is creating a lot of room for risk and abuse. Such as using the UUID of one system on another, or accidentally claiming that a given system is a completely different one and getting unrelated kernel drivers loaded and probing hardware in unexpected ways. I don't want to have to deal with the fallout of that. So this is a no from me, sorry. --=20 Jean Delvare SUSE L3 Support