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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30DAEC10F00 for ; Mon, 18 Mar 2019 15:53:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC85E2087E for ; Mon, 18 Mar 2019 15:53:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="xsCo5UBt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727507AbfCRPxC (ORCPT ); Mon, 18 Mar 2019 11:53:02 -0400 Received: from merlin.infradead.org ([205.233.59.134]:58714 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727623AbfCRPw6 (ORCPT ); Mon, 18 Mar 2019 11:52:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-Id:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dg+xjSA+LRT2XtI/UUARv7XSLKDNZVhdGqXM9ycBpRk=; b=xsCo5UBtKYTmlJDQ0UHCKHg3xv +1HRq5m9kHCsjt41qrpilH3OOv9GvQPHE+VjhWtP2lp+C+Xs+hQ9ul3mbqXjY95OQRKNfcTMQVwtR hrxgt+fSW9PkKpAIQKSbMxxPNZVgJALlNfTQr4fiK1cMkKoDcfovXTrai0y4uqXs0m5YHE/8pMLWs +JqpDRtlumBVPLyIdFBs86dXeEmc83z94kSg4IWR4tV4MMOy5CVGmx/DVkAHibcqSmVc1yOiFK7sA s5cl7usaPzmXJWkGBJ5vIf1gLFqf7I3LU61CHM6H3ne+weIkdlPWpkFV5tj+xyN6YFVfV6InD5G+C BgcYx1XQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5uZ9-0005V8-4Z; Mon, 18 Mar 2019 15:52:43 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id D092325E45D7C; Mon, 18 Mar 2019 16:52:38 +0100 (CET) Message-Id: <20190318155141.375120518@infradead.org> User-Agent: quilt/0.65 Date: Mon, 18 Mar 2019 16:38:56 +0100 From: Peter Zijlstra To: torvalds@linux-foundation.org, tglx@linutronix.de, hpa@zytor.com, julien.thierry@arm.com, will.deacon@arm.com, luto@amacapital.net, mingo@kernel.org, catalin.marinas@arm.com, james.morse@arm.com, valentin.schneider@arm.com, brgerst@gmail.com, jpoimboe@redhat.com, luto@kernel.org, bp@alien8.de, dvlasenk@redhat.com Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, dvyukov@google.com, rostedt@goodmis.org Subject: [PATCH 16/25] x86/uaccess,kcov: Disable stack protector References: <20190318153840.906404905@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kernel/kcov.o: warning: objtool: write_comp_data()+0x138: call to __stack_chk_fail() with UACCESS enabled kernel/kcov.o: warning: objtool: __sanitizer_cov_trace_pc()+0xd9: call to __stack_chk_fail() with UACCESS enabled All the other instrumentation (KASAN,UBSAN) also have stack protector disabled. Signed-off-by: Peter Zijlstra (Intel) --- kernel/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/kernel/Makefile +++ b/kernel/Makefile @@ -30,6 +30,7 @@ KCOV_INSTRUMENT_extable.o := n # Don't self-instrument. KCOV_INSTRUMENT_kcov.o := n KASAN_SANITIZE_kcov.o := n +CFLAGS_kcov.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) # cond_syscall is currently not LTO compatible CFLAGS_sys_ni.o = $(DISABLE_LTO)