Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp593522iob; Tue, 3 May 2022 05:45:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFApeK9MImAok7X7CPm0m+FBJeWtMojycGKAV1Vw5/nSX4fIUT3peOdBtYV9Fi1+bbdJ7+ X-Received: by 2002:a17:907:7f8e:b0:6f4:2d7c:1b75 with SMTP id qk14-20020a1709077f8e00b006f42d7c1b75mr11803053ejc.726.1651581932196; Tue, 03 May 2022 05:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651581932; cv=none; d=google.com; s=arc-20160816; b=M+S04qAA2Iovd8ok2nyvzlZ1zVWgWgcX8xJwtfN5gXW8ZuQQj0GvTCL6oLhrvAuh9Y r4+nW1e/57jdadT5X+f0dyVd6/f9Xvgaa8Xhs7xAjVGLZMjRwoQBjfkW7fhmb6pU1pZD Scavw0/fIDnHsToc/ghZI9iPKRqxXjOuKGz+RD2ytZh2Cf6QWbi84HN/AmJhvK4r42cx vMkjxxWWN6igIGRA/dCl+NvJM+t2T29u0Tx+L4HQVAqdAmnp2Weu4+rnk21YPo5Ag4Xi HeRHjDj8uoOnsyvR8RnUYpPKBbuitPAySJ+WPHZRNHDp4px4toULXBh4xuMtJX23eyB6 +Yfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OmnpymFgrKna+sorYsF9uO7087ZOoY3Nagqmgfgtvyw=; b=jLRDN7xPvYQpjW83/bfxuO7G4Ny2W0W1vRxZQHLH6S0Iu4JO4EtYk/cWqJBKaAYoDm IiJsbEfE3rvInb/WwlhgxvQMgoffW7dXeYALFjFU38EvDdbcMQsg2qqB58+H7WRKWts3 LnIyRfILL+TDKJhIqo7atHPuMXfRjCCX9//mWy8zj97unu4Jbuxjj7//wSHdc0s6/RSZ qyvts8RXFLaX6C7oFgKft7745Egoo2Aqkh+Wyv4gsr5WG5qi0QvpqPN1c/7xDyHP8/+k 1LGN1kQgKBfw6i0wBroapMYEVjaJp3vcwGrwTVD4iNwtnJpj0opYJU4l02M0uEVrn1i/ KKsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=iwmrY2Q1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a1709062dd000b006e748e41ceasi13756465eji.308.2022.05.03.05.45.05; Tue, 03 May 2022 05:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=iwmrY2Q1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234952AbiECL7O (ORCPT + 99 others); Tue, 3 May 2022 07:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231882AbiECL7N (ORCPT ); Tue, 3 May 2022 07:59:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6F0EB7F1; Tue, 3 May 2022 04:55:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 433176164E; Tue, 3 May 2022 11:55:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 902D0C385A9; Tue, 3 May 2022 11:55:39 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="iwmrY2Q1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1651578938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OmnpymFgrKna+sorYsF9uO7087ZOoY3Nagqmgfgtvyw=; b=iwmrY2Q1Z5D2rGVAA265kMFcIFN0uJku1PhjnGHwvIhDRbrtY5xC0tE8RmF9AHg2cdbv7X w59MpGC2fCz7GMwqv2ef6Sdw1MNYtmmiBTK0+d7veygZHmULjs9O1XX1mOc32pN4ewyMF8 YoCyXu/14vRA+o3aNNd5wpIVEN/3Yn8= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 8fcc1fbf (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 3 May 2022 11:55:38 +0000 (UTC) Date: Tue, 3 May 2022 13:55:35 +0200 From: "Jason A. Donenfeld" To: Lennart Poettering Cc: Alexander Graf , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Dominik Brodowski , Greg Kroah-Hartman , Theodore Ts'o , Colm MacCarthaigh , Torben Hansen , Jann Horn Subject: Re: [PATCH 2/2] random: add fork_event sysctl for polling VM forks Message-ID: References: <20220502140602.130373-1-Jason@zx2c4.com> <20220502140602.130373-2-Jason@zx2c4.com> <7a1cfd1c-9f0e-f134-e544-83ee6d3cd9c9@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, May 03, 2022 at 10:29:49AM +0200, Lennart Poettering wrote: > As mentioned earlier, I am not convinced sysctl is the right place for > this. sysctls are understood by most people as being the place for > tweaking kernel settings. This is not a kernel setting, but a > notification concept, and the way Jason defined it there's nothing to > read nor write, which strongly suggests to move it elsewhere, but not > /proc/sys/. I think I'm coming around to this view that having a sysctl return -ENODATA is weird. It makes `sysctl -a` always complain to stderr, for example, which seems bad. > > I can see attractiveness in providing the /run/fork-id directly from the > > kernel though, to remove the dependency on systemd for poll-less > > notification of libraries. > > I agree. I'm still not convinced there's value in having a counter or a UUID, but if you had to choose, would you prefer a counter or a UUID? It sounds like the former, because you see a use for distinguishing between zero and non-zero? Or did you finally agree with me that vmgenid isn't granular enough for that? Jason