Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp970779pxb; Thu, 21 Oct 2021 13:05:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxhm0MIt6g5OaKcya2AuGu/anbezdvuacxkEHjpZtoNUOvaPV2wDYir8GHRTpW86Ku6gdp X-Received: by 2002:a17:90b:78d:: with SMTP id l13mr9238050pjz.37.1634846754740; Thu, 21 Oct 2021 13:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634846754; cv=none; d=google.com; s=arc-20160816; b=XITgH0iEXSFcItz2LmCaYLSaSTMfDjmv9AF3w03ZCSYfQS1TJD1XMYlWvjjNc6YfK5 lvfZ+mhYMmctQk1mIPQMuWfCMRfbmfp0CP3TqfsXPlzbwbD+2MCoysl25Cm41i2dufIJ dwbQt5dW38T2Q9ltm7KXfIvuHKnxcJYkPn7GEO70cscsjR35ggpbX+EcWlqfBtkqQNh1 A9e7wMrBmEHQwjeCFy9FS1c/t480I2fGO71uUu54RSWs0Rg5FdybaVBsTytHwiZ6sJcF RIwFQ7P+DFFX038FBBeWQjOHdeaYodYSy/YYn95MGYFUesJvCNllWDkQNGOeeNYP255E ZePw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature; bh=6wcMAPIuLrajjhebGQXqdPC04sfh6LeM6s1G6IwbmDo=; b=WbLf3WQrXNRdIXu3CFHykBtEO/03VELrsrOkHk3A90qY2fTzn1RafkGabOaQ+TXObg wwUqrMPQ8v286P/mGKJtNtiBZnd6DRfBp8gYLUJZtRc/miPqb7OioDCdsQAp6V2bHz1x NRkRLyUsQE8XTR7DTZGkmOF3HFHF/iV7FjlEh0z+UakIAk4QHHWZ24SUj2NI4g8/veBK m5J4MX+Gx9pVnU4YvWlnV2AIXtRCEu5L7RsBTVuJkL/pxDGMPMhSe0oiqE8I1WcDVTHF 7qm3h6ms4kV757AGjs+FGJ3RHeW0i8XrRQ1V8m6HZbniRLBcJCcWDTLpFolTBCv7etZm 06Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UF0Nep0X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x191si8165235pgd.621.2021.10.21.13.05.40; Thu, 21 Oct 2021 13:05:54 -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=@kernel.org header.s=k20201202 header.b=UF0Nep0X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231934AbhJUUGN (ORCPT + 99 others); Thu, 21 Oct 2021 16:06:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:44782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbhJUUGM (ORCPT ); Thu, 21 Oct 2021 16:06:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3980561251; Thu, 21 Oct 2021 20:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634846635; bh=6wcMAPIuLrajjhebGQXqdPC04sfh6LeM6s1G6IwbmDo=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=UF0Nep0XEdBF0LM9GoeKiRNKd/wpiEdDnvXUuZywx0P5uZ1fnDqYqdcYTQ0N5qeGJ DHfkYAV/ch05bpxv5c+gmwzQqDLf0umodqdHJaXK4kmjFDGOau6dHF2dTS7jeUGKJb 5Txmj0ytHTJTJDLMqSmhhPskP/y6NI88ehRkLJdI7DG/NPfnqshhNnoEt/T4q3O+zh mU5IX0kutJ0dQmTnys1NHJyp0Dy3EgWZOZa1kldziNr2ZmTapOWOQ30s4D8Odza2YY 0iotDf57X6QJHzwutdQS8As4whQZY3tg2dJWR8AN8E/LGZtceOFngpOc6FHn6Fwn7W fQKtx9rDY0VgQ== Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 4DC3E27C0054; Thu, 21 Oct 2021 16:03:54 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute6.internal (MEProxy); Thu, 21 Oct 2021 16:03:54 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddviedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehn ugihucfnuhhtohhmihhrshhkihdfuceolhhuthhosehkvghrnhgvlhdrohhrgheqnecugg ftrfgrthhtvghrnheptdfhheettddvtedvtedugfeuuefhtddugedvleevleefvdetleff gfefvdekgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheprghnugihodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeiudek heeifedvqddvieefudeiiedtkedqlhhuthhopeepkhgvrhhnvghlrdhorhhgsehlihhnuh igrdhluhhtohdruhhs X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id D117521E006E; Thu, 21 Oct 2021 16:03:53 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1369-gd055fb5e7c-fm-20211018.002-gd055fb5e Mime-Version: 1.0 Message-Id: In-Reply-To: <20211008235504.2957528-1-keescook@chromium.org> References: <20211008235504.2957528-1-keescook@chromium.org> Date: Thu, 21 Oct 2021 13:03:33 -0700 From: "Andy Lutomirski" To: "Kees Cook" , "Peter Zijlstra (Intel)" Cc: "Mark Rutland" , "Shuah Khan" , "Alexey Dobriyan" , linux-kselftest@vger.kernel.org, "Josh Poimboeuf" , "Andrew Morton" , "Alexey Gladkov" , "Jann Horn" , "Vito Caputo" , "Ingo Molnar" , juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, "Steven Rostedt" , "Ben Segall" , mgorman@suse.de, bristot@redhat.com, "Christian Brauner" , amistry@google.com, Kenta.Tada@sony.com, legion@kernel.org, michael.weiss@aisec.fraunhofer.de, "Michal Hocko" , deller@gmx.de, "Qi Zheng" , me@tobin.cc, tycho@tycho.pizza, "Thomas Gleixner" , "Borislav Petkov" , "H. Peter Anvin" , "Jens Axboe" , metze@samba.org, "Lai Jiangshan" , "Dave Hansen" , "Eric W. Biederman" , ohoono.kwon@samsung.com, kaleshsingh@google.com, yifeifz2@illinois.edu, linux-arch@vger.kernel.org, vgupta@kernel.org, "Russell King (Oracle)" , "Will Deacon" , guoren@kernel.org, bcain@codeaurora.org, monstr@monstr.eu, tsbogend@alpha.franken.de, nickhu@andestech.com, jonas@southpole.se, "Michael Ellerman" , "Paul Walmsley" , hca@linux.ibm.com, ysato@users.sourceforge.jp, davem@davemloft.net, chris@zankel.net, "Linux Kernel Mailing List" , linux-fsdevel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] selftests: proc: Make sure wchan works when it exists Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 8, 2021, at 4:55 PM, Kees Cook wrote: > This makes sure that wchan contains a sensible symbol when a process is > blocked. Specifically this calls the sleep() syscall, and expects the > architecture to have called schedule() from a function that has "sleep" > somewhere in its name. For example, on the architectures I tested > (x86_64, arm64, arm, mips, and powerpc) this is "hrtimer_nanosleep": Is this really better than admitting that the whole mechanism is nonsense and disabling it? We could have a fixed string for each task state and call it a day.