Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1642548pxk; Fri, 2 Oct 2020 15:17:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEiuifB8s/EHMg/L3aWE8lLvxOZ0WogxOwJ9Ntgx3MpWRyc7y8yiopG5sMMfBM4xpaVupy X-Received: by 2002:a17:906:1081:: with SMTP id u1mr4175440eju.284.1601677034221; Fri, 02 Oct 2020 15:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601677034; cv=none; d=google.com; s=arc-20160816; b=mMEOHHMlKwUKMua9cK/YhYp7nFfmUlzw5z/AsdQqMdJgcDwV2/cRe9QtAQWiVGEivE x/JaTM60nh1FJ2YnIc/1ybLfsS2YN6RHf9wazHtr3m9f5Gs5NVFLWyF8X2dGmzgeoChr /m5xk353wKvRtmhli2h53DAUT9kybz0XbP5i/2rAVZufP7lmu98Pf3mW6ptXssuSh3eD M10WqV8X5bpOkYPOj2BLiM0EMmuL4pSCrfsKcrEFNMIulVnEbtp5HigukrBZdmKYXr4F vAL1bKc+R/2ltfFA9UMc0wnuTxw6+qGG+L8oLz8vpQDAskRXQ1BBGRmJCXlNkbRSW/Nk IclA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=W38dVAPuerCLRPng7jlZI5vlQvHBD4rfwSORzTtYXKQ=; b=xdsHvez7d5+vFikojkg5O0RKMoNRlEgNVfQTpAlrumGug/CtPega7llnXgS9TnWNq5 i3acXwmM2fihp7LUS0EvtFs3CMMrX5X6tEa829dzhb9Q1R45dePZPDHPZq+Bqz3w0Zu8 7rIhxPBRL4IlPlQfJ7Et/HzQf5lys2GIoPAuJOX34r50QR70wL2ksb/TMV3L61GNe/wE qkfjW6qO9jXUcc/FxAgHRZEpKLyjyzR7EthAi+R81Y28M/TKlCohnDqVxOeGEqvR4L1u +RRX4w9Bd7YjNYKq8zo09DF7pOVWrlQCojXWd3dakR8uaG5zUDBEWWXOlm7igd17XNaZ v3eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=P86qJ26z; 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 u2si1888745ejx.507.2020.10.02.15.16.51; Fri, 02 Oct 2020 15:17:14 -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=P86qJ26z; 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 S1725616AbgJBWPc (ORCPT + 99 others); Fri, 2 Oct 2020 18:15:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJBWPb (ORCPT ); Fri, 2 Oct 2020 18:15:31 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB230C0613D0 for ; Fri, 2 Oct 2020 15:15:31 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id y14so1722163pgf.12 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=bHiDLyy2fwp/nmA7LyRgjx8TQz6vOUijlqC+184KsN8iTq4+xaCl/8rA65TAHltx4B 7O2QyNI72iLfjOOeXQTgouZluy3lZEK4DDN27G8pPdIes3SGXeKLcj1p1FoYyCaR6KDw DbLEJDf7/BQDHhUc91xLMTy7p3w1gAXQ4VdNmc+l6dmCJpg++WvrSRJ3ukoJKhHkt/UY Nmzza58aRtkKal/mH2ik1Z+gKB0DUWem7urXsv/MVqyv9ehpA9qzn3GC3bC70zEZX36i MWlReqs7gQ6+cN1yfCAp1jwFAjatDRPvJoHvdRylcUqZgA/PHNq5JX0CCD6dLWgU3dTD 5pOQ== X-Gm-Message-State: AOAM5304AuqWcgaUSXUc3zGOJiVZULOmv/TGGzJ2fw8bg4M3Z50yjCdL TfYznBGrPjW9T94bo06aWKqsrw== 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-kernel@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