Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp402461rwi; Wed, 2 Nov 2022 13:20:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM69zT/cS17u1iN3StSWovw1qnzKf07C2xo2CHjKABlq6M04zxnW4xMAnKeRFuIT1FibLaBt X-Received: by 2002:a17:90b:3c0e:b0:213:5ce5:e60c with SMTP id pb14-20020a17090b3c0e00b002135ce5e60cmr42591203pjb.157.1667420434477; Wed, 02 Nov 2022 13:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667420434; cv=none; d=google.com; s=arc-20160816; b=JTNr76+7Pva+KE3FMMwsbLTMYZ2EzPJm40IOI2E+vGcAWOBkRiIIHL8TW+LP5arjqH /IEvN8qjhR4xzqmoiAyfl1Z/ZYMDFfvWST0t2Y8b5b/13e7rympEfW1CkaqIx4Wm3344 a/PMwbEF1FzIZvRzZxQphwq6cKgmEH1o8VtkECUcrryNfaf9weNZTzF3rBNEHlL1SBj5 y+e3B3XSchPvrjEdnZjWG8msJ8kw2sfTI0UQkwTiDlgevxClywwuV70qD0mSYG67wkXd fCxwO4OMAqiJQ5KlKcFNGMctEo1XokOkq23c2vIwCYenqi9wEKUA/i0KzST1U1wgfdMP pSiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=crDMk0R12pE4R+rJIlvy8EsGZM7TBfRAPYKWnpWAGHY=; b=ANXYXLeodL4vzpk1sFSskDWjhtP3FC8Uob4RUIjkhKye01GnblkKe3m7lAxBlXUNN5 WaEZIGhYohb3r2TFWPGfgpbfkpuAAh/S5+y15jDAnCco+CX/0+iVbFUJMb5qRE0w7CQ9 bX7RetoIFsgOr4Wpp2gZzdzwUva/aIV5wx7MWgsLXH1fDQJTswydB+Q+zC8kbzo5c9Tk AwCyUtSyEP3sYEz6TvkV5/Yqsjclpbp8nOPMDpqqzbB3PZAxxwv85cDcplozrORj3uD4 HARSwospTqv8p0+sThZS32OtjHnHe3CZfebxkZeiiStKmgOiX46MB8tX3hrJNzrMvtNG Oovw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="UK9/AZo0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f34-20020a631f22000000b0044cce26fa32si11368131pgf.632.2022.11.02.13.20.22; Wed, 02 Nov 2022 13:20:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="UK9/AZo0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230171AbiKBUBg (ORCPT + 98 others); Wed, 2 Nov 2022 16:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbiKBUB3 (ORCPT ); Wed, 2 Nov 2022 16:01:29 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20B2DC3B for ; Wed, 2 Nov 2022 13:01:28 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id h14so17249415pjv.4 for ; Wed, 02 Nov 2022 13:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=crDMk0R12pE4R+rJIlvy8EsGZM7TBfRAPYKWnpWAGHY=; b=UK9/AZo0Gy9FmiPW3MCdfsBkfo+eIrkJ8azyv3CjPHoN4MhEkiNCR8PNH7yhFsYAOV OcpJgIYxLNKdG/2WV1Ir7KHesKgC3PaVShkuvcivzT1/xw5yHoEnTL+CL4JhdOo7Cq6/ kZ7Q7PuO5Kq6Dkv2HcO0D8R73xSRLPR7rqXcY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=crDMk0R12pE4R+rJIlvy8EsGZM7TBfRAPYKWnpWAGHY=; b=E7SX3q9JtVejJ5yyqNmbc3Y3m7FbfVtP190er9A8zXNNwHbQWXRowATLWQgBIP+sd0 Vey4MGAVQQZOEHrbstZZHx04lMcUGbM0VYNSCQecKhri/If8Mv4vz+/DVD63CEe/Yrro lo/vdgkR62QJIm2iUY7G+GkClFrx/dJ2kHlAqwBwQBYWVnGHvEbS4WW3A6chpKscAaIP oOFWadS5J0jylHVlcVB04xntfxd1yz2Hy7jvezmxjQzHQAXKtpiKzmZLFliaMLVLpIXw zSwI1yKOcfLdZM7GWTAn/Xhex+4tFOcVzCn8TyJRcIgzbBW4OoXx+Yto0VWm19QG9U7S Rapw== X-Gm-Message-State: ACrzQf3RtMNGLkoe0l1iagUeoz1xQq78GtSpocdwqUBxiI/DaH5eZSAd M/6nSgKLT49bxGviYCfDWOD7sQ== X-Received: by 2002:a17:903:41ca:b0:186:a68e:c06d with SMTP id u10-20020a17090341ca00b00186a68ec06dmr25774406ple.61.1667419287620; Wed, 02 Nov 2022 13:01:27 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id z184-20020a6233c1000000b0056c47a5c34dsm8825142pfz.122.2022.11.02.13.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 13:01:27 -0700 (PDT) Date: Wed, 2 Nov 2022 13:01:26 -0700 From: Kees Cook To: Heiko Carstens , Sami Tolvanen Cc: Nathan Chancellor , 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 , 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: <202211021259.9169F5CBE@keescook> References: <20221102163252.49175-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) You'll need the "generic arch support": https://reviews.llvm.org/D135411 which is _almost_ landed. Testing would be welcome, for sure! Sami, do you have any notes on what common things were needed to get arm64 and x86_64 booting under kCFI? My only oh-so-helpful notes are "keep CFI away from early boot code". :P -- Kees Cook