From mboxrd@z Thu Jan 1 00:00:00 1970 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 E824A29A0; Wed, 2 Nov 2022 19:58:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFBD1C433C1; Wed, 2 Nov 2022 19:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667419139; bh=dPfcKIcOxG/XQ1fwM77g0SeXdU10zdJ5vDXPj710A2A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fedhfv8p9FlTlJQ1ZyKmUoHOeU7TZM5gcJUvaMadd2wH1Mgv+Aisqj4SEYe1v+8YA viSvKcWq8ZwPPf5LUfVLcq1pc9gM77k//bMAllO1JsPMUcv0YrESbW/9d70Tmx4dP3 8in8O0QAq4fhfqr1JeNAWiT5JlRP8Dra6riMHnHteWpopncqMJEMvfZrruX/tFTrZC gcxWTKckXXwYAw5z9b6Ubn6ZWH3SiNcs6WlgQzBbbl9Ed6R5BRnY2TrSP6vNjkegHz 3H9zBwhoTYs/mKo4X/giNbs64Gj1q2DPcG5wNe/SukiTwto7N7e76PhWupxan9yBho avRCZQ38oue4A== Date: Wed, 2 Nov 2022 12:58:57 -0700 From: Nathan Chancellor To: Heiko Carstens Cc: Alexandra Winter , Wenjia Zhang , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org, netdev@vger.kernel.org, Nick Desaulniers , Tom Rix , Kees Cook , Sami Tolvanen , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH 1/3] s390/ctcm: Fix return type of ctc{mp,}m_tx() Message-ID: References: <20221102163252.49175-1-nathan@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Heiko, On Wed, Nov 02, 2022 at 08:48:42PM +0100, Heiko Carstens wrote: > On Wed, Nov 02, 2022 at 09:32:50AM -0700, Nathan Chancellor wrote: > > should s390 select ARCH_SUPPORTS_CFI_CLANG in the future. > > Yes, s390 should select that :) > > But, is there any switch or option I need to set when compiling clang, > so it knows about the kcfi sanitizer? > > I get: > clang-16: error: unsupported option '-fsanitize=kcfi' for target 's390x-ibm-linux' > > > clang --version > clang version 16.0.0 (https://github.com/llvm/llvm-project.git e02110e2ab4dd71b276e887483f0e6e286d243ed) No, kCFI is currently implemented in a target specific manner and Sami only added AArch64 and X86 support in the initial change: https://github.com/llvm/llvm-project/commit/cff5bef948c91e4919de8a5fb9765e0edc13f3de He does have a generic version in progress but I assume it would not be hard for one of your LLVM folks to add the kCFI operand bundle lowering to the SystemZ backend to get access to it sooner (and it may allow for a more optimized sequence of instructions if I understand correctly?): https://reviews.llvm.org/D135411 Cheers, Nathan