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=-6.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 A8BDDC46466 for ; Fri, 2 Oct 2020 22:15:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 64FFB21481 for ; Fri, 2 Oct 2020 22:15:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="P86qJ26z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725772AbgJBWPd (ORCPT ); Fri, 2 Oct 2020 18:15:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJBWPd (ORCPT ); Fri, 2 Oct 2020 18:15:33 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2090C0613E2 for ; Fri, 2 Oct 2020 15:15:31 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id q18so1733415pgk.7 for ; Fri, 02 Oct 2020 15:15:31 -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:mime-version :content-transfer-encoding; bh=W38dVAPuerCLRPng7jlZI5vlQvHBD4rfwSORzTtYXKQ=; b=P86qJ26zBTlGzUNxp4OC0MsOBNi/tpsFSeK6wcegzOcCeUa3XqFl/Ab45EktTGWVmT WDJU25a6cT72PvQXY3i14T9zxSdj3mDUKOZQXJVKxVLk8THyKRo9cDtmvJ0w60PzSF8D qjFvoco0nsdU5F3wyT0KnCJwALvIBvnmJCpY0= 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:mime-version :content-transfer-encoding; bh=W38dVAPuerCLRPng7jlZI5vlQvHBD4rfwSORzTtYXKQ=; b=g+21bXVsRQEtAgZDRsyW6gvC6fGoGZkgx2B7KxTs5aYaKxY/FEc4C9QPjIiVTgcQa4 6PUBZ6UbUN1ajDMV2hSIKnRqfkJ2jbAUL8FFAKGr7S2iJjfnpFrCjoPWqTAT8Mye4jgX uSMg8xviR+huabCzwEzXVJwheNUB6erUQd12DMfBoD/u++B8SAnTVmgZXpxY62pDAjjG DY33u2kmb129ao7BfhPJmBPRqUoIvb4pfwEXQdmv3l6K+dT0AmFC2ttGU/QL5/AhfFtV 9VveFdHfphLj6L4D7Kld9lsZdGisjQh0B6kfbmvaosvF7MKPq2rUreWbuoj5mtTPMMA2 wmqA== X-Gm-Message-State: AOAM531hBQMenq1+XZljrvRDQygWVB5sEVKRmBOJGRgYOs+vvfqgjHm+ JG+b5D8ObG35QJdng/xfrNBt0Q== X-Google-Smtp-Source: ABdhPJwkAsUpzwleQKAEzT+p6nflOsz5Rf8YkJbRfNibKIrcjJp5Zw/DCWLxEksgkxLbLFyq+v6hqA== X-Received: by 2002:a63:511d:: with SMTP id f29mr4133234pgb.11.1601676930990; Fri, 02 Oct 2020 15:15:30 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id q16sm3210133pfj.117.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 0/4] Clean up UBSAN Makefile Date: Fri, 2 Oct 2020 15:15:23 -0700 Message-Id: <20201002221527.177500-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Hi, This series attempts to address the issues seen with UBSAN's object-size sanitizer causing problems under GCC. In the process, the Kconfig and Makefile are refactored to do all the cc-option calls in the Kconfig. Additionally start to detangle -Wno-maybe-uninitialized, and disable UBSAN_TRAP under COMPILE_TEST for wider build coverage. Thanks! -Kees Kees Cook (4): ubsan: Move cc-option tests into Kconfig ubsan: Disable object-size sanitizer under GCC ubsan: Force -Wno-maybe-uninitialized only for GCC ubsan: Disable UBSAN_TRAP for all*config lib/Kconfig.ubsan | 58 +++++++++++++++++++++++++++++++++++++++++- scripts/Makefile.ubsan | 50 +++++++++++++----------------------- 2 files changed, 74 insertions(+), 34 deletions(-) -- 2.25.1