From patchwork Wed Mar 25 16:12:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 11458261 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6307F14B4 for ; Wed, 25 Mar 2020 16:13:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3167A20772 for ; Wed, 25 Mar 2020 16:13:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="d7d8A0cu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3167A20772 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4BED96B0075; Wed, 25 Mar 2020 12:13:46 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 495A96B0078; Wed, 25 Mar 2020 12:13:46 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 385276B007B; Wed, 25 Mar 2020 12:13:46 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0109.hostedemail.com [216.40.44.109]) by kanga.kvack.org (Postfix) with ESMTP id 1E5E56B0075 for ; Wed, 25 Mar 2020 12:13:46 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id EE4388248047 for ; Wed, 25 Mar 2020 16:13:45 +0000 (UTC) X-FDA: 76634380452.15.scene65_7825b046f554e X-Spam-Summary: 2,0,0,3384fe7eda7e70f6,d41d8cd98f00b204,3n4n7xgykccyinkfgtiqqing.eqonkpwz-oomxcem.qti@flex--glider.bounces.google.com,,RULES_HIT:41:152:355:379:541:800:901:960:966:967:973:988:989:1260:1263:1277:1313:1314:1345:1359:1431:1437:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2525:2559:2564:2682:2685:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3152:3352:3865:3866:3867:3871:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4385:5007:6261:6653:6742:6743:8599:9025:9388:9969:10004:10049:10400:11232:11658:11914:12043:12048:12296:12297:12438:12555:12895:13069:13311:13357:13846:14096:14097:14181:14394:14659:14721:21080:21365:21444:21451:21627:30054:30062:30064,0,RBL:209.85.221.73:@flex--glider.bounces.google.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: scene65_7825b046f554e X-Filterd-Recvd-Size: 4944 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Wed, 25 Mar 2020 16:13:45 +0000 (UTC) Received: by mail-wr1-f73.google.com with SMTP id h17so1362192wru.16 for ; Wed, 25 Mar 2020 09:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=a6lHJAJCHxoOmSQhCTPS1DgBjSD3nvhbZodQXjKaNuQ=; b=d7d8A0cuZhPtkeys6IyZaGOF5WSWCgoqzw2jHVrkYw0ScvZG5MWiF9LfUVPHNePfT4 QgSj8/J4IfwhqGGKiXdorScuzV+hxaMsWtS9vLBM8Ifh7SyiXqTqp32RA+OH+LcKE2lx ug0L3TPWDd/UT59oG65cLmo5yQjht3JdRW+LtrAIrGqXT0iZpIsrRMVGw16EN9UbCohM sFq3ldoXH+hKhzvTkXS8lvO+xW6k6teFPMlr3/K+0czh9jZDU8w7EA32E9SVk/knPjLK +pyF6M0vqU/L/CfW9S5okNhrd6u3JKSyN3NnmbZaCGUqUJU8NdXhySlx9Y6XErjTv+h2 agsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=a6lHJAJCHxoOmSQhCTPS1DgBjSD3nvhbZodQXjKaNuQ=; b=gy20+WpaEAPfveCNrPTox4uVtAIR14HlblmFb9wZZwQDYgn9YesxZXtX6CCNNzp49J KTR4d5uiLS09M6bY9EJON8UDVcCvtJkCyq50P6e3ryjhqtIGBcmOoDgzuld7GXaaCQ0x hEVn/CnuNNpOsbXMl4ZjA5igXb4LvCJREuiJtsRN5/PlrV0ug9OTHsqAOh0PAjAqbAi2 1zjbS/YQVHlSBTRum0vILM9OkLVQNrcDfci930dPiuX4Fqv71cElOZOHKeJjDHoUPWEC pkva8pBfODaWqNzmIh4S4Wx3P4LDYTI92pWt33+ttPjxFwmqg4tHuYQhc/Ziu2dcNEef j6UQ== X-Gm-Message-State: ANhLgQ368yNZgMz7e6s5/UWQajrDraaV7VtSwBbXViB11ZhCpeg31zTk ZigiQrGNfsDZJ/eT3rUWsXfHOAXOUcQ= X-Google-Smtp-Source: ADFU+vsGii7ajATDXcKphJdUT0kfQ8qwY5S5O2byjMEreXm3Lv1x9FPJZSyz7euci0lrCHEri3L8N/i5GVA= X-Received: by 2002:a05:6000:114f:: with SMTP id d15mr4368752wrx.143.1585152823758; Wed, 25 Mar 2020 09:13:43 -0700 (PDT) Date: Wed, 25 Mar 2020 17:12:26 +0100 In-Reply-To: <20200325161249.55095-1-glider@google.com> Message-Id: <20200325161249.55095-16-glider@google.com> Mime-Version: 1.0 References: <20200325161249.55095-1-glider@google.com> X-Mailer: git-send-email 2.25.1.696.g5e7596f4ac-goog Subject: [PATCH v5 15/38] kmsan: x86: disable UNWINDER_ORC under KMSAN From: glider@google.com To: Qian Cai , Christoph Hellwig , Herbert Xu , Harry Wentland , Vegard Nossum , Dmitry Vyukov , Marco Elver , Andrey Konovalov , linux-mm@kvack.org Cc: glider@google.com, viro@zeniv.linux.org.uk, adilger.kernel@dilger.ca, akpm@linux-foundation.org, aryabinin@virtuozzo.com, luto@kernel.org, ard.biesheuvel@linaro.org, arnd@arndb.de, hch@infradead.org, darrick.wong@oracle.com, davem@davemloft.net, dmitry.torokhov@gmail.com, ebiggers@google.com, edumazet@google.com, ericvh@gmail.com, gregkh@linuxfoundation.org, iii@linux.ibm.com, mingo@elte.hu, jasowang@redhat.com, axboe@kernel.dk, m.szyprowski@samsung.com, mark.rutland@arm.com, martin.petersen@oracle.com, schwidefsky@de.ibm.com, willy@infradead.org, mst@redhat.com, mhocko@suse.com, monstr@monstr.eu, pmladek@suse.com, rdunlap@infradead.org, robin.murphy@arm.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org, tiwai@suse.com, tytso@mit.edu, tglx@linutronix.de, gor@linux.ibm.com, wsa@the-dreams.de X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: KMSAN doesn't currently support UNWINDER_ORC, causing the kernel to freeze at boot time. See http://github.com/google/kmsan/issues/48. Signed-off-by: Alexander Potapenko Cc: Qian Cai Cc: Christoph Hellwig Cc: Herbert Xu Cc: Harry Wentland Cc: Vegard Nossum Cc: Dmitry Vyukov Cc: Marco Elver Cc: Andrey Konovalov Cc: linux-mm@kvack.org --- This patch is part of "kmsan: Kconfig changes to disable options incompatible with KMSAN", which was split into smaller pieces. Change-Id: I9cb6ebbaeb9a38e9e1d015c68ab77d40420a7ad0 --- arch/x86/Kconfig.debug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 2e74690b028a5..ad71eb2a416ec 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -276,6 +276,9 @@ choice config UNWINDER_ORC bool "ORC unwinder" depends on X86_64 + # KMSAN doesn't support UNWINDER_ORC yet, + # see https://github.com/google/kmsan/issues/48. + depends on !KMSAN select STACK_VALIDATION ---help--- This option enables the ORC (Oops Rewind Capability) unwinder for