Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1985309pxb; Fri, 24 Sep 2021 17:07:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8aMlIhzkC0SF7X0LeNMO3bPSxPFcD1f2tQR1J88gEE1kdffBHVP6vUGH7fNIGhFrohHAB X-Received: by 2002:a50:e006:: with SMTP id e6mr8219435edl.302.1632528468101; Fri, 24 Sep 2021 17:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632528468; cv=none; d=google.com; s=arc-20160816; b=LhbuP4UlzmDh2aRYx0fY1ZusUP25mi2s+Yte4pALmTnNweGUGSLvfBLcA5unXUJxGc OpL7yuM4O2yFVIfwvw4kL707TjZW8Tq8q5jcK6NJ9EA/5GZ8fcT2kTpD4H6Y4rlkRRQT WQUE0m7vYpvGYi8v0LAdOPib8bdcygRmMiea2eO0G0JUqSldDc4fT2hJJXT8wfWK9n+X NbqkcFtZY5TCLspB9svbtTL+YI3hOMLKn09aAWGLKx2xPsDdIlR4hcwfJX9T7T0/233v LO1JACd7RS2JQk5YIpzscl9wwmBqFjxfHnOiRyC5AMSdxgiu2M0PAMNek5dK3RvcQzoJ K3mQ== 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=Io2oolRwrQOpJUWvka+JVfALnOE720dEYxe2COcajmY=; b=pCkau8jICxJ2vyalyV88Xhau2hJvZT/nUoz4qtZ/pYRYW9z2s+MP9SloziC+IFWXhz fq921/NcvXtXt8mITwFjph78iTbfWnxB1MdhuxV6DqFizIYCjoXBul0wAU6OKKOZQi3Q 54DibldRTfSLrZhHt9h8T3ALHWWYGd8SR/liGEmeyqWIew2Rh69CieLBUWPPdao+V4pv NaLiIErMWP1DpsD5R6g5BruY2Rn/537SM0d42sb1r4LJ0jtMSK6ZW68MOwG2b3de6nDR 34irHvDtA1nJB7W/OEYfjRYNqTEVaVA+FhnDeO8+epUbxoDcr+YPvDt69dxSXOGnnTpB nDAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=d0Os5iTq; 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 n27si1534657ejl.747.2021.09.24.17.07.24; Fri, 24 Sep 2021 17:07:48 -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=desiato.20200630 header.b=d0Os5iTq; 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 S1346197AbhIXNfo (ORCPT + 99 others); Fri, 24 Sep 2021 09:35:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346678AbhIXNfP (ORCPT ); Fri, 24 Sep 2021 09:35:15 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA3EBC0610D2; Fri, 24 Sep 2021 06:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=Io2oolRwrQOpJUWvka+JVfALnOE720dEYxe2COcajmY=; b=d0Os5iTqtYDz3iOfjSNUDNZtIc cLL9qyj0M5q5WbzkXsWtR/+itD++6KgboyCTk07uJIliFpXsqMm4nD8fDbVjg8Ga2Ts8JZDwgvQQ5 NRVV9yiGDCTFmYcPhpmkDOStf0M/t2lQ7Dgc/vnpWir3RvrzmXeFuNrUJ8o0CYYSeY3/phUUFc4kB rnbdyQ58eZ7aub3jQsytJa0FJSxoPVtTEO/SS2/wfLISw7LwSKCXaXWpRx6oAi8TWD635YoihOkBR bOE4kb4lmBcFUYLvATFfYDQhKAeYst7VXGKebA/gAF4EouUJ1iC+Qhb+0t7V+HL+/xOkH10iyDpqW kI70V3LA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTlH6-005XRt-1O; Fri, 24 Sep 2021 13:30:00 +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 22ECD30026F; Fri, 24 Sep 2021 15:29:56 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DC4CF2C5DFD92; Fri, 24 Sep 2021 15:29:55 +0200 (CEST) Date: Fri, 24 Sep 2021 15:29:55 +0200 From: Peter Zijlstra To: Kees Cook Cc: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210923233105.4045080-1-keescook@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 04:31:05PM -0700, Kees Cook wrote: > This leaves kernel/sched/fair.c as the only user of get_wchan(). But > again, since this was broken for 4 years, was this profiling logic > actually doing anything useful? Unlikely, I proposed removing the whole kernel/profile.c thing a while back, but some people complained that it would make it 'hard' to profile early boot. IMO this not actually working right seems another argument for killing that too :-)