Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp107747rwi; Thu, 3 Nov 2022 18:01:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7JCuD47iG68wkitvijrLFGuqG32c50q9PqEXZFay5msFJqnb8HTyMuMhaISc1Qw8J9mO/1 X-Received: by 2002:a50:fd12:0:b0:463:cb99:5b1 with SMTP id i18-20020a50fd12000000b00463cb9905b1mr15153799eds.256.1667523665790; Thu, 03 Nov 2022 18:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667523665; cv=none; d=google.com; s=arc-20160816; b=gqXHsY8j0Hm0YZ06gYH4R+wY3B5GqSXbCLS/LVrTzKRCrDN7AJWuMGo1bLIHdGlAQh TsRoPmoql2UjmnSCe1sBtzcJ0Byl5Z7VSFF9K6EZkwLYgY/d0wgy+sOn2Nsdp2eG5sKB 3TqhQq80VxQJlEXrtlNEXDB4kzfsDvue5h1z8HPTSpqvYy1QGxmJIHym75D/EBcbbuKq fjNRXClPIEuRZFMH4Ikqug8izr9fSeUEqH5LCV1AwgHTKWF3VD+ShJDAzo20B6kPnwWI gjrqZPa4+X7usZmKq8sRiIufCvYA2lOOVR18HbTNCyqaPtnm9gYe9wzK0a6zQZqb+UBc kxyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6nFukTkOw1gbW4oWy1dnnjZjTg02KMsHFw8GpjXtUYU=; b=TBDXEnMlfWNyMmrcbEyUYPSWVf/kYzIvfrQ7tHWpjF4c/EpGA6l37Sw/iUMaDO8iOP EoO9yV2H0bAVwPYanYVC/YeCZGTsY+J17qI2mx2z5Zwa3rjpyoUdjBqMq2P+cVxx13Q7 Aom81MAXg1vxFv/YgZXdvHl2dYjFX5Tk559jsVK9nDVl3XjkCwmHXH0RoaRXyRf35L3g P3wgbV81IHyHq5E6psGDpYzbgvwxKm+vLzPkLYg2cpRxjGSwj/1rPa0CzmsBfWPVh58y GU47J2gop2ttPMemM0HQOKc6O2xCu4r9N3PD/KhybjTGUsuCL2s6bbuFb6b7f9rMN9wg C+cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=geRfAiNq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a509502000000b00461727807a4si2394721eda.534.2022.11.03.18.00.26; Thu, 03 Nov 2022 18:01:05 -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=@google.com header.s=20210112 header.b=geRfAiNq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231260AbiKCXSb (ORCPT + 97 others); Thu, 3 Nov 2022 19:18:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230405AbiKCXS3 (ORCPT ); Thu, 3 Nov 2022 19:18:29 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1221E95A3 for ; Thu, 3 Nov 2022 16:18:28 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id bj12so9159455ejb.13 for ; Thu, 03 Nov 2022 16:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6nFukTkOw1gbW4oWy1dnnjZjTg02KMsHFw8GpjXtUYU=; b=geRfAiNqwqJECVjVtpvPh5ybjpsHLeWnh1QnALVgXWTQjFlb/Z0cQvQQ4/yQG4qQ8W NGbCmycbKo2k+riXNNdGIP4FXw2D2PKAZ68ecs2Gtq2Maj+ZMlrHLaV5DnH2sI8Tnqsh /Pd1th7/joC6KAYBLTaldAkqAMhJg1EitLf+TIKPllOfzF/Hsr1zAoKEAGihqSZOuFJg ZVNh6RIRYq3wmRyKf/HMfnBrtmLxiVan0NL/rHwzsowOMiWYsI7yUv4WGzI+9LkXKjRp vhCxhturzIsbZOtfnQ8RVpiSvbUz52uk5u/yxLAe0ch/8gBBBYOKOhLMKpqC3vtvFJP8 asgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6nFukTkOw1gbW4oWy1dnnjZjTg02KMsHFw8GpjXtUYU=; b=fLqsZSLG0jirFmMisOt4i3Prbb4voWlYqTMQPB1J/MFXD/SUVpMz1/iMLzR/p8/zke Oy4khOYEvpSVfDsx83qEzKndqJUO9Ya9WVT5AwSsWwU9TcELc4m8SfkUL6IBVNDKYbnm Fj4S0JW5WCyt3ejmBXwE3aJmiFukLojb0eoq1tkj8WJwRexZSYEMiRsWXQfTU0ylnhG9 G/A+Krxvrum3MtoB4Z4+cZveO+dJ3UY0v/f1kWSl0rXAXT363PHmhGkqS0DaOvIXvUmP d4dkJLx4iuE2sqt2N5WQUMtDRk45RBfykeZpFpfGYoEeOfv1hqyaTrohguUOxFW+dPTj 8/NA== X-Gm-Message-State: ACrzQf0qKsMhKwHAgu2mMn05X7AgTHBedXd3AlOxLpHm2vMvuALkgECb 1joM7yIooxeCjL8FLzk1lcST7bUUAoxb4g9xBWHphw== X-Received: by 2002:a17:906:3f89:b0:7ae:35c9:f098 with SMTP id b9-20020a1709063f8900b007ae35c9f098mr53045ejj.303.1667517506498; Thu, 03 Nov 2022 16:18:26 -0700 (PDT) MIME-Version: 1.0 References: <20221102163252.49175-1-nathan@kernel.org> <202211021259.9169F5CBE@keescook> In-Reply-To: <202211021259.9169F5CBE@keescook> From: Sami Tolvanen Date: Thu, 3 Nov 2022 16:17:50 -0700 Message-ID: Subject: Re: [PATCH 1/3] s390/ctcm: Fix return type of ctc{mp,}m_tx() To: Kees Cook Cc: Heiko Carstens , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 2, 2022 at 1:01 PM Kees Cook wrote: > > 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 You don't need to keep CFI away from early boot code, but bringing this up in qemu+gdb initially is probably the best way forward. We also had plenty of type mismatches in syscall wrappers in the currently supported architectures, so that's another thing to watch out for once your kernel boots far enough to start init. Sami