Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp335555lqg; Thu, 11 Apr 2024 04:47:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0yzO4f+K9Fypd1h5stgebf3fwoHuyvJOaPvPtgdFr+WsH/E8WTri+HTK9kDXXum8AvKXQlqmT4FLE3IWfQPMu6ggC9Arfwt0LJN3tdA== X-Google-Smtp-Source: AGHT+IF1eHz+hk9myFoGI1VMInJX456PCi2nPceME4U65c/UC72TX1rzXXoW5Jmy3q2ZwEoKzM+D X-Received: by 2002:a05:6a20:a104:b0:1a7:3d2a:7383 with SMTP id q4-20020a056a20a10400b001a73d2a7383mr6961794pzk.18.1712836047421; Thu, 11 Apr 2024 04:47:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712836047; cv=pass; d=google.com; s=arc-20160816; b=BVGljmXyGu53JAH3glt8iuEDR7hTojrLx7eIK77e2/LfDEPUMnBj9aQuJGvWH1ZJ7o 4jgEEMkXrysspGXYx3JOGq6BYJpC1hIJku/kBX4CbL5HT1flQhjxfQFCUK01NomVUiM+ DkYNMayJbOEMPDtEG/L6rHTdVQhc30OaX7zz53I3BcJQQusVnd/bXl5RFaDOq3uC/DMK /rUauirT2934U00hwddkKtkGHMXOqi2LlQkTjvFyMz/huj5IM8ST1g8RQKscQlkOvWKY EWFC20lYIcNOIa4GA3RIX/THxRe5E/H2xkIalw52+Rk+lE/oJIEe40eRyf2ir2QAS3D5 28wQ== 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=P8MYPGxCIjNe3mVE8A2eowCiRlrk81aBVzAF/rIv8g0=; fh=Kd8976S/sBbNaeQnmxcfOom5DhNx3bndStpJ1Q9QdS0=; b=SG3RSbVz22c86dfVyyefLHtmmL59jOvs9FV4T0MD/WSyOTiLchNdwj1/0HmhFOEfaJ yiQK3A9565TpLZoHdSP6LIzekIgjeY0tDyTQca+MibISvw/9gXeyNHVXbMwdthmuO7LB I6jSTHpDY8btgMnzjh5MOrK3/5mUhMwdoHJ7uc+sOyeHxzIHj6bvHDmZmihAFUhxJ7Ps saKPW69qCfLXyODGmDB9huGMBLnZ+H2WoKkBjzQv58/qXPLuzNgNBl0g98SvBJIPu9LN ryJp+Lq2twGdCJa/YPZ6GsDtcC7fzt9wuRjZEiysqBxvOvjDmDpO0HzwtzqGdkx/R4I9 glmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=bnMNR991; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=QG58MyLn; 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-140346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y30-20020a63495e000000b005f0bc6f2b40si1111070pgk.283.2024.04.11.04.47.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 04:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140346-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=bnMNR991; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=QG58MyLn; 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-140346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140346-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 C056BB23FB8 for ; Thu, 11 Apr 2024 11:36:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AC0A149C71; Thu, 11 Apr 2024 11:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="bnMNR991"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="QG58MyLn" Received: from wfout7-smtp.messagingengine.com (wfout7-smtp.messagingengine.com [64.147.123.150]) (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 6FF2246441; Thu, 11 Apr 2024 11:35:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712835348; cv=none; b=lP7T3gnCnMgDLUQAq2NKoqbICcGdS8NTU9a8BR+jbNUgAKBCmIfW7ZJ0a86X7HjPwohffO2Be9ozWwtjYcBLXUw7ARq6l0c/bHaNPQ8G7JpsxMsV6CR46y4PI1cAVACHGd9OzLAS548BBTPrBt4vSI2rgAdGA/FXzZV5Bo503Gk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712835348; c=relaxed/simple; bh=ajeu2BiA/YKzCiQqdIEBCBbdqVTBmASd7P1eQEFpois=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=K7GM90/Sc1X9PfeVvNl9eeGuVZ9a2AAxx1zaWYcp5zVhLXp3XOfjkGdMVvdYfabRPnP7LweFPGM1Rjw6Z70zTjGgrtWzyhbigaFtbBEgL+jHtEhWvIZzCdXSfvSpAjjK4440FVuuYWvUUjKHHZc0jk/O8/TwGyj41PDAMq9Ut04= 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=bnMNR991; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=QG58MyLn; arc=none smtp.client-ip=64.147.123.150 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 mailfout.west.internal (Postfix) with ESMTP id CE96D1C000EC; Thu, 11 Apr 2024 07:35:43 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 11 Apr 2024 07:35:45 -0400 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=1712835343; x=1712921743; bh=P8MYPGxCIj Ne3mVE8A2eowCiRlrk81aBVzAF/rIv8g0=; b=bnMNR991EO/fzRUIlUsUo7ahiu qb62PceZ1wtjdl6FRbzcBmg7gFKzadUuGlBJRE0bV15wwLKm31vrzNuFWULKPCwl wcjQkawx67wTb/vAIZBFLbLNN0aOe2hBT7QVwO/lL3E/LV/Kuvrfmdt5A+SNBPAc DM1PVXuSmOW/0GD2h44GXCT8IghgC93UuE/9icOuJ5Y4kiJSdgqRqs39Z+W7mM0d SG/0Rt1Yc0jjGXTZxVZtt3PnVAfICd4d9LgxhVNVVkmweh9dLQzllb7ZUE4SY8P3 fe+obljMws0wxnjnM1XOTyc8mBbPd8HwG9s2pEbR7bL0G8yD6FGhzuQIf8Qw== 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= fm2; t=1712835343; x=1712921743; bh=P8MYPGxCIjNe3mVE8A2eowCiRlrk 81aBVzAF/rIv8g0=; b=QG58MyLniWrPS1pdKGAzLbuZ/TMSc3cMAvJv6fC9qIg7 n0vdzSKsiFVeknrN8QzmosqFxkasJ9yfsPdf5Q5DzWoLxl6XnbfVAeje1BRbLyEP fzwKAJMzIkA0hCtoXPOnbksd20x/1APdjag3kZ3/CeGRglyVhIlClPiAUAGIBmdk c8o1bACgadLuXbZhaBlv2Me1FomnUpIsYwcU5V0M6eFB+5Q1QGSezFN6O950F7LE 1/RTJHMWizr3dtkOitvzACSaWG7m9Mhb/vVpN0mSMoQlRIrut9oUQPmU6Kgj6RuW i4o6tT2Eixnf01w+L6NMzF1HvUKKDQUUUTU8JgLSoQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehkedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E7849B60092; Thu, 11 Apr 2024 07:35:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <773febee-ace3-4ad6-8ff6-04563dbbb759@app.fastmail.com> In-Reply-To: <20240410174540.GB3649628@dev-arch.thelio-3990X> References: <20240216202657.2493685-1-arnd@kernel.org> <202402161301.BBFA14EE@keescook> <763214eb-20eb-4627-8d4b-2e7f29db829a@app.fastmail.com> <20240409161517.GA3219862@dev-arch.thelio-3990X> <20240410174540.GB3649628@dev-arch.thelio-3990X> Date: Thu, 11 Apr 2024 13:35:05 +0200 From: "Arnd Bergmann" To: "Nathan Chancellor" Cc: "Kees Cook" , "Arnd Bergmann" , "Steffen Klassert" , "Herbert Xu" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , "Gustavo A. R. Silva" , "Leon Romanovsky" , "Lin Ma" , "Simon Horman" , "Breno Leitao" , "Tobias Brunner" , "Raed Salem" , Netdev , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] [RFC] xfrm: work around a clang-19 fortifiy-string false-positive Content-Type: text/plain On Wed, Apr 10, 2024, at 19:45, Nathan Chancellor wrote: > Unfortunately, I have no idea why it is complaining nor why your patch > resolves it but the combination of FORTIFY_SOURCE and KASAN certainly > seems like a reasonable place to start looking. I will see if I can come > up with a smaller reproducer to see if it becomes more obvious why this > code triggers this warning. I know at least why my patch avoids the warning -- it removes the call to memset() that contains the check. Unfortunately that still doesn't explain what caused it. Arnd