Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp485180pxb; Wed, 29 Sep 2021 03:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKAxr5EV0qTa6s29ALHwNC5TFNz+OvaOMRzM+Raf0yDgHb5QWqrmUh1RJZF6Y+HpxHHGIc X-Received: by 2002:a63:e916:: with SMTP id i22mr8972157pgh.76.1632912152359; Wed, 29 Sep 2021 03:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632912152; cv=none; d=google.com; s=arc-20160816; b=WcQHlmKwBkKfzRYPUj8h63XCiCuev2zMtoF7jLixTkTIOoMb6EW/IbcFVG8s19E0LT BrviJdfM9Dj6ALV632huizqsxey9exywE0ricx80ksjT2Ih0VWk/Ku+kkxH5oRLfMG0G b2N2vWpLqMFlyEYH8jzp57OdpjviAZsyBN4XPVhFwm5SKAy+xDdSj2O49+ziB2opPb9f FdDG7c/odjyi1nAdY7ogqqiOdMTs8isOg9uK0Qne54uk67V5Fctd6dXXtFT2JlodoJsR vzN0gZZWNAM2z7J1MUwpwpZsx4IE+pombV8z3PR6Mn/KUBl0WLneDQyeD7Y3p+CElQ5H AjZw== 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=4h+WjU1N5cfE4q4zvv/AkfkoROJ4yuJcSxv2qDwXp8A=; b=ZiWG3eXVoY2Yab2S9Ru+qgljAaQY+Gew+C+fU+psfDczoUZXkfR6aoTYnf+gcvE89p N5KqEAf6mzfZHMz3QHwnQBKTokFHJiICcjdgDiWRgF+HPg77mXsiQrcT2aAVX23prul7 dCWTqvZbMIt34dR2cfW21D9GkPmrKyI8se5swPcDYRFVGjZx+OA4I5P3eHkEJAgyG9xb SbIFoe79yIH6RB1vD2Gh1/7EcidhJYd0YMcsuVhWN3zEm1J4jLftQB4tcOx4zB7X30sg 8zcXdWUjA6DqPrnoPpcS7AZOHeiRoQRxdRYxwYTam1TF2J0pNUIe1HAxsOGSlkHalcGO rMPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=kjkV9U7j; 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 u1si2622032pgi.245.2021.09.29.03.42.18; Wed, 29 Sep 2021 03:42:32 -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=kjkV9U7j; 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 S244853AbhI2IxY (ORCPT + 99 others); Wed, 29 Sep 2021 04:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244928AbhI2IxW (ORCPT ); Wed, 29 Sep 2021 04:53:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D261DC06161C; Wed, 29 Sep 2021 01:51: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=4h+WjU1N5cfE4q4zvv/AkfkoROJ4yuJcSxv2qDwXp8A=; b=kjkV9U7jjvkuZx1HNd22gm1vKE WJuWv/Cm7z0my16pQVbeeJ3tdwmYXoiSKRBGaGsnu598GyDjltR5gy+uhDOcRr9h4VEU0tKZfYi3Y z13Vgs0pTjPvMDVPpP7QU0zP96mG1ALAauLu/0Mn0hTJYsO8yFTJsCMhwPC0TA7NsgPEVOP3BhskQ 6JOaDnAd1vPdGokansJgZ4bfuF6M6xgSLbeBzReCnp4+xp3KzWMCgT1W6UMK98XjLukDYECtfVRio DBMO8eMtj+LsUQlmD9+H8fCgqhoZS4Da2KCuQm3s0IEh8XlNjE0TC6F7HESXdXgsx020mlebk38zD pjPm9fVQ==; 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 1mVVGq-00Bf4M-DZ; Wed, 29 Sep 2021 08:49:04 +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 E67F230023F; Wed, 29 Sep 2021 10:48:53 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C22632DC92D07; Wed, 29 Sep 2021 10:48:53 +0200 (CEST) Date: Wed, 29 Sep 2021 10:48:53 +0200 From: Peter Zijlstra To: Mark Rutland Cc: Kees Cook , Vito Caputo , Jann Horn , Thomas Gleixner , Josh Poimboeuf , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Jens Axboe , 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> <20210923234917.pqrxwoq7yqnvfpwu@shells.gnugeneration.com> <20210924002230.sijoedia65hf5bj7@shells.gnugeneration.com> <202109231814.FD09DBAD3@keescook> <20210924135424.GA33573@C02TD0UTHF1T.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210924135424.GA33573@C02TD0UTHF1T.local> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 24, 2021 at 02:54:24PM +0100, Mark Rutland wrote: > We could instead have the scheduler entrypoints snapshot their caller > into a field in task_struct. If there are sufficiently few callers, that > could be an inline wrapper that passes a __func__ string. Otherwise, we > still need to symbolize. I strongly dislike that option, we'd make the scheduler slower for something that's typically unused. The 3 people actually using wchan should pay the cost of obtaining the data, not everybody all the time.