Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp317500lqh; Fri, 31 May 2024 02:10:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWy3RZgmoMt8J4jvel2bg3iH32jVcnsdqOFOK0QRpdUis1y3fwBaVW95KxL6UE/6bk0ysXAvRNB/Zkfvhhl7jas5h6bYdlIah7CbLqN8A== X-Google-Smtp-Source: AGHT+IEzhIBBjcxdSy2arKDyqzz4CMrO1uRLV83C+8RrhxVF4JIpkp3AJHRys39kCwSPx60BbBTD X-Received: by 2002:a81:4154:0:b0:627:ce6e:64c5 with SMTP id 00721157ae682-62c79688724mr13312747b3.9.1717146619338; Fri, 31 May 2024 02:10:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717146619; cv=pass; d=google.com; s=arc-20160816; b=tyL/8hzBMdhqvkKrHIS0oSaSeR6UU88dcQKkC8YMF+lUIWO3P2pxPocp5CNPtfKtgI PPkOe+4v6NhM9elsyckXuU48t9fWyhmW+CQuqG/tsTypI/z5D5ugpq6OmsJee6wXJeMz SeMB2HTMPhQYbeha/OQXyOhroKEGJhwZ7lrPcv6iTcxSo47QG/M4ujSyDMqcmPMRbV3i ms7wBpRLRPym3puuvGZ5gtAbDJ3ta2rIPUXxBDdDoT6Qy0BqFei+90D7nSYyaZg20Bv9 WdB5fFqXhVihDa287R6lugT8nGL014i3z4LK0VOq6xUWvAeywWe2hsAvJoeR5y2x7tic laPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding: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=/skB/qyAAv0jb3sZQDhAVmjEY4b0H5zQ0AWXbXSTWoM=; fh=a1RxTAFwWjr0rJqoqsNmr1PzP6xyAeCPsLL3q+1xoEE=; b=rveqm8LBfSlk6YCz1RbpjK0ZOapNdjcNLCSkFuZVz2Bbah4P8vP3NAXXfcYwM+CLPW GIOwVKUybB993Xafb6yv5D81H3Du6Gx2Hgo4l+YWaUuZWOGtei80q5JNDjpg9f6SGVzH 3ZmMsiqnDcubczP7dJ1VNxwN86Rll1DjxGIM1pxrGI0XX72O1x70GhWznS95BlgLGj9a 6MBCHkoRfHWAe9dEtQKDyWDBbf7OcOPrqvb+pfdWGAEIah3poyU7eqNuv5ln9AtxXP8f JwJCCpq2c7LToUZYqaWGAs3iwI0p513kCBeo3MdvMMgNN6qTL5lX9kyL3b/oW5DJXt8r Algw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=ryKsgfTk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=gGmLKhE9; 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-196549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff25afa28si15550141cf.707.2024.05.31.02.10.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 02:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=ryKsgfTk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=gGmLKhE9; 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-196549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196549-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F28DD1C23190 for ; Fri, 31 May 2024 09:10:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 066A4157481; Fri, 31 May 2024 09:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="ryKsgfTk"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="gGmLKhE9" Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (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 B8B687581D; Fri, 31 May 2024 09:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717146396; cv=none; b=gOzzaHufZkqbcrmkbwMqBbX2z18uo2uw4mr90LX0t1LfmcmteY9R6CM8Zf+eUWMIftrMENnwY/bhlKVH87AIBUdA+gwYiDc+AmzvqSV7uWdme8iKn20BsoWIAfLMc5fs5Pdb0ceVRnM+HWURU1Cr7vM6hZ7c35OpLzAbKysB+os= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717146396; c=relaxed/simple; bh=h1Za1JuA+/HJcBG2jH9CuHIjJ+/KJJ3mh3YHwo4KnW4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=sVpDEB/mZzYEmKQJJEA/1OqEJiMsBnF2xQNqWhjPyuACYPdq+xXvpqnV25O/JrM4FGEV4M1SP05bjMbUNWLF6949ri0w6nxZPJicYNnq+c4Y5uLBOqcLcWVgu1SzOm8xtsbwp8YD0BZWAg36n2R+1s4/v+X9MBy+qkqx8fvYY/o= 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=ryKsgfTk; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=gGmLKhE9; arc=none smtp.client-ip=103.168.172.153 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 mailfhigh.nyi.internal (Postfix) with ESMTP id BB33B11400E2; Fri, 31 May 2024 05:06:33 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 31 May 2024 05:06:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding: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=fm3; t=1717146393; x=1717232793; bh=/skB/qyAAv0jb3sZQDhAVmjEY4b0H5zQ0AWXbXSTWoM=; b= ryKsgfTkA01jdB1LMAm4X3WvoFCFddDHbVQL1CsiWZFUMj8ETJYcb+FcmRA8bVdH W80ELPYf5yx+VCIUkZfsrZbvfJY8fdN2zR6O4Sty0N0VuiQoH5yGwfJmXpcf+oe3 3/32saBcikfG//sWRFPxaBF6vxguH6U546uh4BP7lj7nfWcysiM2wr7vFBeebWdd n/QnA5J0dlGeBY4L2O7R3jgkJZcH7M5wgsMDT/YSnaD9FysL/g1lFzaMu8GzUDBJ unqOso76vPVEuf114zpnJqex/hWGz4LO2c40aFPIdAES4YqEHBWBtGQElIraAiwm UGJ62z1YNOvTPXZ5XJCKow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm1; t=1717146393; x= 1717232793; bh=/skB/qyAAv0jb3sZQDhAVmjEY4b0H5zQ0AWXbXSTWoM=; b=g GmLKhE9hvIClnb+x1Z4m251SEUdJuj4CBZBC9+tkYJiNp65Halik554oSaQcvVVM XlFSosc76KTXMmGC2iF7jI5P2rVlR9gX85x4ixV4Mrqt7XS7QFhglsP7c0dRukCJ KAZNecvuzGzypu1GzT4nA+ubiUv5zyRAhV65wBnR0iy8jNQWCLBS8Sd/e869BYB/ /3ank/v86hZlz5r6ZrATcCCGxgdlXOCXkF5b2meSvOqaobrMGRq4E2RY2cKdN8EP 5JCFTY+pOCwghbjugQnox5VXuzXJP94WVRTFRY4rMS6Vqlg4wWPD470l05xy2i2e lwhW9YdULEcyyYzWnb92A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekiedgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffjeduieeuuddtiefgffejleeuudeukeffieejhfejueegueejudfgjeeu udehudenucffohhmrghinhepphgrshhtvggsihhnrdgtohhmnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7B0ABB6008D; Fri, 31 May 2024 05:06:33 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240506133544.2861555-1-masahiroy@kernel.org> <20240506133544.2861555-2-masahiroy@kernel.org> <0e8dee26-41cc-41ae-9493-10cd1a8e3268@app.fastmail.com> Date: Fri, 31 May 2024 11:05:54 +0200 From: "Arnd Bergmann" To: "Masahiro Yamada" Cc: linux-kbuild@vger.kernel.org, Linux-Arch , linux-kernel@vger.kernel.org, "Kees Cook" Subject: Re: [PATCH 1/3] kbuild: provide reasonable defaults for tool coverage Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, May 31, 2024, at 10:52, Masahiro Yamada wrote: > On Tue, May 28, 2024 at 8:36=E2=80=AFPM Arnd Bergmann = wrote: >> I don't understand the nature of this warning, but I see >> that your patch ended up dropping -fsanitize=3Dkernel-address >> from the compiler flags because the lib/test_fortify/*.c files >> don't match the $(is-kernel-object) rule. Adding back >> -fsanitize=3Dkernel-address shuts up these warnings. > > > In my understanding, fortify-string is independent of KASAN. > > I do not understand why -fsanitize=3Dkernel-address matters. Right, this is something I've failed to understand as well so far. >> I've applied a local workaround in my randconfig tree >> >> diff --git a/lib/Makefile b/lib/Makefile >> index ddcb76b294b5..d7b8fab64068 100644 >> --- a/lib/Makefile >> +++ b/lib/Makefile >> @@ -425,5 +425,7 @@ $(obj)/$(TEST_FORTIFY_LOG): $(addprefix $(obj)/, = $(TEST_FORTIFY_LOGS)) FORCE >> >> # Fake dependency to trigger the fortify tests. >> ifeq ($(CONFIG_FORTIFY_SOURCE),y) >> +ifndef CONFIG_KASAN >> $(obj)/string.o: $(obj)/$(TEST_FORTIFY_LOG) >> +endif >> endif >> >> >> which I don't think we want upstream. Can you and Kees come >> up with a proper fix instead? > > I set CONFIG_FORTIFY_SOURCE=3Dy and CONFIG_KASAN=3Dy, > but I did not observe such warnings. > Is this arch or compiler-specific? > > > Could you provide me with the steps to reproduce it? This is a randconfig .config file that shows it, but I've seen it in a lot of others: https://pastebin.com/raw/ESVzUeth If this doesn't reproduce it for you, I can try to narrow it down further. Arnd