From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE151C433F5 for ; Wed, 29 Sep 2021 08:51:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C03F1613A6 for ; Wed, 29 Sep 2021 08:51:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244896AbhI2IxZ (ORCPT ); Wed, 29 Sep 2021 04:53:25 -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.