Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10198449imu; Wed, 5 Dec 2018 18:27:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/VPqOO06o9Bkg1DFgwoA0yZv6fj4lkXkAYv0Uj9Flm4qfRPIVANYs63lw0EkRCT00lO0e+S X-Received: by 2002:a62:5d0c:: with SMTP id r12mr27731890pfb.0.1544063279084; Wed, 05 Dec 2018 18:27:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544063279; cv=none; d=google.com; s=arc-20160816; b=liPzd9OkUp7WKNxRWxUJf0fGObNP5BOOTv9jyhaw0eSfKwTELt8z0tFSn5jMNwjf4e KlQDZaWIjFHP0jM+ikf/VDcLNy9z1871cYJTQI4lu7iK3TDH3drgxx7UNNyl3MfCy/cC 1Pj2LTNokkH5eK7R0ItzzvZdbLJTTZIeMDQxUYXXwAEHYwgMP5ftTVkgbE0TMPiJrD7Z 9qrBLJTujmFlkomYC8hIOS8ZdGKz9l8iZXJsIylgPGJbIDx9jfnS3ZsQYziUfOHFvU0m gQr0M7E14IjLeBTxay4gaWYbQB/S34Fl2MGZDHTD/pw+66Nk+OqcR8cBk3nKgS8BOVYz fTSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=kh9j9O7XPYD8NWRZYkxjymRwCijB63aWhKaGLJ+5Zdc=; b=FXVS3hnrRWjm75U0xEbx6iReKqcu6XwrcuQCZuwiWKXkuqtYttEwCUfKHY/Eirot76 uGz369gXJVljtuH8yxd+6jO9ntYWOl+fYc08H3jVb/tksMyyHAFOx0JgiWAHEHGMQZrO z5e6V1Yffz5KidRyh2X1mJyy82KVwHQTFre+cW02x9RnArAstZe5ziEAbLVJxcYsG/Xt gFBB3+VKpSwbKhPTQvlOPOmrdQY9FaCDScYTw9I34yX1YNIgtc8lRuk5YfYCK66GOo2y 2uccvoz2o/8uz/kt3wt6UlY+o3Tl4LC0nqmtrpzU3GaLdZsF7n5wglcoqknhYfSegIDm euzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si20904526pfe.74.2018.12.05.18.27.42; Wed, 05 Dec 2018 18:27:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728489AbeLFC0y (ORCPT + 99 others); Wed, 5 Dec 2018 21:26:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:48366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbeLFC0y (ORCPT ); Wed, 5 Dec 2018 21:26:54 -0500 Received: from vmware.local.home (unknown [184.48.106.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A27B20700; Thu, 6 Dec 2018 02:26:53 +0000 (UTC) Date: Wed, 5 Dec 2018 21:26:51 -0500 From: Steven Rostedt To: Kees Cook Cc: Anders Roxell , Ingo Molnar , Catalin Marinas , Will Deacon , LKML , linux-arm-kernel , Arnd Bergmann Subject: Re: [PATCH 1/3] stackleak: mark stackleak_track_stack() as notrace Message-ID: <20181205212651.488d9cd4@vmware.local.home> In-Reply-To: References: <20181130150859.27366-1-anders.roxell@linaro.org> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Dec 2018 17:08:34 -0800 Kees Cook wrote: > > diff --git a/kernel/stackleak.c b/kernel/stackleak.c > > index e42892926244..5de3bf596dd7 100644 > > --- a/kernel/stackleak.c > > +++ b/kernel/stackleak.c > > @@ -102,7 +102,7 @@ asmlinkage void stackleak_erase(void) > > current->lowest_stack = current_top_of_stack() - THREAD_SIZE/64; > > } > > > > -void __used stackleak_track_stack(void) > > +void __used notrace stackleak_track_stack(void) > > { > > /* > > * N.B. stackleak_erase() fills the kernel stack with the poison value, > > -- > > 2.19.2 > > > > Acked-by: Kees Cook > > Steven, I assume this series going via your tree? ?? A notrace addition doesn't make it mine. I added changes for the cond_resched in a different patch series that I'll pull in (they are independent from this). I'll Ack the Makefile change in the tracing directory, but the rest belongs to others. -- Steve