Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1643343pxk; Fri, 2 Oct 2020 15:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXd89rDbw8DFHNhOZ+m7SShe9JT1AOfoDmVGyEiC7ELuZ3xnjoEuAqrkHiB558E8wxZhqZ X-Received: by 2002:a17:906:3e48:: with SMTP id t8mr4229061eji.104.1601677134454; Fri, 02 Oct 2020 15:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601677134; cv=none; d=google.com; s=arc-20160816; b=TYD1qidsPjdhu/TFmiEtaQso+vDHslYYIOrsLiTxDZ9mlCf0p3YTTB4oR6bsiplLn+ uxX5eRHtjSNWPRo3gAU207B7IqQlucleMnk/fEAD6kebxYIHDtl/RteH1uIvBR+E4Z3q 96QTa6JJV1svM4/TxrXElZqCcK2LFf04lfwxel2u7ucly+fAEWlkcg7VcQYGZ+SWcFZI 7/TKdA6FC0vK8+64k1FswGZg9C4XnXcPcAkn5Fg0L2In9eaf5XdWAIhzFN8ah4FPPqBl s4ZHsQvVvMbeXYpP91H4e4tvmG+uoUSrHLoXo9hhxuIXS5y/wMPhDgm5v7stFr/aDuvq vC5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/J1gHtjcOOv6Rq1ls75T0pkphOgixxdtxsRzhxRApII=; b=euMwjvXQ5SW632VbIizUNqGdmsPeoHCA2BSBhupl6uepH3dpzhFJj/beKN8Sz4vlfg iz5zBYpkfRJL6SYvB3l9iEGThQB+0xZkGRfki0aUeUeQiPsU8/Y2obLefaU+tQdB39xn FyL6LwLjUotANJAN2AT4F8KOh1M6A9WGa2CO65vrjYHUfZ97ka5qwytC17JDF7UTLp7I SEwvkKyep+Fa1L+7lnFBTGve1LOYgwdohm8sXKm26ZGJDfa3XYAbfez2h7rWfFZiPT3g 66le6ra4yxq8rgRbopTWwYZdh7jrZ9zIoc2bbgTSkezEKd8uZaneEBTJpYBxsWMKhT9g VM2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DhD8t5kr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si2007171edk.57.2020.10.02.15.18.32; Fri, 02 Oct 2020 15:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DhD8t5kr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725789AbgJBWPi (ORCPT + 99 others); Fri, 2 Oct 2020 18:15:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJBWPe (ORCPT ); Fri, 2 Oct 2020 18:15:34 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD85EC0613E3 for ; Fri, 2 Oct 2020 15:15:33 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id b17so1743649pji.1 for ; Fri, 02 Oct 2020 15:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/J1gHtjcOOv6Rq1ls75T0pkphOgixxdtxsRzhxRApII=; b=DhD8t5kr8ElFUdmH3JdVP9GXM33yLmm67FT7fIl5wwRBQKJJ/2B8l4IoqTbHRe71Lm rDMxMTHC1vGlbvnJqy//diKkTio5j2dEzjhWQuYbgIY6As/lRsNAcxn35knW+xPcOyUk Osj4zkWGzG57f/iA9OCnsuvHzDqlOO1JFlFDU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/J1gHtjcOOv6Rq1ls75T0pkphOgixxdtxsRzhxRApII=; b=cGzIRFKolJ8F4qHWqiZaMS81vuzH6z9j4jtCRRT5tUTfmT/8OiLzjp9sUBY2F6rtlt OSx8nTEZYhZz4LzYDRoo+tVWOLuZp2U7fIxmToxOLqqGS8NWe44vGzi1CW2opwnBYXhl 5Bq0XMCxAeR3tMAAL7wwAZe2Bhwco/Eps2pQBdvdjDzI7Kr31EGFdsdejgVdkwjqW3sL X0Q+GQpaSFvGR3j6rwSLmaj9Isba+YiIBj+MIzD31ml1y/C+eVnxqWlnxJVYe+9ouF9D oUlHn7Zk6PpzItjzijc1jS7+klWovF8RKM4kdbmPK1sBNGSSl9qsbhtDJNoXqq7TXSzD f+sg== X-Gm-Message-State: AOAM5315ApqIAtedgaFb9NBmPeCPDxMc5n2oyK8QZA4Np49KLK03uMEa fKf508WvXgZm8NhYtN4DXgOCmw== X-Received: by 2002:a17:90a:800c:: with SMTP id b12mr4837503pjn.179.1601676933444; Fri, 02 Oct 2020 15:15:33 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id bt13sm2640065pjb.23.2020.10.02.15.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 15:15:29 -0700 (PDT) From: Kees Cook To: Andrew Morton Cc: Kees Cook , Linus Torvalds , Ard Biesheuvel , Arnd Bergmann , Masahiro Yamada , Michal Marek , Nathan Chancellor , Nick Desaulniers , Marco Elver , Randy Dunlap , Dmitry Vyukov , George Popescu , Herbert Xu , Peter Oberparleiter , Andrey Ryabinin , clang-built-linux@googlegroups.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] ubsan: Disable UBSAN_TRAP for all*config Date: Fri, 2 Oct 2020 15:15:27 -0700 Message-Id: <20201002221527.177500-5-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201002221527.177500-1-keescook@chromium.org> References: <20201002221527.177500-1-keescook@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Doing all*config builds attempts build as much as possible. UBSAN_TRAP effectively short-circuits lib/usban.c, so it should be disabled for COMPILE_TEST so that the lib/ubsan.c code gets built. Signed-off-by: Kees Cook --- lib/Kconfig.ubsan | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 1fc07f936e06..b5b9da0b635a 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -14,6 +14,7 @@ if UBSAN config UBSAN_TRAP bool "On Sanitizer warnings, abort the running kernel code" + depends on !COMPILE_TEST depends on $(cc-option, -fsanitize-undefined-trap-on-error) help Building kernels with Sanitizer features enabled tends to grow -- 2.25.1