Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1991752pxb; Fri, 24 Sep 2021 17:18:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqaWZ8jg7uH/yR96Di+GsfY4dV0n/FGYsiK8yMbdEDs1zq+TczTD8CV41vA3HpYiQ4u/ET X-Received: by 2002:aa7:c744:: with SMTP id c4mr8457739eds.0.1632529098898; Fri, 24 Sep 2021 17:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632529098; cv=none; d=google.com; s=arc-20160816; b=xrqVUcFrx7juMic0khctZGZOYUwQubpcf20vDsDmR5XlzKoe4XWlQ00BRSrRBmELOk Cx7LsT7sbMXUu5m5rxMK8tVHZYzS3szM0IHbcLjEiL3Gf7mTQ6rxwLxm4aI7TZD1DTnt QIJVjdBMGWnWM/X3e2ptv2BXd+/CKxgHykEHXcBg+n20JFTUJyE5aj7qpJq7peGr8w09 BaRJkb4eUP3FUHqAEGdMelml8ZP+7p4PyZ6ZtNDFFXcLzlrrYaOC3lRe9o9WFhfhIAeh X746oTEdvUBD9XCEjh45yHJemZvakTVgXiKSLg4wEmsjZn+SCNrpJIEHj/GraQgHZgR2 Df5A== 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=5eUm/3BocFnd6jqw8ryBk2FLBZ1MGOAGbJXeqs1dooA=; b=IAwxwDjIGbL4kpEYYuqwxyQLglNAOiSZPbZQ1IYLRrz/gqJxRUkwQLlrpbBj36/RV9 N8MCXzrbJ+MKQSdLdv5pcybS03coz3blCySBnxq6BraPkNuemoSFF/Rg2xBhbl7bML5V VdWElkfuHfVOHM6X24wZjeNTevCS8avNFaijADj41uo5dupeY6Wa2buRHe8UbmPLMlmS QZ1VMyVO/TdC7uK+lWYoNn2twdB9DBeYind56655tB4xh1i1JJHXVrA/QD5YA27Enf7W xwWDwUgk9M4LjRm4Q8nqtFegSGeT36H7x/hmmP6uhNvmlJCWTxXpfgusMdpdBwtq/LGK clYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BjCdxAtr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si11051686edq.233.2021.09.24.17.17.53; Fri, 24 Sep 2021 17:18:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BjCdxAtr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343838AbhIXNkP (ORCPT + 99 others); Fri, 24 Sep 2021 09:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344482AbhIXNkO (ORCPT ); Fri, 24 Sep 2021 09:40:14 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 523B0C0614ED; Fri, 24 Sep 2021 06:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5eUm/3BocFnd6jqw8ryBk2FLBZ1MGOAGbJXeqs1dooA=; b=BjCdxAtrap7UL9wsq/2CwCsa67 +ukKcoaDAqitwzOvAeOc6RHcdzo2P0AI2VV6yMliXQjzK/ZNnVikF1Ea0ohyOxLld/H5gnHBL5Ld7 oOLXqUG+NvkrCV4NAk9/00veGCfGKXNfOJ+Cw3Ijcg76dBS241OzsvjhsVX8kvqxjMy7ua+cih6CT N/k/u/UMwWGeSnUofEdTBXnvrYefFp+RGje4X6pepKKyNym5uZ+mKxJx3N2Wj0iao/OSqxR66ANvG kdbr9bcr3vgtg5IT7S6aieRH3K3huMnV4iMvn6mZuORnochk5lChpBLXDBpEwbs0KePGts+kamAHo DHvN/YmQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTlIn-007Edy-Sv; Fri, 24 Sep 2021 13:32:01 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 068E0300273; Fri, 24 Sep 2021 15:31:45 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E201D2C5DFD92; Fri, 24 Sep 2021 15:31:44 +0200 (CEST) Date: Fri, 24 Sep 2021 15:31:44 +0200 From: Peter Zijlstra To: Kees Cook Cc: Qi Zheng , Thomas Gleixner , Josh Poimboeuf , Vito Caputo , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Jens Axboe , Mark Rutland , Stefan Metzmacher , Andy Lutomirski , Lai Jiangshan , Christian Brauner , Andrew Morton , "Kenta.Tada@sony.com" , Daniel Bristot de Oliveira , Michael =?iso-8859-1?Q?Wei=DF?= , Anand K Mistry , Alexey Gladkov , Michal Hocko , Helge Deller , Dave Hansen , Andrea Righi , Ohhoon Kwon , Kalesh Singh , YiFei Zhu , "Eric W. Biederman" , linux-kernel@vger.kernel.org, x86@kernel.org, linux-fsdevel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] proc: Disable /proc/$pid/wchan Message-ID: References: <20210923233105.4045080-1-keescook@chromium.org> <202109231636.C233D6D82@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202109231636.C233D6D82@keescook> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 04:38:26PM -0700, Kees Cook wrote: > On Thu, Sep 23, 2021 at 04:31:05PM -0700, Kees Cook wrote: > If the fair scheduler would actually benefit from still using get_wchan, > I think this patch: > https://lore.kernel.org/all/20210831083625.59554-1-zhengqi.arch@bytedance.com/ > should still be applied too. > > If not, we can rip get_wchan() out completely (across all > architectures). The scheduler doesn't care, it's kernel/profile.c and please kill that right along with wchan, good riddance.