Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp877340pxb; Thu, 5 Nov 2020 15:49:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPbKuLKWuVZZOgNWunbkP/QeBc+Zk2lhSvHyPmcmNFp6uS38kqzRQHCYs0lgpx83W1JuFY X-Received: by 2002:a05:6402:141:: with SMTP id s1mr5127388edu.87.1604620178730; Thu, 05 Nov 2020 15:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604620178; cv=none; d=google.com; s=arc-20160816; b=VhsD4SOyM4Vue0yjF/2lwkY7SAf2Rd0fiJ/pIETVXkFs2b9IQIyw+Kk8LOm1YKTg7W aPw+BfESl5/GRql8CBGLUIV8iAuAPQIaoJBs3DPTf1eErsID1WbWlOvyD46nVtoX7kfw J2GvZCF5Sn/bwebrxomaZrvsXlgMiwLxRa9HYVLOrRhi1y995JiWOJlOAKjVHh02vCBD unVzbCPtPr0o5kWRTJno1S3a8Ak8zvxMk81N70B+WDhbRX4wf9PuGFJ1bmtCFW3H+hxG xuGi65T0vtmvhXa7ZqrjhrUheIBcckC5PHG5IT6t3T3tF/sPvogiEPoBjuZ8hWJIRZmJ 2gpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=9hUZ8Zxe/fErBySQvIpoFXiS5PWKSYuXrBhg07qDl8A=; b=Xy5YFQr60YPh+j8ZqqiGXyQWZ1TA54txOMBcVM/VJWYJLZXvFgVi3g5BBsq/gyfIY9 kbc9uF45T3YK5GRuc5WMjkNZqwXM3EKFKI8s3dCmr7MFjrtAYLwlBPIYnrDRW+pMjkBE tCH7fWelHLGZR/tROzmnAcWbBdOkEGa4dlZ8jWwUGCihXdPDvuTG5LLZYkz+gJ6ivADi WEEcsLjLwPbr6SSGVu8zJSdqAlWWF1eIv18uC4x0be9f5o50C6G1FWRwyv1hUNUT4xtC 7LErNZEk5o5l5Wbl90ENRTX5sdg+RygT8uQfbDoY7tv2mPidiR+iTs9hlEGGE8OeTbjn E68A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oqOaUJ27; 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 v16si1812116ejf.28.2020.11.05.15.49.16; Thu, 05 Nov 2020 15:49:38 -0800 (PST) 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=default header.b=oqOaUJ27; 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 S1732910AbgKEXrl (ORCPT + 99 others); Thu, 5 Nov 2020 18:47:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:46062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732743AbgKEXr2 (ORCPT ); Thu, 5 Nov 2020 18:47:28 -0500 Received: from paulmck-ThinkPad-P72.home (50-39-104-11.bvtn.or.frontiernet.net [50.39.104.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F394520885; Thu, 5 Nov 2020 23:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604620048; bh=rNcDc0nqZb3mhX8p82fY0o843TlkCTSfcdWRyKKOYtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oqOaUJ27rSn/JntrufbKXmvGU7jM2SaKMTy4Wl63Atm1CS6oWlmtyRsAEPP609Y88 y8wZKEx0cBEf/LWR1LrLBL2LIrJoPFIiwNx6G76rVmTKN1RZHsKhrrhBN9KSh12yX+ UoeHEb+CQI9cyaCgE9GN/j5fMFHfptFj7clCLMY0= From: paulmck@kernel.org To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 17/28] torture: Force weak-hashed pointers on console log Date: Thu, 5 Nov 2020 15:47:08 -0800 Message-Id: <20201105234719.23307-17-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20201105234658.GA23142@paulmck-ThinkPad-P72> References: <20201105234658.GA23142@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Paul E. McKenney" Although the rcutorture scripting now deals correctly with full-up security-induced pointer obfuscation, it is still counter-productive for kernel hackers who are analyzing console output. This commit therefore sets the debug_boot_weak_hash kernel boot parameter, which enables printing of weak-hashed pointers for torture-test runs. Please note that this change applies only to runs initiated by the kvm.sh scripting. If you are instead using modprobe and rmmod, it is your responsibility to build and boot the underlying kernel to your taste. Please note further that this change does not result in a security hole in normal use. The rcutorture testing runs with a negligible userspace, no networking, and no user interaction. Besides which, there is no data of value that can be extracted from an rcutorture guest OS that could not also be extracted from the host that this guest is running on. Suggested-by: Anna-Maria Gleixner Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh index 51f3464..8266349 100644 --- a/tools/testing/selftests/rcutorture/bin/functions.sh +++ b/tools/testing/selftests/rcutorture/bin/functions.sh @@ -169,6 +169,7 @@ identify_qemu () { # Output arguments for the qemu "-append" string based on CPU type # and the TORTURE_QEMU_INTERACTIVE environment variable. identify_qemu_append () { + echo debug_boot_weak_hash local console=ttyS0 case "$1" in qemu-system-x86_64|qemu-system-i386) -- 2.9.5