From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 140BBC43334 for ; Mon, 13 Jun 2022 17:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sM2jnogFC2WEpFQ3NBNiBswSizOPbpAn+K8rdoIGtZc=; b=vpFB8FRcI8X6+h ues2mwg8x2L2HWLqA9ruuWQL0qGkF6gAzSOIKR7yPb1jJDXr6CHP4GgjCO+STmA/yBXfLJgH7ZEId FmtiByY1LunFZel8LjqVm8Z578Zf+sdhKOIm1Ju7jltn4owiT4klnS5ll2n4nailvlO2cKA77ByJu 6dCVdY+ZJr591yywjQeenjHtgE8RsoC6WcS7VFrhx8f8+mjl0f6LuhXe/Z+Oh4EAyNezuFwF7aCNV R8S7HgrYNASwXdrFQN5IEaA+5gXwfSXpHl+nqRjs222s5M0wQUp4rw2rDYD5OVAxbE+WnmRHbm56k dKwk8fJGp7kxRd6GqHEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nUE-004paM-46; Mon, 13 Jun 2022 17:04:22 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nU7-004pY6-Ni for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 17:04:17 +0000 Received: by mail-pg1-x52a.google.com with SMTP id s135so6058718pgs.10 for ; Mon, 13 Jun 2022 10:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=mYjZASrY0U2vsg4+Z3fayp87EJ3UDw4wIJr7nvni9Ek=; b=kNia3fP4ii7v3FKDIFgRBPRWs8JCjCOQhwBs1YRrgihciGcfP3UczdQ1NP3WROY9gc SZq3nrWT95sCnM+OdH/rH54w6vklvee85Zaway/3supSPaXdEbvAZ28Zcq2Eshaug/N/ holljJi3raKp7VZN0MKBK/+0OmDZGbgPymy7Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mYjZASrY0U2vsg4+Z3fayp87EJ3UDw4wIJr7nvni9Ek=; b=50MMpfdolAFcMkkBt7Qt3ulqC4EyI5pa2m2/0GPwRXXker4NapLHUXnmuKP7Sy3wTv g0uvOEWnCFrlJRo00tdETzJpFMY4d8hmGrjEo6fKc4/D75iRmdkE7+ONrPhfcPXo9F/w R5M6oTTS9ibs7FnEhadfn/5D0V817c0HFDUT1IDeUHPxQ0lGVGvifAzxKwbNw2vQAEKU PzkK+U/WpgU2UmBe/Ht/8Obgpl08WIUO/COiCPsZZo+Q3NsQ5mHluTJimBCkyKxVpHS+ ANsdWvT2m8dO2YxtGdaWVpiUtFOKpjhJ1HPIY3Uij08cSm+CW8U9UFLD/3rvgMLxrgHb PlyQ== X-Gm-Message-State: AOAM530Mb91hAG9l6C18woQcPCHGS871h09iTJjVRjMh3KUVKVZocitN 9MHkNB//8vezq0tm33dT5Jr03w== X-Google-Smtp-Source: ABdhPJxK4IuPlzJj4yZnVw7e7eKF60w/wpE1r9dvdOhFJv4qrE5RYKrR7ZvbsO0AYyeNTkD2MhrnGQ== X-Received: by 2002:a05:6a00:8d3:b0:51e:740f:8d60 with SMTP id s19-20020a056a0008d300b0051e740f8d60mr269277pfu.55.1655139853944; Mon, 13 Jun 2022 10:04:13 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h30-20020aa79f5e000000b00519cfca8e30sm5615501pfr.209.2022.06.13.10.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 10:04:13 -0700 (PDT) Date: Mon, 13 Jun 2022 10:04:12 -0700 From: Kees Cook To: Sami Tolvanen Cc: linux-kernel@vger.kernel.org, Josh Poimboeuf , Peter Zijlstra , x86@kernel.org, Catalin Marinas , Will Deacon , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Joao Moreira , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [RFC PATCH v3 00/20] KCFI support Message-ID: <202206131001.6BA9933C@keescook> References: <20220610233513.1798771-1-samitolvanen@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220610233513.1798771-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_100415_868543_50B83A8F X-CRM114-Status: GOOD ( 15.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 10, 2022 at 04:34:53PM -0700, Sami Tolvanen wrote: > KCFI is a proposed forward-edge control-flow integrity scheme for > Clang, which is more suitable for kernel use than the existing CFI > scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't > alter function references to point to a jump table, and won't break > function address equality. The latest LLVM patch is here: > > https://reviews.llvm.org/D119296 > > This RFC series replaces the current arm64 CFI implementation with > KCFI and adds support for x86_64. I think the "RFC" prefix for this series can be dropped. :) It looks to me like all of Peter's concerns have been addressed. I'd say let's get the Clang side landed, and once that's done, land this via x86 -tip? Peter and Will does this sound right to you? It touches arm64, so if -tip isn't okay, I could take it in one of my trees? -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel