Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp719558rdb; Fri, 2 Feb 2024 01:40:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwe+mUIcA3TabkzfkycMpdt/HIzvanYgBBxsgMIyo8VWr358FOzmCn67l6drLB/sD9X2yX X-Received: by 2002:a05:6a20:d493:b0:19e:4e80:38ca with SMTP id im19-20020a056a20d49300b0019e4e8038camr1340580pzb.2.1706866805112; Fri, 02 Feb 2024 01:40:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706866805; cv=pass; d=google.com; s=arc-20160816; b=fEOfWnpr21V7Vl5larp8vuohe2bOvo7cPnZMVteNyArNVK/uIjmBXIIly+0/TJhLZP MTvC7gMNEfX+T9/nYYzD9+elutxzKbvGa+dnhBbXO3H5NMqivZG5Dnat3wuq5grTo7TI MModSLylvC28/hRxVS0kRubXog9VgX8Af80vqmQeuCkKCt/5dx9MDljGeZc75k27VLHe KWFOefxWLwG94IQgQp9B7/NhakewMlw0Tw27t6v9DZtj2HvwGN1QK1lHRIxfxFxOnonm Qc8iSjEGU+moACLP1/LfMvgk7G7P74nLxZ9YOzsCiGRrHgLMu3C9yrLl4HA2VCpU6QFI RnRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=fXvCVgfX/18RW3JDrWY/F6GsRFhBUuasaue8CYQCWc0=; fh=N5Aq3QWDo6fpQoP0UaV9ITA89m2caDqZEzjxnv51+eo=; b=Hsk5aRqFQM6F32OdE+sOH52L91uvi1VKb3rfJjuAo+e59f0E1kNRgj7AZ/RIefRwdm 8I3nefwaPeZdWhNU8OjIer7ghEgokMhV9AsfAPxrB8lHqQG7j1TbRzKU+iX9AQNdi1Ht 5I8368a/YaciSSPFEeC8CpSZli20A0VinCSdjzHrYC02/PZmfEWM/WSlkEUnCz/k+EGa WlULqpMkhp9uDC6URWlBsgg8D6SZ/KaWLMSUPq+RC0KvvHObXwj12kHNpKP42XT1UHbD +JWPnYW4eTlHYUYkdyUNvexNwp6KBnQuPYDWYrUpQ5m+66g5YCYMb0vv7y+65jLawJne WRYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=rjMlxXbC; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Io8eXFBV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-49386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de X-Forwarded-Encrypted: i=1; AJvYcCV5iFRm03AoihgDa/Pf3zpO5Aw9C+0f+jbQrUNmz+OAxIvQ8OF8e+TfOLfYws5XIt6z81hVQP19Sjc2fwWjQeK4oEyFhEnVRK0sxpPpHQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t17-20020a17090340d100b001d95ef48eddsi1479188pld.312.2024.02.02.01.40.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:40:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=rjMlxXbC; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Io8eXFBV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-49386-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49386-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 E1843B24C4A for ; Fri, 2 Feb 2024 07:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2581817BDA; Fri, 2 Feb 2024 07:53:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="rjMlxXbC"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Io8eXFBV" Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 9B3E017BA4; Fri, 2 Feb 2024 07:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706860394; cv=none; b=WGcMqGMm9LXcF2AADyV34EuEXeWh8Z2/aF8AU4eomX6rrsEinmH28l27tgt+HJpTfwiJ0i+pCEHX8tDR+8YDRvtT2jnGHarnGuLMimBcZ9NEW2or5WvnZ3QJTRQSec2Uyia5bmNo8e82XoshmGL/TxgpUwmdZoiwWFDnOkfJ7VU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706860394; c=relaxed/simple; bh=lw9OzvZqpEqF27r4UJeZnGPbYTFw/zKrYRjFXG18lb8=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=O8PwcJm9DhDe9xU/UjY7AdRtGUyljlHDh497ZUvqfjuBvXyF6DqP9owxClrDoJgdMlaM08BSnSGn4zZAYe7M3mfwmoROPhq0JwjU2QB657s7RHiHwSdr3J8QOOcRTRj6ezEiJv6p55VPETpGK/V7/cIR6od3VfahH6hxE2R3R/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=rjMlxXbC; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Io8eXFBV; arc=none smtp.client-ip=66.111.4.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 866295C00B4; Fri, 2 Feb 2024 02:53:11 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 02 Feb 2024 02:53:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1706860391; x=1706946791; bh=fXvCVgfX/1 8RW3JDrWY/F6GsRFhBUuasaue8CYQCWc0=; b=rjMlxXbChQxTtLSlaCFIj0Ka5a wBAk63Fvmo9upKjZ1BcS3Gn4cXyE3mRKNncCOx675qkE9RDsLM0a6WxfoPwWPBlT aKURfbEw680x9H8SKl22qYus+8EpiosszRWghNcZ5a7wxOTIJaUFWk1UMbjznWvS 6vOdCfUIfRZwDVvqF0iyCkchsXIBdnH89yHbsk4fZNE6sC1QJZf1hS1aYPzkDG11 5yZx886ju6IuPil8SMwTPPNE2iFKeY7I7CuC4VUYI8+Gj8OyNheSOeMLvsnCV9Zy 6AqEBjBlhpolwKTfuvHaWDA3AvpMd7tnHS/s+DAZuDnNnGadwEiTc0U6rZ3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706860391; x=1706946791; bh=fXvCVgfX/18RW3JDrWY/F6GsRFhB Uuasaue8CYQCWc0=; b=Io8eXFBVwUHNlr8eRc3RTP0C3JlJPZLyeIkhOsopVraJ 2DtpAKUcIlxwjzdnB2Tru7EGhkO8ATszrwHfbqf0yjDwYMcro9yWH5yj6qRI5adA eGRhpxrZm3YrIKHYwu7+U9JHYXy5eLH14og6PZTgBhIeUVOTDLDztjJXTkNHPGAh oIepTe3YpkB0T7lWGjXESX6LIOhnv3zVf/18g5BCXHVBQv4Y9DHzjQ3O1gYWaBzn Js7DPLTUHWITuSX1/FAXpFv5OE2/659jyd7F17s+0FjHz4bmf02cn2oZCEpgILOG yWa5OywJroaDQWwvtbg1CooJSigL2qeyrlJwbO7vaA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedufedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepkeffhfdtteeiueegfedvgeefvdetveeghfethfetffffheekvedvvdevfefh tdeunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdpghhnuhdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgu sgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 32E5CB6008D; Fri, 2 Feb 2024 02:53:11 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <34210a52-f4b3-46a1-b301-c76fb24adc42@app.fastmail.com> In-Reply-To: References: Date: Fri, 02 Feb 2024 08:52:50 +0100 From: "Arnd Bergmann" To: "Linus Torvalds" , "Gustavo A. R. Silva" Cc: "Kees Cook" , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] Enable -Wstringop-overflow globally Content-Type: text/plain On Fri, Jan 26, 2024, at 22:22, Linus Torvalds wrote: > On Mon, 22 Jan 2024 at 07:29, Gustavo A. R. Silva wrote: >> >> Enable -Wstringop-overflow globally > > I suspect I'll have to revert this. > > On arm64, I get a "writing 16 bytes into a region of size 0" in the Xe driver > > drivers/gpu/drm/xe/xe_gt_pagefault.c:340 > > but I haven't looked into it much yet. > > It's not some gcc-11 issue, though, this is with gcc version 13.2.1 > > It looks like the kernel test robot reported this too (for s390), at > > https://lore.kernel.org/all/202401161031.hjGJHMiJ-lkp@intel.com/T/ > > and in that case it was gcc-13.2.0. > > So I don't think the issue is about gcc-11 at all, but about other > random details. I did a creduce pass on this warning when it first showed up and opened a gcc bug report as well as a driver workaround: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113214 https://lore.kernel.org/lkml/20240103114819.2913937-1-arnd@kernel.org/#r The reply in bugzilla is that sanitizers are expected to randomly produce false-positive warnings like this one. In this case it's -fsanitize=thread (KCSAN) that triggers it. There are other warnings that have similar problems, so I guess we could work around it by having certain warnings moved back to W=1 when any sanitizers are enabled. Arnd