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=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_GIT 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 20DD2C28CC6 for ; Tue, 4 Jun 2019 23:23:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E031620866 for ; Tue, 4 Jun 2019 23:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559690618; bh=GA6AWIZ/drNkUqAwP/nG9DHIRKh7kxZE5uDCfLBiBLU=; h=From:To:Cc:Subject:Date:List-ID:From; b=kWgylIPxmHDi35HkPG9aFVVBLtlpCekp9AWlXiN+ojgtOwfBwKBdByPN6ZFIbl78y WkXdn4TTqB+DG4IihMTo0dh7+cGrjwBEYMCIxjniUnC+Sb8A55LX6cQKjkDL3LBfXx 24kHZ6zaQ+0diDi9eDl0/wdZG/i/9Dk5cds2XcZU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726527AbfFDXXg (ORCPT ); Tue, 4 Jun 2019 19:23:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:34162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727321AbfFDXXf (ORCPT ); Tue, 4 Jun 2019 19:23:35 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 1167D20859; Tue, 4 Jun 2019 23:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559690615; bh=GA6AWIZ/drNkUqAwP/nG9DHIRKh7kxZE5uDCfLBiBLU=; h=From:To:Cc:Subject:Date:From; b=Xkd850MSOxAqQuArNtFSMsAeSkLGPC9Ywjn66T6qfXEt4fCFKeRjmZSdf7aAjYeQo leM+xgqzvKHNZZxCF9Ppb5IULoeCBwUU4Mw+9ib1iK7omMcYkj+p7a/pfdpz2V7t62 LrvmLvWT/hwV1QpZp3RMCwZMuT/WZPn7//CkMBP8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Peter Zijlstra , Borislav Petkov , Josh Poimboeuf , Linus Torvalds , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH AUTOSEL 4.19 01/36] x86/uaccess, kcov: Disable stack protector Date: Tue, 4 Jun 2019 19:22:56 -0400 Message-Id: <20190604232333.7185-1-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Peter Zijlstra [ Upstream commit 40ea97290b08be2e038b31cbb33097d1145e8169 ] New tooling noticed this mishap: 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) Cc: Borislav Petkov Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/Makefile b/kernel/Makefile index 7a63d567fdb5..df5e3ca30acd 100644 --- 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) -- 2.20.1