Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp963367rwb; Wed, 16 Nov 2022 09:59:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ibBdCnnxkQF2HyFC5/1QsM/vKfepniSV3ebKQetSVHCxGYWVpXUeZHZIPBDvjD926lm8E X-Received: by 2002:a50:ff0c:0:b0:461:cf2b:627b with SMTP id a12-20020a50ff0c000000b00461cf2b627bmr19274351edu.73.1668621564275; Wed, 16 Nov 2022 09:59:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668621564; cv=none; d=google.com; s=arc-20160816; b=B1DAFntSlLEYcTDHhRy8Jm0DrjZv2s+8korGsidSPKY7qnyvcZPoPWDysDLKEaJP02 ecldsYP/xWs5hbShOfyyhS5OQwkikVthtJGME/zG3kkl5jS387Ry0YKNtQvKSlzKtE1f 06YLPEBrzbFRYoEu1XR0aSGGLgNxqO4h4/ZJ7eGK+oUB3cw7sjpiMU22B/VK9ZxJLVo9 VrQj68J4s5et0qU4VkQkicwMT+mVXFjHi1MDB5N6jDMnBpGTczRSt1lWIoXQQp0jeFZX Srmd4PVJxpXSBhRBshqGUrEVIyw3Exifyk1UUaqKjLhTzp5iuCkwAMSJqZa9CIEGrTuF 3BCw== 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:dkim-signature:date; bh=UeHzaO43ieDLq7wwhIBNc0s+wJATCXogm0raxMCfGWE=; b=qPb4s5Il9wyn7F1OHRcV1GmHZ7JwLZCGJy/8aG6PEqp5yiITVNVRZc7r7YapC1rfMs z3hSJKq/ln1wqcjNvCxF9n7Wkj1hHBWPqiho/0z3jSUAHCLrR85jFje5LxNrGplU+3+8 5YwfTKsxXiT0d0bDCjoRJjOEfvGvOwSCDw/6WCA5gkB+7hHXViCavhO9Thh+JFZ8t/tf ssx/IrtZII4Mm+K7NPWszH6vG+w6SCWfTwZLunHAKDfR1xXhMhjP+91WyU5ogqGbQ3BL EuOURGIcTJuuG4nRRHnHhk/AonWyc7/vslVE0SCEmncpggGtSzw+7Ns/gSmlLa+y30bv Au0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pqyd2Rsn; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x62-20020a50bac4000000b004621e2c473dsi13823388ede.354.2022.11.16.09.59.02; Wed, 16 Nov 2022 09:59:24 -0800 (PST) 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=@linux.dev header.s=key1 header.b=pqyd2Rsn; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232682AbiKPRk6 (ORCPT + 91 others); Wed, 16 Nov 2022 12:40:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbiKPRk4 (ORCPT ); Wed, 16 Nov 2022 12:40:56 -0500 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 146924AF14 for ; Wed, 16 Nov 2022 09:40:54 -0800 (PST) Date: Wed, 16 Nov 2022 17:40:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1668620453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UeHzaO43ieDLq7wwhIBNc0s+wJATCXogm0raxMCfGWE=; b=pqyd2RsnfABs06vS5s5WxiQGhS1jRoM4fH9iQsAOtiiS8O6XHYiigIlXxmCrSjoF4nMzly pY5mZkvWrJSuVRNxiqWNrnZenDNsvOeGKDMFOO0zdxlmTp4wH0/E5dYOxICw9PktqrNXG/ 6DZliVD5ffi7Gn6qCuvX0xTylIrybgY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Quentin Perret Cc: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Sudeep Holla , Andrew Walbran , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 03/12] KVM: arm64: Block unsafe FF-A calls from the host Message-ID: References: <20221116170335.2341003-1-qperret@google.com> <20221116170335.2341003-4-qperret@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116170335.2341003-4-qperret@google.com> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 16, 2022 at 05:03:26PM +0000, Quentin Perret wrote: > From: Will Deacon > > When KVM is initialised in protected mode, we must take care to filter > certain FFA calls from the host kernel so that the integrity of guest > and hypervisor memory is maintained and is not made available to the > secure world. > > As a first step, intercept and block all memory-related FF-A SMC calls > from the host to EL3. This puts the framework in place for handling them > properly. Shouldn't FFA_FEATURES interception actually precede this patch? At this point in the series we're outright lying about the supported features to the host. -- Thanks, Oliver