Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1247542lqb; Thu, 18 Apr 2024 04:49:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgi/LtvCBj/jl0RTrouE/5LIxIauQ5WqSZpbCj7YWvjEnEvPLYY5XJTvXzoxoZAn0YOzpxMVJRWiGHtSuPXyVhu5ahF7M91VtCRBNi0Q== X-Google-Smtp-Source: AGHT+IHi/OFgzlGTgYhW5t/xblls3qTrV5cj9UHcbDZ8FpAmY8qtINp+JIXvV36S3iLcphBRtnRU X-Received: by 2002:a05:622a:1354:b0:437:d34:f5b0 with SMTP id w20-20020a05622a135400b004370d34f5b0mr2639826qtk.64.1713440951844; Thu, 18 Apr 2024 04:49:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713440951; cv=pass; d=google.com; s=arc-20160816; b=jUiWG8I87w5Fy89c2HA0iZ+wSio/fp4cDxM6vQNJ5anTJDBINwX0Tp6WVEGabUsHiI Y287zI6UPzZKHTF5MdG5pirizq4eS+Fufk9WYAhF8XCkYFeopilQJelvhSoCCdfix9j+ iaf9FMEZpx2ULcYSSImEhC0b44AoDxOHo1L+efPlsbb1qwYmF89uOp7GX3S6/DROJ0Tq ncPzZJe6Ohd3nUSZb8jD8AvkwhcpXNEd0eRlGiTWpLyuDJ+oReKJZ+tTUkmmIHP0N01m RypUfB8ysq4ne12EOndxfqeK9hhGlWp+QfXGn0xA6TCIB3nOndGCES5IvmvyKqMGSCA4 +sag== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=Ae0zTG4DxkCJg7AeltX/Gau4i8llJFr54olJaeSeesc=; fh=2uw/KK254M4d4qrB6Z4wNCcUbevopdnma4X0uTK/b2s=; b=VXnyZMib5eKYW7dZvmSTn10Lmps9RQjDsXAmh4PtWrRpijN7sNAHj0cHTSO/Nu7pd/ squ3NMUgmGqLocNqSBWjmpZ+gDYrDH00T1EbqTYejbAZPspE9waWBrEv+Yz/XR4FTVE1 niG/6p4yqdXf4TF2eOQkavtaqsfpOJWacTTbvm5M8sLqBQg+2fwkXh5R6hYIK5GIygdV XG8q7ga/LDNVW+ZxtJy9EXmfufvoTro1NsxPlVhjtHnenNcyDMkbjyD335WQgzAj1AUX U4c1RqCTX14g4PG/ef/vo9V1qLxzb0ATIrsFlV93hmu7omBJ7q0hpVTm702YKWDQZlbq 9iBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=oflefiUI; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-150002-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 4-20020ac85904000000b00434e7ea0f96si1301324qty.224.2024.04.18.04.49.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 04:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150002-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=oflefiUI; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-150002-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com 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 8D31C1C214EC for ; Thu, 18 Apr 2024 11:49:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5576B15FA88; Thu, 18 Apr 2024 11:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="oflefiUI" 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 5D51715FA69; Thu, 18 Apr 2024 11:48:29 +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=1713440909; cv=none; b=sEFvcUTBQqVTmE+3Ow8w9ui7o8qi7VBdfj4uTSkj4X6yZWULzR+YHmJgyYbqpu9MML3eELyJWzxfOfmFXVLivICTu7B1wnO0KLKwx/qW8QLiUR8xx7WkVDgt1SNoxI4IvxoyFOS2FKAGSFM8eZ5qnoy/Xp+JpxxjgLdCGEar4HQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713440909; c=relaxed/simple; bh=8VJ5hKHmYOp/46ZdNZxyjLIo6lOw9/Vq2aq/KzWpkQA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dvIaQHEjUb8Kq19ypwXKgpq5q8wbJlCjXEPjavYtLCZR+4yqmUg+z++GOauVhE02MkzS6tj7kM2L3SQSMznro/vBJ4dIR6R4Mv+xUujQ1AzobH3qizkIarVQumguNG85iXE8L0an0sMOZEQIoc0PWNJrp7NmSkgJM46Myyf4bMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b=oflefiUI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57633C32783; Thu, 18 Apr 2024 11:48:28 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="oflefiUI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1713440905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Ae0zTG4DxkCJg7AeltX/Gau4i8llJFr54olJaeSeesc=; b=oflefiUI3WblrKofe4FNMGhCZRAa94XIlS9eMnTEJ1KIV44v1DKXlFSxehRkjD8HvDpQR/ rfeEXMVaZHjU9RDYaK/KS+A6QttMVmspa6V969dtETg29xwvD20NhL6dQ04y310Y+NwzQo BGp6H9xGCPZNnAJ5YCDQI7+7Vz2Qi/w= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id c16785af (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 18 Apr 2024 11:48:25 +0000 (UTC) From: "Jason A. Donenfeld" To: linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" , stable@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH] Revert "vmgenid: emit uevent when VMGENID updates" Date: Thu, 18 Apr 2024 13:48:08 +0200 Message-ID: <20240418114814.24601-1-Jason@zx2c4.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This reverts commit ad6bcdad2b6724e113f191a12f859a9e8456b26d. I had nak'd it, and Greg said on the thread that it links that he wasn't going to take it either, especially since it's not his code or his tree, but then, seemingly accidentally, it got pushed up some months later, in what looks like a mistake, with no further discussion in the linked thread. So revert it, since it's clearly not intended. Fixes: ad6bcdad2b67 ("vmgenid: emit uevent when VMGENID updates") Cc: stable@vger.kernel.org Cc: Greg Kroah-Hartman Link: https://lore.kernel.org/r/20230531095119.11202-2-bchalios@amazon.es Signed-off-by: Jason A. Donenfeld --- drivers/virt/vmgenid.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/virt/vmgenid.c b/drivers/virt/vmgenid.c index b67a28da4702..a1c467a0e9f7 100644 --- a/drivers/virt/vmgenid.c +++ b/drivers/virt/vmgenid.c @@ -68,7 +68,6 @@ static int vmgenid_add(struct acpi_device *device) static void vmgenid_notify(struct acpi_device *device, u32 event) { struct vmgenid_state *state = acpi_driver_data(device); - char *envp[] = { "NEW_VMGENID=1", NULL }; u8 old_id[VMGENID_SIZE]; memcpy(old_id, state->this_id, sizeof(old_id)); @@ -76,7 +75,6 @@ static void vmgenid_notify(struct acpi_device *device, u32 event) if (!memcmp(old_id, state->this_id, sizeof(old_id))) return; add_vmfork_randomness(state->this_id, sizeof(state->this_id)); - kobject_uevent_env(&device->dev.kobj, KOBJ_CHANGE, envp); } static const struct acpi_device_id vmgenid_ids[] = { -- 2.44.0