From patchwork Fri Nov 22 11:26:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 11257893 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 72F1214DB for ; Fri, 22 Nov 2019 11:27:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3FE8920674 for ; Fri, 22 Nov 2019 11:27:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="i9iHbGZm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FE8920674 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 8DA0C6B04E1; Fri, 22 Nov 2019 06:27:21 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 88C636B04E2; Fri, 22 Nov 2019 06:27:21 -0500 (EST) 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 7083C6B04E3; Fri, 22 Nov 2019 06:27:21 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0038.hostedemail.com [216.40.44.38]) by kanga.kvack.org (Postfix) with ESMTP id 4DE296B04E1 for ; Fri, 22 Nov 2019 06:27:21 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 11B878249980 for ; Fri, 22 Nov 2019 11:27:21 +0000 (UTC) X-FDA: 76183687482.24.love65_5ecfe3f4bb5b X-Spam-Summary: 2,0,0,7a1953c9728484f2,d41d8cd98f00b204,3f8bxxqykcpyejgbcpemmejc.amkjglsv-kkityai.mpe@flex--glider.bounces.google.com,:cai@lca.pw:hch@lst.de:herbert@gondor.apana.org.au:harry.wentland@amd.com:vegard.nossum@oracle.com:dvyukov@google.com::glider@google.com:viro@zeniv.linux.org.uk:adilger.kernel@dilger.ca:akpm@linux-foundation.org:andreyknvl@google.com: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:elver@google.com:mark.rutland@arm.com:martin.petersen@oracle.com:schwidefsky@de.ibm.com:willy@infradead.org:mst@redhat.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@li X-HE-Tag: love65_5ecfe3f4bb5b X-Filterd-Recvd-Size: 4812 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Fri, 22 Nov 2019 11:27:20 +0000 (UTC) Received: by mail-wr1-f73.google.com with SMTP id q12so3773798wrr.3 for ; Fri, 22 Nov 2019 03:27:20 -0800 (PST) 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=nooDDbGkrbjrg52p6YInBCCmVxy43zA1gRp17djUzVk=; b=i9iHbGZmmoyNadcaorEoceKlhWPw17glz3m6JrERriplUVaDVd9YDrBMUThYSQEDv9 +nNO0D9fbzLO+XHW0NsSMI8zVbA0yD+/6Xx8zTBbRpiJkZrzH9IyacGTNO1IqobGgO/X RboFRMFjg7OIPX+XyDunLCilNN3hQLBK2HPFgF6o2mytcHPNZM9xDLW3XHNp4oX0NZgE vCRObunffiIbeAnMZ4EBZsymW4CMLdi978p3A+hszaZs5+kJnCd4JqL7ePEvSSvKo3Pg eHCS7/IvOjIA0EA38KUMUnoA9+bTWm+frv1MSGBpUelG4TrQDKmGeA64z8NwBkypNMpe 9wxg== 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=nooDDbGkrbjrg52p6YInBCCmVxy43zA1gRp17djUzVk=; b=blik+ZzUXXtY1DTWj2dqQSyILL2Ss5KbA6DMR4Gi6pUm7+mmg0UWb5k13SvYH2EBEB GNiHe9Nzj8unh13+nXN1MBi0TePTf4k24nyeBYg+5Xwe7EYoemNppDo6J7g967gM2sF0 14iupwJPkPsvaXPeydREtmoqqUshwJtqOoLxn+hkImQJjlJeaxIjNaWLxqA9Pyhdw5pT AnjhRwR+0L6SP42OiEeEme4ajcrwntJQu03Rd+gMtefduRLc9gpN3E/AymwhFfLa5jFS RUzqJ+mNBnoAQw1h48EaxS3+W6Otz6eg/loRXsqI9mNGUevU85Z7zLmyEbnzNT6kKiow ciCA== X-Gm-Message-State: APjAAAXpBdbBpxag8q+01MhFTHv6I19mnV+CHORGLYnySajkv6OznytA GTFL/NGxZTSKGW1VSdbLQe489L3uE10= X-Google-Smtp-Source: APXvYqzE2BeO2Srhq+UXOcTT9PQcWIeq2Im6Jid0OfXct7+DaInBXNnids5rbvANTumJIlZBsr0SVzJsk3E= X-Received: by 2002:a05:6000:104:: with SMTP id o4mr16639217wrx.309.1574422039227; Fri, 22 Nov 2019 03:27:19 -0800 (PST) Date: Fri, 22 Nov 2019 12:26:02 +0100 In-Reply-To: <20191122112621.204798-1-glider@google.com> Message-Id: <20191122112621.204798-18-glider@google.com> Mime-Version: 1.0 References: <20191122112621.204798-1-glider@google.com> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog Subject: [PATCH RFC v3 17/36] kmsan: x86: disable UNWINDER_ORC under KMSAN From: glider@google.com To: Qian Cai , Christoph Hellwig , Herbert Xu , Harry Wentland , Vegard Nossum , Dmitry Vyukov , linux-mm@kvack.org Cc: glider@google.com, viro@zeniv.linux.org.uk, adilger.kernel@dilger.ca, akpm@linux-foundation.org, andreyknvl@google.com, 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, elver@google.com, mark.rutland@arm.com, martin.petersen@oracle.com, schwidefsky@de.ibm.com, willy@infradead.org, mst@redhat.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: 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 bf9cd83de777..db3cd6147829 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -292,6 +292,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