Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1545492lqp; Mon, 15 Apr 2024 09:22:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqzjg47TLDb8C719M3y/4LFFciE1YwKUtrkwne+Mfjs5FsCRqZy/anpIeKm+bkRmMQ+R8Q8H8whqYlzl0qqWi5gj2tVKlGwjqTcyuIpQ== X-Google-Smtp-Source: AGHT+IEvD+nH8NHyG7gJuu8DSk03GfexLL8rrHp9vQGLTSPSOekkxvN+oCTBbQfpnh2XLsQKe2Z4 X-Received: by 2002:a05:6a00:189c:b0:6ec:da6c:fd69 with SMTP id x28-20020a056a00189c00b006ecda6cfd69mr14480224pfh.7.1713198165082; Mon, 15 Apr 2024 09:22:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713198165; cv=pass; d=google.com; s=arc-20160816; b=kVe3J7LqHDkdsRliL6eQkZhEupYziaS+s+xtY44GEgOvY4kMGQShlt3mEAVLmaKKUu S1WLh6TI5dIodxoMhxjAhP7BJi4i4V5m4UEIKOOW9q0+M1knbM3veniuBul1sImBEPwH kolrJ5rZvVNUvHGJ25wA3kt+Mcx6K6gEYJvkT3abByKueKtrFR3sWCYWvWONOyuq+J8n 183/BXwy/lr298GQVzygXh2oV++cNz2+XsTBA/ic2t4WQbmtZCh+PACpe32mlfPPoU49 QbqNNYG+YNu1bXaj6VrByaRL7XVMARBX2/sPqbbnB5jvJbkaNdYyJrn+9pOMsTvO8LeV B9og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N/OTM/TNgZYaTdlG3WL6hW/czPcQZOPIAEnHQ1yVQtQ=; fh=V/dckOoP+6ZYuEIHKahdpZEAjD2MTf7sMLBS2r21spI=; b=QcIRsqPHVDGg9NHqzxeDLnWOKDcq0xUxMp0L+u5dfpjUffzxaMJmgIABG+bPFAiJzk 7svKNuM65JHQBH4nS16twd3HEb58oMJ8b6XYGezOBqJrjbyyLc+XvoC0x+77eUKtFS1p CPIwB78f8kOJPI29dwa+9yY0cJ2wgd1js+Pgi6KArvi68FCeNQ4VrXWF+TUx5g1Hl/1D t+U+tkPKrwFoBjHchTJHzjdQ+CcqxzHMpnOg8hECayWDgBpyL9AXlUhsRmlBdvNC7Dha qB6imSeIVpaGZnF8vwh9kLnhsbe35qAJuYl96m7UFJDV050Et3zS6mTt2zbmqhRDMRq1 WKRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="kAETQ/9N"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c4-20020a63d504000000b005cee03a1bf9si7957607pgg.448.2024.04.15.09.22.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:22:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="kAETQ/9N"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 534EC288737 for ; Mon, 15 Apr 2024 16:16:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1223A80BF0; Mon, 15 Apr 2024 16:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="kAETQ/9N" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F22E78005C for ; Mon, 15 Apr 2024 16:15:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197732; cv=none; b=kk4hv5RfHiK0eUsjNIPyNY4Z/QE97gQ2wkegUBz03wEl0jPj4ppO9IDk123BM4BtgsdXTToEfKNt7x+ULTOJljgeU+IYYDlCjA1N3dIWtf0DjwTyFo4wFarznOFhSdrSidk911ftxkgUOgU0LWDt6sNGAibkbg4yrOSBWsL7C/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197732; c=relaxed/simple; bh=WzSpkbGGMe3CYE9+K1mdRBK4GHComNIeDDJxAv2hM+U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Snnkn9JllKrzcW2VLLB11BqNBLq9a1KTmelTypqchqJE++FWsMDjhdU+M5t8xqe5aRs8PrnQRD2kiPQGc3Nf6kV0N2ipZDXdVH69b7Vxpl9WyG+YjQPFuHC8zQDPNFjOMHYKdXFImTL95NKwAqGBUrGvjPujKw2G5zIVMP/svcU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=kAETQ/9N; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1e4bf0b3e06so34711425ad.1 for ; Mon, 15 Apr 2024 09:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713197730; x=1713802530; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=N/OTM/TNgZYaTdlG3WL6hW/czPcQZOPIAEnHQ1yVQtQ=; b=kAETQ/9NeyXIjHKMiqWjLUEowKO8rJXvv2lz1YE3cgH4kkOjREOz91LHzzFTuXkV5a Vu9VHgf5ynTz1Ut83OeltVsDFzmzQRSzZf2oTrSVAqeKI6ifAHcCwfarkhQIRKns8dU9 4vhA6zDROi41d02zoPyVDqpals00KzoP8E8v8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713197730; x=1713802530; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=N/OTM/TNgZYaTdlG3WL6hW/czPcQZOPIAEnHQ1yVQtQ=; b=bXDol9Ei7uxrhxoby1k7szYByQ7VBsYKfHRI0Ms1wHHDzuRyin5U4JkhyP4rAOYfAn ka0j4PnReGJzzWbQ5o0CmfdhbzP9idzS3YhH08frkcH44uh1HFYFxi+2+94wyIAQKDIM gGBQVk2lmhUyEj+wxzMWLVjNFX1N0VwcDqgdMJI1VTsURI6O8pwXkGDIml1xYONBOGE3 LiM5nwFkxHZvZ8IEwipX015uX7DrNhJnW8Rr8WpdteZb8imBjc8K4nPRow+LrEmtMyDn oUw3zIl70EzJ6RO2jHYnGBT0qYegfEfBDQMccCIvLKSjwqQBZnKt4ff5v04s8Nar0bol kxVA== X-Forwarded-Encrypted: i=1; AJvYcCX1iGZVw8OQefy6T4NVaibaC6rPqRQEPHCNPU4BI4fKJKPwzIyge28kiS7Vjh6QCfJ77833teVuebqI93SuElZjNUqrgP/MjNXCrT4r X-Gm-Message-State: AOJu0YzA7ib+VcU5ALT6iyZOTSoyXtYVAdVTjQJyCzZ4oDkvIgdvbBEp JeD/DOXd5A+JgLR5zXpUZ0s28Nz6hMyFzDfjmHCOHdkSzxYzLnPG/D/z2IZqPw== X-Received: by 2002:a17:903:2310:b0:1e4:2879:3a38 with SMTP id d16-20020a170903231000b001e428793a38mr12867624plh.47.1713197730312; Mon, 15 Apr 2024 09:15:30 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id z13-20020a170903408d00b001e4464902bcsm8132662plc.60.2024.04.15.09.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:15:29 -0700 (PDT) Date: Mon, 15 Apr 2024 09:15:29 -0700 From: Kees Cook To: Arnd Bergmann Cc: Andrew Morton , "Gustavo A. R. Silva" , Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] [v3] kbuild: enable -Wstringop-truncation globally Message-ID: <202404150915.AAC34D61@keescook> References: <20240415122037.1983124-1-arnd@kernel.org> <20240415122037.1983124-7-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240415122037.1983124-7-arnd@kernel.org> On Mon, Apr 15, 2024 at 02:20:37PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > The remaining warnings of this type have been addressed, so it can > now be enabled by default, rather than only for W=1. Yeah, I know Gustavo had been working on these too. Yay! Reviewed-by: Kees Cook > > Signed-off-by: Arnd Bergmann > --- > v3: no changes > v2: no changes > --- > scripts/Makefile.extrawarn | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn > index 1d13cecc7cc7..17c511ddf48a 100644 > --- a/scripts/Makefile.extrawarn > +++ b/scripts/Makefile.extrawarn > @@ -108,7 +108,6 @@ else > KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow-non-kprintf) > KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation-non-kprintf) > endif > -KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation) > > KBUILD_CFLAGS += -Wno-override-init # alias for -Wno-initializer-overrides in clang > > -- > 2.39.2 > -- Kees Cook