From patchwork Fri Mar 25 22:29:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 12792130 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B59C1C433F5 for ; Fri, 25 Mar 2022 22:29:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233736AbiCYWak (ORCPT ); Fri, 25 Mar 2022 18:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233735AbiCYWaj (ORCPT ); Fri, 25 Mar 2022 18:30:39 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63DF338B5 for ; Fri, 25 Mar 2022 15:29:03 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id v4so8759785pjh.2 for ; Fri, 25 Mar 2022 15:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=HiTDgMnXLNm+wa6aVm1WbatEUs7lymZcW/6uyKoS38g=; b=LZmmCOYQ3Cj3SABlu/kZ6RaqovKgmOzax+yNsn6pqzI4fYsxULdbv4n0bqoHanfJNV O3bCCDDYfltWu0OQnPSF4dZichdNB+PTktF0x7j/DOYpt+brOhgLKJuPGw8hQ9ti/M7p sIk4Jts2/QFmmrBObNMZPnS8+ta68zBHv5yd4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=HiTDgMnXLNm+wa6aVm1WbatEUs7lymZcW/6uyKoS38g=; b=0Nf2D/y9bXIIgP+qYT4ZQQTRLdSJSqG5OznMl72hLjU9YHyQ60lCDFqhOKxc10W+RG Cyi4IPAiDhMv7LOARVDmPPKbEMLKF4D53WYqm7VI7n/reIgXO6bDbHkj0Da3LKvR2Hus TYo7n4rxlzs3pxPbz5GZqHBP0TkAjnyUd5dfQPA9ohVaK7mHJyGANSAnOjt9O6flEKao dMjpt6tWmqUwkIZ5vU2Ld6SnVbf0ogyxkx2VfkGmU/w5oafHHVHGe2KzsT+7RR0+W/dW K94GBUxdVz14dTkzqZydloUuSdpIXxk3Ki3UmasmUXjmz8PYQS0BZOvdJ+6XfhZLt8a1 1jtw== X-Gm-Message-State: AOAM530qfYNcG9rdQGhIEilfl+c3BKSbthHP7QlH/XzRoZ5YQTOAEQsS VLHOxTKWLIFbUteonZk8gahv1A== X-Google-Smtp-Source: ABdhPJyvPb+7hYespPatUYa7oqa4mkQ+ksPB+KW80CHaPKDl4fqCgd4Qmwy2USSOyTce1jqwIU3VEw== X-Received: by 2002:a17:902:d5c3:b0:154:c472:de80 with SMTP id g3-20020a170902d5c300b00154c472de80mr12236634plh.87.1648247342758; Fri, 25 Mar 2022 15:29:02 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id x38-20020a056a0018a600b004fafd05ac3fsm5269993pfh.37.2022.03.25.15.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 15:29:02 -0700 (PDT) Date: Fri, 25 Mar 2022 15:29:01 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , "Gustavo A. R. Silva" , Kees Cook , linux-kbuild@vger.kernel.org, Masahiro Yamada , Nick Desaulniers Subject: [GIT PULL] array-bounds updates for v5.18-rc1 Message-ID: <202203251511.4F76EAB@keescook> MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Hi Linus, Please pull these array-bounds updates for v5.18-rc1. Like the FORTIFY_SOURCE tree, I was waiting for all the various other trees with fixes to get merged. It looks like scsi was the last major tree I was waiting on. This enables -Warray-bounds and -Wzero-length-bounds, now that the many bug fixes have landed all over the place in the kernel, and in GCC itself[1]. Earlier build testing of this series merged against your tree didn't show any new warnings, but as this option has been a bit of a whack-a-mole over the last development cycle in -next, it's possible new cases have appeared. We will remain vigilant. :) A couple fixes[2] for known corner-case issues currently live in my "pending-fixes" tree which I'm expecting to send next week if other maintainers still haven't picked them up. I'm also expecting we can enable -Wstringop-overflow next cycle, as there are only a few stragglers[3], but it might even be possible for this release. Thanks! -Kees [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 [2] https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-next/pending-fixes&id=2d253138910eec553fc706379914243d71de9b85 [3] https://github.com/KSPP/linux/issues/181 The following changes since commit dfd42facf1e4ada021b939b4e19c935dcdd55566: Linux 5.17-rc3 (2022-02-06 12:20:50 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/array-bounds-v5.18-rc1 for you to fetch changes up to 00a4f836eb369723b148e3f250c850a028778832: Makefile: Enable -Wzero-length-bounds (2022-02-13 16:49:40 -0800) ---------------------------------------------------------------- array-bounds updates for v5.18-rc1 - Enable -Warray-bounds globally - Enable -Wzero-length-bounds globally ---------------------------------------------------------------- Kees Cook (2): Makefile: Enable -Warray-bounds Makefile: Enable -Wzero-length-bounds Makefile | 2 -- 1 file changed, 2 deletions(-)