Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5995403rwl; Tue, 11 Apr 2023 13:03:19 -0700 (PDT) X-Google-Smtp-Source: AKy350beaU0ldUSTX3aWSY1yZ3kq8+z3xejhoUchZ3uW5ALkfSHOldmKOQ7Vr3p0ZkolITOQdsI+ X-Received: by 2002:aa7:db93:0:b0:504:66e3:c21a with SMTP id u19-20020aa7db93000000b0050466e3c21amr12851774edt.24.1681243399404; Tue, 11 Apr 2023 13:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681243399; cv=none; d=google.com; s=arc-20160816; b=gUd1tB1DSYCUDz6a9MgSVuZnbpwkaYbaqRC1QhkIn7lKCj/MvY87HX3XYuzvKc9u7g Lb+I4dxj25FaZHOUid7XOQ+FXXXVKxrBJDatX+g1/WTqzqUMbKb80Hd6ZxIuotOTAUsC bWBM/ymBWopMu7n6Jre2Xk880mkmuQ9q9C2P9MG+WHiLs0mCKwjekuRuMIUDcta+1gfl i+4/EosssnJyGWV16/Suol1mFpl6w/HOABMb2pAMU8gsg1R2RXIA0558QmqUoGb/xWfa 2ceHw8V6oFgdzfftCXISdz2pxU0r8c59zjNAkF+TP0Ar5CmNiIVvc7QCvskRUn/Ybn33 1CcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:to:from:date:message-id:mime-version :user-agent:feedback-id:dkim-signature:dkim-signature; bh=RRssdUhLPGTqNipCHTW6mJP22s4LNYxJ0UUvYMMlsu0=; b=0e0MwZfKgxNJGGOoJQthrEcs+I49LBCpt5FRlfV+Ul5gcTkWM7Twtg7tyyc72uroYC syYNlThe0MtrC+LKUrPOldi3x5OKyW9NKvAvE7S4sub8VCNK+kauFuYt4es5X9lU09gV laNK0kVeOFdPJEV+gW0oOzzkhBuk5eTHXpSXJJxCcrmlMeZaqgHihM0I/7lUHls9JxuR uI8aWr0Msku1GLqNg+GM5UQLh+4F4dAZxndI26Yq+fZnXMnwMd8jvPvOpy8AY0Oqod0R cibxY8OX1fBfwIOqlggkPgT1qSKI9WogK/yWHRK1sRiUJRnsj3FOxaUpxcQqyGrZAe6L 7kKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@colorremedies.com header.s=fm3 header.b=dzhqaRiH; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=AQO4+Irj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a50eb44000000b00504882a026fsi9179221edp.78.2023.04.11.13.02.14; Tue, 11 Apr 2023 13:03:19 -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=@colorremedies.com header.s=fm3 header.b=dzhqaRiH; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=AQO4+Irj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbjDKT5J (ORCPT + 99 others); Tue, 11 Apr 2023 15:57:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjDKT5I (ORCPT ); Tue, 11 Apr 2023 15:57:08 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F2EE3A87 for ; Tue, 11 Apr 2023 12:57:07 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id D079C3200931 for ; Tue, 11 Apr 2023 15:57:04 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Tue, 11 Apr 2023 15:57:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= colorremedies.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm3; t=1681243024; x=1681329424; bh=RR ssdUhLPGTqNipCHTW6mJP22s4LNYxJ0UUvYMMlsu0=; b=dzhqaRiH9JhOQYqIND OMQKMIdsw/5wlCDwbVte5jbHPR1hYKmzrdgs+HqP23b4UyYaN9qw4gE3qX9SqE6i Aqx7zZ2oKZueUQXiBDTx6DHwIpAz5enEoGgG8FPVy7NkowtcJQNuIhrueAfr7S8X VBXj3NV7xGyBNGaPU6dzlY2c9TsVXHfE4z5iA2QseX9RFeLihSQkV5ra/YRIcgHH VJ02NIcNHmy6r8hr06NlEpcpQx1fxeUWDnKYDphW+se+xIePl3NzsEc3WBaCJKwq sYLn3d8Fg/GKCErck2YTtPbTxT4aX3ly5uw/GFVtaGHRAmGEPj7WrXUryJ99UyY2 C1gQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1681243024; x=1681329424; bh=RRssdUhLPGTqNipCHTW6mJP22s4LNYxJ0UU vYMMlsu0=; b=AQO4+IrjmIxYVeR1wgGEE6+maqk9uLWIODLDbbjP9kF4TPOp8mR 0KlGsdGRNzcmC5n4W6ZB4T8Hjy7EGt5FOQ5uFl25f8KmwwV0EpHXWASRL+kGaWaq Yzg1d15glFUIPXMN0+J95+43hS/auWjyF5DU6s5VsoYIzsD0jXZ+8KUq/m53INDJ 1iDot5L4KKodDlCznE9XAIUsow60qCyG6EMBnws0bBk1TMhjKynK0GxqCORXzVUD fOgiNMrCOoeaggsX0K04Z94PZ+YzIg+qQSnKt3J7LNmcPPwdxPcxELMXbFID6ot1 ZDME77iMRX92CEJUQ9gf+s8cdZcAcVPW10w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekgedgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtre dtreertdenucfhrhhomhepfdevhhhrihhsucfouhhrphhhhidfuceotghhrhhishestgho lhhorhhrvghmvgguihgvshdrtghomheqnecuggftrfgrthhtvghrnhepieefkedvveelte efhfdvffdtfeelleetfeekhedvieefveeijeeutedtvdefjeffnecuffhomhgrihhnpegv nhgrsghlvggurdgtrghtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheptghhrhhishestgholhhorhhrvghmvgguihgvshdrtghomh X-ME-Proxy: Feedback-ID: i07814636:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 459F51700089; Tue, 11 Apr 2023 15:57:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6 Mime-Version: 1.0 Message-Id: <725fcda1-ef6a-4f3f-9c25-246fafb6e7f4@app.fastmail.com> Date: Tue, 11 Apr 2023 15:54:35 -0400 From: "Chris Murphy" To: linux-kernel Subject: exposing full preemption in sysfs Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 Hi, Is there a future when changing preemption mode at runtime will be exposed in sysfs outside of debugfs? Currently debugfs is subject to kernel lockdown (at least on Fedora) whenever UEFI Secure Boot is enabled. # cat /sys/kernel/debug/sched/preempt [68690.741678] Lockdown: cat: debugfs access is restricted; see man kernel_lockdown.7 So it's not possible to enable full preemption at runtime. Also, adding another kernel parameter isn't popular (takes up limited space, isn't user facing or very friendly to modify bootloader configuration to enable or disable it). I think it's preferred to see it available in syfs proper, and then something like a systemd unit can modify the value during boot, and users can enable or disable that unit like they do any other kind of service. Thoughts? -- Chris Murphy