Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp372948rbb; Fri, 26 Apr 2024 06:47:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPZjzanu/EG+B5k5w1X0DriFu6OW+9Qt+JA02c9zrinIkty5tZJ1/ruSRrvOhsPhht055DgdniAdSbhsRKu2hrhgMTo0qRfLxrEQlz8Q== X-Google-Smtp-Source: AGHT+IHD/jxtRhWP4bZOp3+czGnk0/2CRotej3fVPbwebcytbp9xkv55EscpHRBM8//0OzvL6df/ X-Received: by 2002:a05:6a20:2591:b0:1ad:12fe:103a with SMTP id k17-20020a056a20259100b001ad12fe103amr3393184pzd.23.1714139242801; Fri, 26 Apr 2024 06:47:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714139242; cv=pass; d=google.com; s=arc-20160816; b=rtnOUxhE0jr3eWfNWUNbuY0vZABNaxGnjPaWuw0JQgQqdaP0T/jIBlWjvWEWo0ucDm w+oKHPUkNTMCx5B8n7VfBtsJrnRFQB8T/ncw5HFutQGomWbcvQnbajK5tt2umYHVBwpW ZVD2No717WX8/Up9tanxis0WIOGSGj53XVKwoXP5OUvSvqKzjU91ayb7aHgsN6MT7IjH MwctZ4i6cOIg0549NGyJHIUJ/0Mjr8wcP04a2kruRJkY+wW6AEkCNgYZvL1AxgXmnez+ ibv3vhedxesce+j67FxFFkPHB5SGU5Fc49umvpodNwohZKaqQWU8plq5GZHHLGKPV02m recg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :dkim-signature; bh=fIo6JiWpcfuJdP9GV9sCAn384Sgayh04jC6d/BFYW58=; fh=8nNkdYJZjr5oYOCLE/KHrjKj4Uj9eJ0QYdYZAbDtarY=; b=Tp3q2j/yLwhNLzbhZYQHRqXGopf/kj3XoZSRpmmosyPd458l6LLKIv/x1uSx/GKXNp xBCLReLZYZ9fGQqvlsC+VPBeR4VaXE00ELtBMi6gAwPY6yOEs7fzZF86nNeXK0sRqKRL HrfFjZQdURdFB89U3+uoHeSJGgw1gDfO9pbQqKKHnOLJ6TWsKzpPfq2hxZxocqw/uSUK A3SUjQwzV5Mlow6kfv31TK9ObWlQ3dclVxRjOjKaPuNwXcDo7WqwLdKX2kP7xipch+fz 5/0sxvb0v3Is6XLpytjTjnAQN1qOtTqIJrnNknFNpFPvsuM//f8GZ7P+oGEUPpQAz414 09BQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.es header.s=amazon201209 header.b=RJo3fPxA; arc=pass (i=1 spf=pass spfdomain=amazon.es dkim=pass dkdomain=amazon.es dmarc=pass fromdomain=amazon.es); spf=pass (google.com: domain of linux-kernel+bounces-160077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160077-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.es Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d131-20020a633689000000b005dca7a43069si14875683pga.603.2024.04.26.06.46.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:47:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.es header.s=amazon201209 header.b=RJo3fPxA; arc=pass (i=1 spf=pass spfdomain=amazon.es dkim=pass dkdomain=amazon.es dmarc=pass fromdomain=amazon.es); spf=pass (google.com: domain of linux-kernel+bounces-160077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160077-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.es 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3B290285509 for ; Fri, 26 Apr 2024 13:44:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2ED031482E4; Fri, 26 Apr 2024 13:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.es header.i=@amazon.es header.b="RJo3fPxA" Received: from smtp-fw-80006.amazon.com (smtp-fw-80006.amazon.com [99.78.197.217]) (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 DD8A31F956; Fri, 26 Apr 2024 13:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=99.78.197.217 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714139048; cv=none; b=YePP86PWhHa/fRiFyH2R0KKFIULr3tc3al3A3luiHWhg4kKHi2GEfvwCKgrtawmXKkNl9wTSFGck3h4lYyyx1C/RPtKVf1Mmi0i4+kNBZJUcr2mSdqVfUkHjVj4IFXuLJZhXqs5ZfZB9DTM2bWEj8BCkohCz7AXMXwH/x4qo8zE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714139048; c=relaxed/simple; bh=UZi8TXx9a8fjUIlUFGYdMkWm4qzSrLxmXgditYXOGGQ=; h=Subject:Message-ID:Date:MIME-Version:To:CC:References:From: In-Reply-To:Content-Type; b=A9v4OOYb4tLQySPIBATOk3FdQ13NrcolksjmS2QhFNVmLZ9vrEsG0SPt/GPe0ZHZwt8fyZvUkdkh53o1sQbFANexck8DwXSG/PTJofMJTs79u8e263p4eFFowDTiwA4aM1Np1siqetoGfgeAT+uamAZLF2CgWbQJxUVEK8bZKmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.es; spf=pass smtp.mailfrom=amazon.es; dkim=pass (1024-bit key) header.d=amazon.es header.i=@amazon.es header.b=RJo3fPxA; arc=none smtp.client-ip=99.78.197.217 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.es Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.es DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.es; i=@amazon.es; q=dns/txt; s=amazon201209; t=1714139047; x=1745675047; h=message-id:date:mime-version:to:cc:references:from: in-reply-to:content-transfer-encoding:subject; bh=fIo6JiWpcfuJdP9GV9sCAn384Sgayh04jC6d/BFYW58=; b=RJo3fPxAuoSpOUotwAlANuQ9Jil20slZr1KwbtRTMlP/Go4bFPL48k0u 66qVAtC4B293edjuD88CsPsz3hwJko983QAWWu14FiQypyliyFf6dK5Gj o6W2CLyk0OWHYrLoOY1OWAo/5OX2VzqYBZnWXGlLI3/S9tx7TEmnmaAHD 0=; X-IronPort-AV: E=Sophos;i="6.07,232,1708387200"; d="scan'208";a="290971147" Subject: Re: [REGRESSION] Re: [PATCH] Revert "vmgenid: emit uevent when VMGENID updates" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO smtpout.prod.us-east-1.prod.farcaster.email.amazon.dev) ([10.25.36.214]) by smtp-border-fw-80006.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 13:44:04 +0000 Received: from EX19MTAEUC001.ant.amazon.com [10.0.17.79:48160] by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.21.244:2525] with esmtp (Farcaster) id 3e3dc579-38c9-447a-8e7d-ab1368f1c799; Fri, 26 Apr 2024 13:44:02 +0000 (UTC) X-Farcaster-Flow-ID: 3e3dc579-38c9-447a-8e7d-ab1368f1c799 Received: from EX19D037EUB003.ant.amazon.com (10.252.61.119) by EX19MTAEUC001.ant.amazon.com (10.252.51.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Fri, 26 Apr 2024 13:44:01 +0000 Received: from [192.168.28.148] (10.1.213.14) by EX19D037EUB003.ant.amazon.com (10.252.61.119) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Fri, 26 Apr 2024 13:43:56 +0000 Message-ID: <1f09319c-56e6-44d7-9175-c6307089447b@amazon.es> Date: Fri, 26 Apr 2024 15:43:51 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "Jason A. Donenfeld" , Alexander Graf CC: Lennart Poettering , , , Greg Kroah-Hartman , Linus Torvalds , Theodore Ts'o , "Cali, Marco" , Arnd Bergmann , "rostedt@goodmis.org" , "Christian Brauner" , , References: <20240418114814.24601-1-Jason@zx2c4.com> Content-Language: en-US From: Babis Chalios In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: EX19D036UWC003.ant.amazon.com (10.13.139.214) To EX19D037EUB003.ant.amazon.com (10.252.61.119) Hi Jason, On 4/26/24 14:52, Jason A. Donenfeld wrote: > I don't think adding UAPI to an individual device driver like this is a > good approach especially considering that the virtio changes we > discussed some time ago will likely augment this and create another > means of a similar notification. And given that this intersects with > other userspace-oriented work I hope to get back to pretty soon, I think > introducing some adhoc mechanism like this adds clutter and isn't the > ideal way forward. > Correct me if I'm wrong, but the virtio changes were meant to mean "please reseed your PRNGs". That's why we wanted to route them via random.c. We designed them specifically so that virtio-rng would be only one of the potential systems that would emit such notifications, whereas other systems might have nothing to do with VM events. With that in mind, could you describe how these events would be useful to the use case of Lennart? systemd does not need a notification every time the system believes PRNGs need to be reseeded. It explicitly needs a notification when a VM was cloned. This has nothing to do with PRNGs and I don't believe random.c, virtio-rng, or vgetrand() should be responsible for delivering this. Cheers, Babis