Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp462802rdb; Mon, 22 Jan 2024 09:25:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtGTOv52EgZBiwKnVoVDU4gBWuoEBaGZDwIy9yb46SjnpBwS1DH9F6YHEN1auxD0jioHjw X-Received: by 2002:a05:6a20:2454:b0:199:f2ef:8282 with SMTP id t20-20020a056a20245400b00199f2ef8282mr5132594pzc.100.1705944307379; Mon, 22 Jan 2024 09:25:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705944307; cv=pass; d=google.com; s=arc-20160816; b=OpJkQ2taev94jmv7avkNX7/FxKpvot4PHtdfVv+tFhyEDQ7lOj2RCWgKmPdUCQKX/C LBQXku6cGWvvCXWnrvcRxqifXRlZJD08wbYRq432jp9DZam+A7HR48jGS6fnYSntroTu zMmESWAfOeN01In0QbN8j4CbEFJ9s7xDYszxil8R+RkWba16W7g7oeWmOS+ujp9yWSKP KiMSRiitZ2aC+X7g2XClXvzX8lg+OSUhKRhlMeav0P4yZSTL+mdlScWyiSZzJ+qog+rl 0Nh/62z+8oJZ7eZ+eD8cioenjmDnyQWXGJB5F8n3Gbh9U/IlmVOA5UtggfrwOw868EPp h5+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=uAf7qAb+b0DQihPbCostd89YHewKHcon4h5QapJWi+k=; fh=ldboKHTefwSO4qhwiDnhCfuuTfOmB0Unv125xiBk8l0=; b=N74f9hiulmoWYhEA8a6+UGVVJzTkTdUrF51Jn4XuNyi7UYNR5qd0XXheYx5wMXOGhA JHOWLlBnM6V5qnoXv48FkghrrWD8t3LANrQoxjTaqF0aJDVB+dUFk6LXaSUjtL946RTC u3KkkE6UwiX86IaD9Zm7NwDn4znN7qy77YMF0fPhRxsuEP76T05l7Cz2WNhdyQwu3Rp1 x9FZGGxTYC4Dm+xhb7nbJZctUzNL6+V6x7l56OKIPuOR+prN+B7ZnkRd/jQRCrHL1AoY IHryP7zERwKj5HkCxkM0TcwYNBsJfMktL1An1UIVp5tAaUGgMPRVWTgwFvfAKnzEibuL fwcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aIZioLnI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o18-20020a637e52000000b005cf88217b04si8373774pgn.135.2024.01.22.09.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:25:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aIZioLnI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0F959B3324C for ; Mon, 22 Jan 2024 16:55:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF95E5D8F4; Mon, 22 Jan 2024 15:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aIZioLnI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 002174644F; Mon, 22 Jan 2024 15:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705937349; cv=none; b=TxQv8xFon26glvfnL2niHH1A31MtnelcxaQmMJt2JZ3d/RIzbHcRGE6Hy5IGSjEQmHqpqP2KqWWjF3LsZntrsuNMPPb7nqlzv/lYo7F2JOHYLrRBYoHoXw0/O67tM4z/C0nahV20JupEZFiAnL2Ckd9yZ18UgijaOk6uYRgfj3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705937349; c=relaxed/simple; bh=1k1aOxkjj4SQFLxC9IWD4IuMl5NQhpbLNoabYXHAOqc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=RXu2+4S5EI0L4qGls8lx93FAJqu3mTOjbtLInqMoXzpDJEmxQ0cLjiRixhGQVydf0KYftxt9qBnXhvzQQdt1+lkG5zALDG1LtNob0PxWS6JZL2WExmsOTCZDTVHnzzlZvnFokYPwQ3zo1eP1bguTTWLocvGE3DGLGoIlSkGZl4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aIZioLnI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05754C433C7; Mon, 22 Jan 2024 15:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705937348; bh=1k1aOxkjj4SQFLxC9IWD4IuMl5NQhpbLNoabYXHAOqc=; h=Date:From:To:Cc:Subject:From; b=aIZioLnIt7idds+mjKCSbxY7Wm4kLfL11yF7BVk4yKHZJgygo+yaqgi+LV8kqS/Uc CNIqnQgLYMgVl7E1Y7hVa0aTJXdzNu/M+gVS54NkPLoozqIF5k7XGdVLSQQYzSXt6l rjukQa6Yyl4mcInTY+/Vm2boW6/RpuTY/DEDZ9mT9iPeOWaGjyMEEvvrZwTICUdSxu EGq51ETxQNGTZ05AvoohMoKy44+z3/Ez18SFDgX5PI/NHeDmZbaV34RBwJxMs32oqh xp5m4nz834+gigoDaN7cbtXvfFb1XcerxU4Xftya2av95OBjdws+QEInvCGe2hnuGm bh1ut3QHX6slQ== Date: Mon, 22 Jan 2024 09:29:05 -0600 From: "Gustavo A. R. Silva" To: Linus Torvalds Cc: Kees Cook , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [GIT PULL] Enable -Wstringop-overflow globally Message-ID: 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 The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/Wstringop-overflow-for-6.8-rc2 for you to fetch changes up to a5e0ace04fbf56c1794b1a2fa7a93672753b3fc7: init: Kconfig: Disable -Wstringop-overflow for GCC-11 (2024-01-21 17:45:31 -0600) ---------------------------------------------------------------- Enable -Wstringop-overflow globally Hi Linus, Please, pull the following patches that enable -Wstringop-overflow, globally. These patches have been baking in linux-next for a whole development cycle. I waited for the release of -rc1 to run a final build-test on top of it before sending this pull request. Fortunatelly, after building 358 kernels overnight (basically all supported archs with a wide variety of configs), no more warnings have surfaced! :) Thus, we are in a good position to enable this compiler option for all versions of GCC that support it, with the exception of GCC-11, which appears to have some issues with this option[1]. [1] https://lore.kernel.org/lkml/b3c99290-40bc-426f-b3d2-1aa903f95c4e@embeddedor.com/ Thanks -- Gustavo ---------------------------------------------------------------- Gustavo A. R. Silva (2): Makefile: Enable -Wstringop-overflow globally init: Kconfig: Disable -Wstringop-overflow for GCC-11 Makefile | 4 ++++ init/Kconfig | 12 ++++++++++++ scripts/Makefile.extrawarn | 2 -- 3 files changed, 16 insertions(+), 2 deletions(-)